How do I add new eras to maps in my addon folder? [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
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

How do I add new eras to maps in my addon folder? [Solved]

Post by skelltor »

how do i add new eras to maps in my addon folder?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: add new eras to maps in addon

Post by 501st_commander »

in the FAQ topic under "Miscellaneous":
Era/Mode Side Mod Tutorial
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: add new eras to maps in addon

Post by skelltor »

no i know that i just want to add my era to a map in my addon i tried it like other maps but i get a ctd when the bf2 game starts up. so i figured i am doing somthing wrong.
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: add new eras to maps in addon

Post by genaral_mitch »

I don't think it's possible.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: add new eras to maps in addon

Post by skelltor »

oh :(
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: add new eras to maps in addon

Post by AQT »

Do you have the LUA scripts to these maps?
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: add new eras to maps in addon

Post by genaral_mitch »

Yeah, AQT's right. You need the .luas. It will make it just like adding eras to stock maps.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: add new eras to maps in addon

Post by skelltor »

no i did not have the lua for the map i was trying to add the era to. but all i need is the lua? there is nothing else needed to be added to the addme or anything?
genaral_mitch
Jedi
Jedi
Posts: 1056
Joined: Fri Aug 14, 2009 12:32 am

Re: add new eras to maps in addon

Post by genaral_mitch »

I'm pretty sure that's it. I vaguely remeber doing it once, with nothing but the lua.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: add new eras to maps in addon

Post by skelltor »

ok thx guys i will try it out
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: add new eras to maps in addon

Post by AQT »

Of course you have to edit the addme.lua as well as the mission.req, etc. It's literally called 'addme' for a reason; otherwise your game mode/era won't show up for the map.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: How do I add new eras to maps in my addon folder?

Post by skelltor »

yah i meant do i need to change it from what you just change it to add an era or add any new lines besides the ones you always add.

edit i tried doing it with the script but my new era is not there to be selected any ideas? shoulde i post my addme or the script or anything there are no munge errors. can someone post an addme of like pax empiraca or bf0 because they both add thire eras to maps that are in the addon right?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I add new eras to maps in my addon folder?

Post by AQT »

How are you loading this addon map through your LUA?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: How do I add new eras to maps in my addon folder?

Post by skelltor »

? what do you mean i am useing the lua that the map author sent me.Do i need to change it?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: How do I add new eras to maps in my addon folder?

Post by AQT »

Of course, it's not going to magically read the map from the addon folder. You need to specify the correct directory. Usually you would see this line:

Code: Select all

ReadDataFile("dc:***\\***.lvl", "***_conquest")
or even this line:

Code: Select all

ReadDataFile("***\\***.lvl", "***_conquest")
Change it to this:

Code: Select all

ReadDataFile("..\\..\\addon\\***\\data\\_LVL_PC\\***\\***.lvl", "***_conquest")
*** won't always be the map's modID just so you know.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: How do I add new eras to maps in my addon folder?

Post by skelltor »

ah ok thx

edit it works thx everyone :D this topic can be closed now
Post Reply