Mode not showing up [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
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Mode not showing up [Solved]

Post 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. :(
Last edited by Noobasaurus on Mon Oct 24, 2011 10:16 am, edited 2 times in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Mode not showing up

Post by Marth8880 »

Did you add the modes to mission.req?
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Mode not showing up

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Mode not showing up

Post 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.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Mode not showing up

Post 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.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Mode not showing up

Post 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.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Mode not showing up

Post 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.
User avatar
Unlucky13
Sergeant Major
Sergeant Major
Posts: 239
Joined: Mon Jan 24, 2011 11:11 am
Projects :: Models models models
Games I'm Playing :: Random stuff

Re: Mode not showing up

Post by Unlucky13 »

Try the Change an Era's and Game Mode's Name or Icon or Description tutorial
In: AAA-v1.3patch\docs\howtos
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Mode not showing up

Post 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.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Mode not showing up

Post 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.
Post Reply