Page 1 of 1

How do I add xl mode to my map?

Posted: Wed Sep 15, 2010 10:00 pm
by yoyoman
I was wondering how do you add xl to my map?

Re: xl?

Posted: Wed Sep 15, 2010 10:19 pm
by Teancum
http://www.gametoast.com/forums/viewtop ... 27&t=12542

It's for hunt, but the same principle applies.

Re: xl?

Posted: Thu Sep 16, 2010 5:42 pm
by yoyoman
Can you call it something else instead of hunt?

Re: xl?

Posted: Thu Sep 16, 2010 6:08 pm
by fasty
yoyoman wrote:Can you call it something else instead of hunt?
Yup. In your addme.lua add in this
Hidden/Spoiler:
change = {era_c = { name="Name of your mode", icon2="Whatever icon you want" },},}
Mine looks like this
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 = "HBA%s_%s", era_g = 1, era_c = 1, era_f = 1, era_w = 1, mode_con_g = 1, mode_con_c = 1, mode_con_f = 1, mode_con_w = 1, change = {era_c = { name="Gungan Mode", icon2="mode_icon_tdm" },},}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
Make sure not to have any typos and it looks exactly like mine with the commas and brackets.

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:20 pm
by yoyoman
where do you putt the icons?

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:23 pm
by DarthD.U.C.K.
if you are usinga shipped/convopackmode the icons are set automatically. if you want a custom icon, you should read the 1.3 patch documentation (should be in battlefronts gamedata folder after installing the patch). it should include a tutorial about adding custom icons

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:29 pm
by yoyoman
there is a icon in the sides folder that I want to use can I use that one?

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:32 pm
by DarthD.U.C.K.
you can use anything you want as long as it fulfills the standards of modeicons. i have noidea what they are though but that should be mentioned in the tutorial

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:51 pm
by yoyoman
off topic: I can not find the territorial and I looked for it but could not find it. Could you pleas help. Thanks :D

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 12:55 pm
by DarthD.U.C.K.
you should be able to find it in the "LucasArts\Star Wars Battlefront II\GameData\v1.3patch\docs\howtos" territory :P

Re: How do I add xl mode to my map?

Posted: Sat Sep 18, 2010 1:04 pm
by yoyoman
I don't get which part of the of the territorial am I suppose to look at.