Advanced Search

Author Topic: (V5B) Creating Map Creator Cards for your maps!  (Read 13099 times)

0 Members and 1 Guest are viewing this topic.

January 24, 2017, 06:29:25 PM
Read 13099 times

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
(V5B) Creating Map Creator Cards for your maps!
« on: January 24, 2017, 06:29:25 PM »
Map creator cards are little boxes that pop up for players at the start of each map to let them know who created the map, what song is playing and where the song is from. They can be toggled off by player clients. They can also be used to define what boss music/victory music will be played in the map, without the need of including a complicated script for every map. Core MM8BDM will handle them with a global script but mappers can easily include their own by defining them in an OPEN script! Here's what they look like in game:

(click to show/hide)

To define a map card, paste the following code into an OPEN script in your map. You can use a new OPEN script or one you happen to use (but it should not be looping).

Code: [Select]
SetCvarString("mm8bdm_map_creator", "NAME");
SetCvarString("mm8bdm_map_icon", "ICON");
SetCvarString("mm8bdm_map_background", "BACKGROUND");
SetCvarString("mm8bdm_map_musicname", "MUSIC NAME");
SetCvarString("mm8bdm_map_musiccomposer", "MUSIC COMPOSER");
SetCvarString("mm8bdm_map_musicgame", "MUSIC GAME");

SetCvarString("mm8bdm_map_bossmusic", "BOSS THEME");
SetCvarString("mm8bdm_map_victorymusic", "VICTORY THEME");
SetCvarString("mm8bdm_map_intensemusic", "INTENSE THEME");

Replace the second argument (the text in CAPS) to customize the card. Note that you can use color codes here for non-graphic entries if you like:

mm8bdm_map_creator - The name of the creator of the map.
mm8bdm_map_icon - 32 x 32 icon. This can be any core graphic or new graphic in your wad/pk3 file. For some examples look in the mm8bdm pk3 under patches/faces. They don't have to be robot master mugshots, be creative! Default is MAPCARDI.
mm8bdm_map_background - 264 x 92 background image of the card. You can make your own or use one included in the mm8bdm pk3. Click here for an image gallery of all title cards and their graphic codes. Default is "MAPCD10".
mm8bdm_map_musicname - The name of the default song of your map. Note that it is not actually set here, this is just for player convenience without having to look up the name.
mm8bdm_map_musiccomposer - The composer of the default song of your map.
mm8bdm_map_musicgame - The song/movie/whatever your default map music is from.

The following are unrelated to the map card and can be used on their own to define music for your map:

mm8bdm_map_bossmusic
- The music code for the Boss music you wish to play when the game is almost over.
mm8bdm_map_victorymusic - The music code for the Victory theme you wish to play when the game is over.
mm8bdm_map_intensemusic - The music code for an "intense" scenario. Currently used when both teams are tied in TLMS and only 2 players remain.

Now let's look at an example of a map card that works in V5B:

(click to show/hide)

Produces:


January 24, 2017, 08:18:58 PM
Reply #1

Offline Hallan Parva

  • MM8BDM MM8 Contributor

  • drifting absently across an endless sea
  • *
  • Date Registered: September 23, 2010, 10:32:40 PM

    • View Profile
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #1 on: January 24, 2017, 08:18:58 PM »
 :cool: f i r s t  :cool:

Maybe "intense" could be used in core during Team LMS or a Duel? Say, there's only one player left on each team for TLMS, or in Duel both players are just one frag away from winning. Those two modes seem perfect for an "intense" situation in my opinion.

Still, this looks cool as figs. Can't wait to get my grubby little mitts on it.

January 24, 2017, 10:26:48 PM
Reply #2

Offline Rozark

  • MM8BDM Extender

  • Mr. Explorer
  • **********
  • Date Registered: August 28, 2011, 04:46:04 PM

    • View Profile
    • Rozark #0873
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #2 on: January 24, 2017, 10:26:48 PM »
Oh the ways I can make this fun~

February 10, 2017, 08:27:53 PM
Reply #3

Offline Geno

  • MM8BDM Extender

  • ❤ ❤ ❤
  • ******
  • Date Registered: March 31, 2012, 10:07:28 AM

    • View Profile
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #3 on: February 10, 2017, 08:27:53 PM »
Here's some extra Map Creator Cards I made for the game that were not going to be used

If you want a little GB look to them and are unsatisfied with the MMV one

(click to show/hide)

February 14, 2017, 06:26:28 PM
Reply #4

Offline NES Boy

  • Standard Member
  • Date Registered: May 19, 2014, 04:59:05 PM

    • View Profile
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #4 on: February 14, 2017, 06:26:28 PM »
mm8bdm_map_background - 264 x 92 background image of the card. You can make your own or use one included in the mm8bdm pk3. Click here for an image gallery of all title cards and their graphic codes. Default is "MAPCD10".
I noticed that MAPCDV uses the GBC palette (specifically one of the palettes used by the bootstrap ROM, so I looked into the palette used when the game is played on Super Game Boy.

It turns out that the text box uses five different SGB palette schemes throughout the game:






Here is a breakdown on the SGB palettes and when they are used (as well as HSL informaton based on the SNES's color space):

(click to show/hide)

May 22, 2017, 04:13:06 PM
Reply #5

Offline CutmanMike

  • Administrator

  • Is it hot in here or is it just zscript?
  • *******
  • Date Registered: December 17, 2008, 12:24:34 PM

    • View Profile
    • https://cutstuff.net
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #5 on: May 22, 2017, 04:13:06 PM »
With V5B finally out, this tutorial is now relevant. Also:

Maybe "intense" could be used in core during Team LMS or a Duel? Say, there's only one player left on each team for TLMS, or in Duel both players are just one frag away from winning. Those two modes seem perfect for an "intense" situation in my opinion.

I ended up doing this for TLMS but not Duel. If only two players remain and the teams are tied in TLMS, the set "intense" music will play!

March 06, 2018, 11:59:50 PM
Reply #6

Offline Sir Anon0mos

  • Standard Member

  • Sir An0n, has it all on UHF
  • Date Registered: July 29, 2016, 02:00:58 AM

    • View Profile
    • Steam
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #6 on: March 06, 2018, 11:59:50 PM »
Hi, I'm getting an error saying that SetCvarString is not defined. This is in v5c.
https://imgur.com/a/S5wW3

Nevermind, the v5b editing pack fixed it. I just assumed it was fixed in v5c.

February 15, 2019, 05:36:29 PM
Reply #7

Offline RockmanShadow

  • Standard Member

  • It your boy.
  • Date Registered: October 22, 2018, 11:07:20 AM

    • View Profile
Re: (V5B) Creating Map Creator Cards for your maps!
« Reply #7 on: February 15, 2019, 05:36:29 PM »
I have the code set up correctly but my map card still doesn't show up. Is there a different way to create map cards now?

Nevermind, I got it figured out.

August 14, 2020, 11:08:24 PM
Reply #8

PotatoBlade197

  • Guest
help with map icon
« Reply #8 on: August 14, 2020, 11:08:24 PM »
So, any time i make a script to put the map card code in, it always says unknown file type when i load the map back in to slade, the only thing it will work with is zdoom mapinfo and i cant put the code in there or it breaks, please help