Adding an Era to All Maps
Moderator: Moderators
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Adding an Era to All Maps
I want to add a new era to every original BF2 map, like in the conversion pack. How do I do this?
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
well first to all, install patch 1.3, then create a mod, and on addme.lua add for example era AFierfek wrote:I want to add a new era to every original BF2 map, like in the conversion pack. How do I do this?
AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_a = 1, mode_con_a = 1})
and add the mission.lua files to your mission.req
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
And in english?DEVISS-REX wrote:well first to all, install patch 1.3, then create a mod, and on addme.lua add for example era AFierfek wrote:I want to add a new era to every original BF2 map, like in the conversion pack. How do I do this?
AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_a = 1, mode_con_a = 1})
and add the mission.lua files to your mission.req
Sorry, I really didn't understand much of that.
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
so sorry no problem, i am bad explain things for this reason i use examples:Fierfek wrote:And in english?
Sorry, I really didn't understand much of that.
addme.lua
Code: Select all
--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 the new gamemodes or maps here for pre-existing maps:
AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_a = 1, mode_con_a = 1})
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_missionselect_listbox_contents[sp_n+1] = { mapluafile = "bes2%s_%s", era_y = 1, mode_con_y = 1, change = {era_y = { name="50th Gamma Legion", icon2="mode_icon_ord66" },},}
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("MUS1","mus1a_con",4)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\ABC\\data\\_LVL_PC\\core.lvl")Code: Select all
ucft
{
REQN
{
"config"
"ingame_movies"
}
REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"PlayMovieWithTransition"
}
REQN
{
"lvl"
"mus1a_con"
}
}- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Adding an Era to All Maps
fierfek. It is as he said. Go to the map of your choice (not sure if you can add it to stock maps) and go to its addme.lua. Then delete the line that looks like what was posted above then copy and paste the line that DEVISS-REX so kindly gave:
Replace mus1 with your map name, then add the era, call it a for instance a. and add {era_a = 1, mode_con_a = 1}).
I hope I've been clear enough.
I'll post instructions in different colours.AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_a = 1, mode_con_a = 1})
Replace mus1 with your map name, then add the era, call it a for instance a. and add {era_a = 1, mode_con_a = 1}).
I hope I've been clear enough.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
But this is just for my map, right? How do I add an era to all stock maps? I want to for a mod I am making - because I want it to be compatible with sides mods (I don't want to replace the rep and cis sides, I want to add a new era).DEVISS-REX wrote:Hidden/Spoiler:
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
well is simple, repeat the same process with all maps so add the same lines but change for example for mygeeto put myg1%s_%s then myg1 for example this is my addme.lua, i have new eras for some maps:Fierfek wrote:But this is just for my map, right? How do I add an era to all stock maps? I want to for a mod I am making - because I want it to be compatible with sides mods (I don't want to replace the rep and cis sides, I want to add a new era).
Hidden/Spoiler:
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
Woah, looks pretty complicated. Maybe I'll just start with a sides mod....DEVISS-REX wrote:well is simple, repeat the same process with all maps so add the same lines but change for example for mygeeto put myg1%s_%s then myg1 for example this is my addme.lua, i have new eras for some maps:Fierfek wrote:But this is just for my map, right? How do I add an era to all stock maps? I want to for a mod I am making - because I want it to be compatible with sides mods (I don't want to replace the rep and cis sides, I want to add a new era).Hidden/Spoiler:
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
no, no is complicated because i can did it lol, if you like i could make the addme.lua for you and you only should create the mission files as you likeFierfek wrote:Woah, looks pretty complicated. Maybe I'll just start with a sides mod....
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
Ah, thanks, but you don't have to do that. I don't know how to do the mission thing anyway.DEVISS-REX wrote:no, no is complicated because i can did it lol, if you like i could make the addme.lua for you and you only should create the mission files as you likeFierfek wrote:Woah, looks pretty complicated. Maybe I'll just start with a sides mod....
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
well also can help you how to do mission files, is simple use the original for example myg1c_con found in assets - scripts and modify itFierfek wrote:Ah, thanks, but you don't have to do that. I don't know how to do the mission thing anyway.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
Oh, you mean lua file? I thought you meant to mission.lvl file.DEVISS-REX wrote:well also can help you how to do mission files, is simple use the original for example myg1c_con found in assets - scripts and modify itFierfek wrote:Ah, thanks, but you don't have to do that. I don't know how to do the mission thing anyway., please don't surrender always can learn new things
I know all about luas. Okay, so then can you please make the addme for me? Make the era letter whatever you want.
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
yes, cool i will use N letters for don't have troubles with others modsFierfek wrote:Oh, you mean lua file? I thought you meant to mission.lvl file.
I know all about luas. Okay, so then can you please make the addme for me? Make the era letter whatever you want.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
Could you please make it CW Spec Ops? Thanks.DEVISS-REX wrote:yes, cool i will use N letters for don't have troubles with others modsFierfek wrote:Oh, you mean lua file? I thought you meant to mission.lvl file.
I know all about luas. Okay, so then can you please make the addme for me? Make the era letter whatever you want.i will send you a PM with the addme.lua soon
, also i can put custom name to new era, what do you like??
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
yes no problemFierfek wrote:Could you please make it CW Spec Ops? Thanks.DEVISS-REX wrote:yes, cool i will use N letters for don't have troubles with others modsFierfek wrote:Oh, you mean lua file? I thought you meant to mission.lvl file.
I know all about luas. Okay, so then can you please make the addme for me? Make the era letter whatever you want.i will send you a PM with the addme.lua soon
, also i can put custom name to new era, what do you like??
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Adding an Era to All Maps
Thanks, man. What would I do without gametoast?DEVISS-REX wrote:yes no problemFierfek wrote:Could you please make it CW Spec Ops? Thanks.DEVISS-REX wrote:yes, cool i will use N letters for don't have troubles with others modsFierfek wrote:Oh, you mean lua file? I thought you meant to mission.lvl file.
I know all about luas. Okay, so then can you please make the addme for me? Make the era letter whatever you want.i will send you a PM with the addme.lua soon
, also i can put custom name to new era, what do you like??
, also i will send you the mission.req file
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
mm sleep? lol maybe play other gameFierfek wrote:Thanks, man. What would I do without gametoast?
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Adding an Era to All Maps
For an example of how to do you, you could also look at ARC_Commander's stuff for BFX:
http://www.gametoast.com/forums/viewtop ... 67#p262467
http://www.gametoast.com/forums/viewtop ... 67#p262467
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding an Era to All Maps
mm a few late no? lol wow i dk the mission limits thanksFrisbeetarian wrote:For an example of how to do you, you could also look at ARC_Commander's stuff for BFX:
http://www.gametoast.com/forums/viewtop ... 67#p262467
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Adding an Era to All Maps
excuse me DEVISS could you please make a addme for me as well because I don't know how to edit it to make it my name of the mode.
Please help me, I'd be eternally grateful.
If you cannot or I am not allowed to ask then please delete this post admins/moderators.
Please help me, I'd be eternally grateful.
If you cannot or I am not allowed to ask then please delete this post admins/moderators.
