How do I add xl mode to my map?

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
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

How do I add xl mode to my map?

Post by yoyoman »

I was wondering how do you add xl to my map?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: xl?

Post by Teancum »

http://www.gametoast.com/forums/viewtop ... 27&t=12542

It's for hunt, but the same principle applies.
User avatar
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Re: xl?

Post by yoyoman »

Can you call it something else instead of hunt?
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Re: xl?

Post 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.
User avatar
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

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

Post by yoyoman »

where do you putt the icons?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
User avatar
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

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

Post by yoyoman »

there is a icon in the sides folder that I want to use can I use that one?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
User avatar
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

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

Post 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
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

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

Post 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
User avatar
yoyoman
Corporal
Corporal
Posts: 157
Joined: Tue Jun 29, 2010 7:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

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

Post by yoyoman »

I don't get which part of the of the territorial am I suppose to look at.
Post Reply