Page 1 of 1

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

Posted: Fri Jul 16, 2010 1:06 pm
by skelltor
how do i add new eras to maps in my addon folder?

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 1:57 pm
by 501st_commander
in the FAQ topic under "Miscellaneous":
Era/Mode Side Mod Tutorial

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 4:49 pm
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.

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 4:57 pm
by genaral_mitch
I don't think it's possible.

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 4:59 pm
by skelltor
oh :(

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:01 pm
by AQT
Do you have the LUA scripts to these maps?

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:02 pm
by genaral_mitch
Yeah, AQT's right. You need the .luas. It will make it just like adding eras to stock maps.

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:07 pm
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?

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:14 pm
by genaral_mitch
I'm pretty sure that's it. I vaguely remeber doing it once, with nothing but the lua.

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:22 pm
by skelltor
ok thx guys i will try it out

Re: add new eras to maps in addon

Posted: Fri Jul 16, 2010 5:24 pm
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.

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

Posted: Sat Jul 17, 2010 7:51 pm
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?

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

Posted: Sun Jul 18, 2010 12:08 am
by AQT
How are you loading this addon map through your LUA?

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

Posted: Sun Jul 18, 2010 10:23 am
by skelltor
? what do you mean i am useing the lua that the map author sent me.Do i need to change it?

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

Posted: Sun Jul 18, 2010 6:21 pm
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.

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

Posted: Sun Jul 18, 2010 6:38 pm
by skelltor
ah ok thx

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