Adding eras doesn't work anymore!?
Moderator: Moderators
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Adding eras doesn't work anymore!?
Hi,
I already added eras to many stock maps and to many of my conversions, but now I'm trying to add them to Naboo (conversion), but they just don't show up. Is there a limit how many missions I can add through one addon or something? What can I do?
I already added eras to many stock maps and to many of my conversions, but now I'm trying to add them to Naboo (conversion), but they just don't show up. Is there a limit how many missions I can add through one addon or something? What can I do?
Last edited by Marvel4 on Sat Oct 09, 2010 4:04 pm, edited 1 time in total.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Adding eras doesn't work anymore!?
There's a limit to how many eras a single map can have before some of them stop showing up.
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
I didn't add more than two eras to each map. The strange thing is, it just doesn't work for custom maps.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Adding eras doesn't work anymore!?
Dont know i this will help, but i set up my era mod addme's like this
Hidden/Spoiler:
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding eras doesn't work anymore!?
maybe any mistake in your addme.lua file? max era per map is 5 i think
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
No, I checked my reqs and addme several times.
This is what I've done:
1. Adding 2 eras to many stock maps and many of my conversions - worked
2. Adding 2 eras to Naboo: Plains and Naboo: Theed - eras don't show up
3. Adding 2 eras to stock Naboo and stock Polis Massa - worked
4. Adding 2 eras to Rhen Var: Harbor - eras don't show up
I don't know what to do...

This is what I've done:
1. Adding 2 eras to many stock maps and many of my conversions - worked
2. Adding 2 eras to Naboo: Plains and Naboo: Theed - eras don't show up
3. Adding 2 eras to stock Naboo and stock Polis Massa - worked
4. Adding 2 eras to Rhen Var: Harbor - eras don't show up
I don't know what to do...
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding eras doesn't work anymore!?
please post your addmelua because is very strange, maybe you did put any letter wrong like if era is X and you put b in file etc
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
Ok, but I checked it several times, so I don't think something is wrong. (I also did several normal and manual cleans):
Hidden/Spoiler:
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Adding eras doesn't work anymore!?
i had the same problem with those maps put this in your addme instead (obveoulsy change it to your era)
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_missionselect_listbox_contents[sp_n+1] = { mapluafile = "RVC%s_%s", era_r = 1, era_e = 1, mode_con_r = 1, mode_con_e = 1, change = {era_x = { name="BFSM Clone Wars", icon2="rote_icon" }, era_y = { name="BFSM Galactic Civil War", icon3="rote_icon" },},}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_missionselect_listbox_contents[sp_n+1] = { mapluafile = "RVH%s_%s", era_r = 1, era_e = 1, mode_con_r = 1, mode_con_e = 1, change = {era_x = { name="BFSM Clone Wars", icon2="rote_icon" }, era_y = { name="BFSM Galactic Civil War", icon3="rote_icon" },},}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_missionselect_listbox_contents[sp_n+1] = { mapluafile = "RVC%s_%s", era_r = 1, era_e = 1, mode_con_r = 1, mode_con_e = 1, change = {era_x = { name="BFSM Clone Wars", icon2="rote_icon" }, era_y = { name="BFSM Galactic Civil War", icon3="rote_icon" },},}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
sp_n = table.getn(sp_missionselect_listbox_contents)
sp_missionselect_listbox_contents[sp_n+1] = { mapluafile = "RVH%s_%s", era_r = 1, era_e = 1, mode_con_r = 1, mode_con_e = 1, change = {era_x = { name="BFSM Clone Wars", icon2="rote_icon" }, era_y = { name="BFSM Galactic Civil War", icon3="rote_icon" },},}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
-
Deviss
- Master of the Force

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: Adding eras doesn't work anymore!?
mmm maybe adding 1 era to naboo and checking? is strange because you defined era and after this mod, i suggest first define all eras and after all modes
example: era_u , era_v , mode_con_u, mode_con_v 
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
@Deviss: I tried but it didn't work...
@skelltor: Now the eras show up, but there are two "Naboo: Plain"s in the list, and I can only add missions from the second one and then the mission shows up two times.
@skelltor: Now the eras show up, but there are two "Naboo: Plain"s in the list, and I can only add missions from the second one and then the mission shows up two times.
- skelltor
- Sith

