Page 1 of 1

Naming Conventions for Addme [Solved]

Posted: Wed Aug 03, 2011 4:13 pm
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?

Re: Naming Conventions for Addme

Posted: Wed Aug 03, 2011 4:36 pm
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.

Re: Naming Conventions for Addme

Posted: Wed Aug 03, 2011 5:04 pm
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")

Re: Naming Conventions for Addme

Posted: Wed Aug 03, 2011 5:15 pm
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.

Re: Naming Conventions for Addme

Posted: Wed Aug 03, 2011 6:14 pm
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