Adding New Game Modes after Initial DATA_ABC munge

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Locked
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Adding New Game Modes after Initial DATA_ABC munge

Post 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?
Last edited by Ace_Azzameen_5 on Sun Oct 07, 2007 3:32 pm, edited 3 times in total.
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Adding New Game Modes after Initial DATA_ABC munge

Post by authraw »

Did you reference it in the addme.lua?
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Adding New Game Modes after Initial DATA_ABC munge

Post by Ace_Azzameen_5 »

oh, yeah, I did. First post updated.
Locked