- Posts: 1431
- Joined: Fri Dec 11, 2009 6:24 pm
- Projects :: BFSM
- xbox live or psn: skelltor95
- Location: minisnowta
- Contact:
Re: Adding eras doesn't work anymore!?
yea i get that too i started a topic but nobody knew how to fix it its better than no eras right?
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
Maybe, but I don't want bugs like that... 
So, now I tried to remove all maps from the addme except Naboo: Plains and still it doesn't work. What. The. Heck??
EDIT: I created a new data folder, only added the Naboo scripts, added the new eras... and even that didn't work. I think Battlefront hates some of my maps.

So, now I tried to remove all maps from the addme except Naboo: Plains and still it doesn't work. What. The. Heck??
EDIT: I created a new data folder, only added the Naboo scripts, added the new eras... and even that didn't work. I think Battlefront hates some of my maps.
- Lagomorphia
- Major

- Posts: 502
- Joined: Sun Dec 13, 2009 10:02 am
Re: Adding eras doesn't work anymore!?
With all the era mods adding so many eras, the era box at the bottom is getting too clogged. My advice: do what Skyhammer_216 did with Sraiden and add your new era as a new mode. Naboo: Clone Wars: Marvel4 Conquest. You'd need a better name for it than that though.
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
Good Idea, I'll try that and I hope this time they'll show up and I'll report back then...
EDIT: That didn't work either.
I added a new mode to Bespin: Cloud City and Yavin 4: Arena and it showed up for Bespin only...
If anyone has other ideas, please post them too, I have to try everything.
EDIT: That didn't work either.
I added a new mode to Bespin: Cloud City and Yavin 4: Arena and it showed up for Bespin only...
If anyone has other ideas, please post them too, I have to try everything.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Adding eras doesn't work anymore!?
There are two lists of map missions. sp_missionselect_listbox_contents is for single player and mp_missionselect_listbox_contents is for multiplayer. If you want a mission to be played in both, it has to be added into both tables/lists.
When a map gets listed twice in the mission list, it's because one added those missions the normal way instead of using AddNewGameModes(). You use that function when a map already exists and you just want to add more game modes and/or eras.
Since v1.3 added a change table, AddNewGameModes() needs to be modified to better support this. Replace your AddNewGameModes() function with the one below:(from: http://www.gametoast.com/forums/viewtop ... 15#p350615)
When a map gets listed twice in the mission list, it's because one added those missions the normal way instead of using AddNewGameModes(). You use that function when a map already exists and you just want to add more game modes and/or eras.
Since v1.3 added a change table, AddNewGameModes() needs to be modified to better support this. Replace your AddNewGameModes() function with the one below:
Hidden/Spoiler:
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
Again no luck.
The new eras only show up on half of the custom maps...
The new eras only show up on half of the custom maps...
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Adding eras doesn't work anymore!?
It's possible that some other map is messing with the modes you added. In the map selection screen, double click on one of the maps with your era added then double click on one of the maps that is having issues with your new era. Post the resulting debug log. Try not to click on any other maps. If your addme.lua has changed since the last time you posted it, repost your addme.lua too.
For v1.3, double clicking on a map should output some of its details to the debug log.
For v1.3, double clicking on a map should output some of its details to the debug log.
- Marvel4
- Rebel Colonel

- Posts: 556
- Joined: Mon Jun 21, 2010 12:57 pm
- Projects :: Marvel4s BF1 Conversion Pack + Era Mod
Re: Adding eras doesn't work anymore!?
Ok, this came out:
Hidden/Spoiler:
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Adding eras doesn't work anymore!?
The addme.lua you posted doesn't have anything being added to Y4A.Marvel4 wrote:I added a new mode to Bespin: Cloud City and Yavin 4: Arena and it showed up for Bespin only...
