Page 1 of 1

Adding New Game Modes after Initial DATA_ABC munge

Posted: Sun Oct 07, 2007 12:51 pm
by Ace_Azzameen_5
How do I add new game modes to my map? (Without using Visual Munge to create a project)

I've created them in ZE, added them to the ABC.req, made MRQs, added them to common/mission.req, and made them reqs in the common/mission folder.
I modified the Addme.lua like this:
Hidden/Spoiler:
[code]
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "ACE%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_c = 1, mode_ctf_g = 1, mode_ctf_c = 1, mode_1flag_g = 1, mode_1flag_c = 1, mode_eli_g = 1, mode_c_c = 1, mode_c_g = 1, mode_race_c = 1, mode_c_holo = 1, mode_g_holo = 1}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]

-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's here)
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier. the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)

AddDownloadableContent("ACE","ACEg_con",4)
AddDownloadableContent("ACE","ACEc_con",4)
AddDownloadableContent("ACE","ACEg_ctf",4)
AddDownloadableContent("ACE","ACEc_ctf",4)
AddDownloadableContent("ACE","ACEg_1flag",4)
AddDownloadableContent("ACE","ACEc_1flag",4)
AddDownloadableContent("ACE","ACEg_eli",4)
AddDownloadableContent("ACE","ACEc_c",4)
AddDownloadableContent("ACE","ACEg_c",4)
AddDownloadableContent("ACE","ACEc_holo",4)
AddDownloadableContent("ACE","ACEg_holo",4)
AddDownloadableContent("ACE","ACEc_race",4)
[/code]
I still can't get Holo to show up (I have the proper shell.lvl)

I've done this a couple of times before, I just can't remember, so,
does anyone have a checklist?

Re: Adding New Game Modes after Initial DATA_ABC munge

Posted: Sun Oct 07, 2007 12:56 pm
by authraw
Did you reference it in the addme.lua?

Re: Adding New Game Modes after Initial DATA_ABC munge

Posted: Thu Nov 05, 2009 1:34 am
by Ace_Azzameen_5
oh, yeah, I did. First post updated.