Page 1 of 1

Mode not showing up [Solved]

Posted: Sun Oct 23, 2011 3:10 pm
by Noobasaurus
I looked through the FAQ, followed the tutorials, and they didn't work. I probably did something wrong as usual. My luas are good, though.

addme.lua
Hidden/Spoiler:
--Search through the missionlist to find a map that matches mapName,
--then insert the new flags into said entry.
--Use this when you know the map already exists, but this content patch is just
--adding new gamemodes (otherwise you should just add whole new entries to the missionlist)
function AddNewGameModes(missionList, mapName, newFlags)
for i, mission in missionList do
if mission.mapluafile == mapName then
for flag, value in pairs(newFlags) do
mission[flag] = value
end
end
end
end




--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)

sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "GAA%s_%s", era_g = 1, era_c = 1, mode_eas_g = 1, mode_eas_c = 1, mode_med_c = 1, mode_med_g = 1, mode_har_g = 1, mode_har_c = 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("GAA","GAAg_eas",4)
AddDownloadableContent("GAA","GAAc_eas",4)
AddDownloadableContent("GAA","GAAg_med",4)
AddDownloadableContent("GAA","GAAc_med",4)
AddDownloadableContent("GAA","GAAg_har",4)
AddDownloadableContent("GAA","GAAc_har",4)

-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\GAA\\data\\_LVL_PC\\core.lvl")
mission.req
Hidden/Spoiler:
ucft
{
REQN
{
"config"
"ingame_movies"
}

REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"teleport"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"PlayMovieWithTransition"
}

REQN
{
"lvl"
"GAAg_eas"
"GAAc_eas"
"GAAg_med"
"GAAc_med"
"GAAg_har"
"GAAc_har"

}
}
I don't think that the individual mode reqs have anything wrong with them.

The problem is that when I get to the loadscreen there are eras but no modes. :(

Re: Mode not showing up

Posted: Sun Oct 23, 2011 4:52 pm
by Marth8880
Did you add the modes to mission.req?

Re: Mode not showing up

Posted: Sun Oct 23, 2011 5:14 pm
by Noobasaurus
Marth8880 wrote:Did you add the modes to mission.req?
If you are talking about the one above, then yes I did, as you can see.

Re: Mode not showing up

Posted: Sun Oct 23, 2011 6:44 pm
by AQT
Noobasaurus wrote:The problem is that when I get to the loadscreen there are eras but no modes. :(
Eas, med, and har aren't modes supported by the stock game or the unofficial 1.3 patch. See the unofficial 1.3 patch documentation for the ones that actually are.

Re: Mode not showing up

Posted: Sun Oct 23, 2011 9:07 pm
by Noobasaurus
AQT wrote:
Noobasaurus wrote:The problem is that when I get to the loadscreen there are eras but no modes. :(
Eas, med, and har aren't modes supported by the stock game or the unofficial 1.3 patch. See the unofficial 1.3 patch documentation for the ones that actually are.
Well then how did Mav just make a bunch of new modes? I'm pretty sure they weren't in the 1.3.

Re: Mode not showing up

Posted: Sun Oct 23, 2011 9:26 pm
by THEWULFMAN
Noobasaurus wrote:
AQT wrote:
Noobasaurus wrote:The problem is that when I get to the loadscreen there are eras but no modes. :(
Eas, med, and har aren't modes supported by the stock game or the unofficial 1.3 patch. See the unofficial 1.3 patch documentation for the ones that actually are.
Well then how did Mav just make a bunch of new modes? I'm pretty sure they weren't in the 1.3.

You can rename the mode and give it any icon you want, it just has to be supported by the 1.3 patch.

Re: Mode not showing up

Posted: Sun Oct 23, 2011 10:03 pm
by Noobasaurus
THEWULFMAN wrote:You can rename the mode and give it any icon you want, it just has to be supported by the 1.3 patch.
I'm going to use some stock modes for this. The problem is whenever I rename it it never changes in the game except when it starts loading and not on the instant action list.

Re: Mode not showing up

Posted: Sun Oct 23, 2011 10:12 pm
by Unlucky13
Try the Change an Era's and Game Mode's Name or Icon or Description tutorial
In: AAA-v1.3patch\docs\howtos

Re: Mode not showing up

Posted: Mon Oct 24, 2011 1:39 am
by AQT
@Noobasaurus: Had you just read the unofficial 1.3 patch documentation like I "recommended" you to, you wouldn't be so confused and asking questions already answered in the documentation.

Re: Mode not showing up

Posted: Mon Oct 24, 2011 10:02 am
by Noobasaurus
AQT wrote:@Noobasaurus: Had you just read the unofficial 1.3 patch documentation like I "recommended" you to, you wouldn't be so confused and asking questions already answered in the documentation.
I thought you meant the release notes here at GT, which I couldn't find. Sorry for my misinterpretation. Now I will be reading all that goodness.