K, I have a problem. I have two custom eras per map (Last Days and Dark Times), but only one shows up at a time (the other just shows up as "+123 Clone Wars or +123 Galactic Civil War). Even adding DT in with a seperate addme.lua didn't help. Anyone know if there's a way around this?
He's not using AddNewGameModes() so adding that code won't change anything.
I believe the problem is the extra bracket:
era_2 = { name="Last Days", icon2="ldicon" },{
and don't forget to remove its closing bracket too.
Re: Multiple custom eras Problem
Posted: Tue Oct 13, 2009 7:31 pm
by Sky_216
I don't mind if I use AddNewGameModes or not, but I'll try yours first Zerted (simpler) and get back to you.
Re: Multiple custom eras Problem
Posted: Tue Oct 13, 2009 9:07 pm
by [RDH]Zerted
Wait, if the map already exists and you're just adding more missions to it, then you must use AddNewGameModes with my modifications. If not, you risk wiping out other people's missions they added.
Re: Multiple custom eras Problem
Posted: Wed Oct 14, 2009 3:27 am
by Sky_216
Hardly, they're all my maps anyway (therefore no-one else will be adding stuff to them). I just thought I might need 2 addme's for the two icons to work. Anyway you were right about the brackets, worked fine.
Wrong way round but meh, easily fixable: