Naming Conventions for Addme [Solved]

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

Post Reply
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Naming Conventions for Addme [Solved]

Post by wishihadaname »

Real quick question, what is the naming convention for campaign mode in the addme file? I tried using mode_c_g = 1 and mode_campaign_g = 1 but neither of them seems to work. Since the addme dictates what shows up on the map loading screen, that has to be where my mistake is. Otherwise the campaign mode would be avalable, crash when loaded, and give an error of a mismatch somewhere further down the line.

Also, am I understanding the game mode hierachy correctly? Addme>Mission.req>Mission scripts>campaign.lua right?
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Naming Conventions for Addme

Post by Eggman »

The campaign mode code is "c" - e.g., mode_c_g for a GCW campaign mission. If that didn't work, you must have made some other mistake, or else you don't have an updated shell that allows campaign mode to appear in the Instant Action menu.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: Naming Conventions for Addme

Post by wishihadaname »

I wasn't aware that you could update the shell, what exactly does that involve and how do you check if its needed?

As for other errors, i'll post my current hierachy.

Addme:
Hidden/Spoiler:
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "TCR%s_%s", era_g = 1, mode_con_g = 1, mode_c_g = 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("TCR","TCRg_con",4)
AddDownloadableContent("TCR","TCRg_c",4)

Mission.req
Hidden/Spoiler:
REQN
{
"lvl"
"TCRg_con"
"TCRg_c"
}
}
TCRg_c.req
Hidden/Spoiler:
ucft
{
REQN
{
"script"
"TCRg_c"
}
}
TCRg_c.lua
Hidden/Spoiler:
ReadDataFile("dc:TCR\\TCR.lvl", "TCRg_c")
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: Naming Conventions for Addme

Post by Eggman »

wishihadaname wrote:I wasn't aware that you could update the shell, what exactly does that involve and how do you check if its needed?
Do you have Zerted's v1.3 patch installed? It enables campaign mode in the IA menu.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: Naming Conventions for Addme

Post by wishihadaname »

Thanks, I forgot I had installed it as part of a much larger mod on my old machine and here I was breaking my head over how on earth I would get this to work :P
Post Reply