Naming new eras? [SOLVED]
Moderator: Moderators
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Naming new eras? [SOLVED]
Okay, so I've created the scripts, the sides, and edited all the neccesary req files, but I don't know how to add the actual names of the new eras I'll be including in my mod to the gamelist.
If it's any help, my script layout is thus:
MAPy_MODE.lua for CW
MAPz_MODE.lua for GCW.
If it's any help, my script layout is thus:
MAPy_MODE.lua for CW
MAPz_MODE.lua for GCW.
Last edited by giftheck on Wed Oct 28, 2009 8:01 am, edited 1 time in total.
- [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: Naming new eras?
See the documentation included in the v1.3 patch.
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Does it work for mods of the main game? I'm trying to port my Main Play Mod, but without tampering with the game's original files, so it's CP compatible. Do I still just add the names to the addme.lua?
It's a shame there was no addme.lua with the BFX assets or CP assets, I could have used those to help me.
It's a shame there was no addme.lua with the BFX assets or CP assets, I could have used those to help me.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Naming new eras?
What are you even asking? Every era mod is a "mod of the main game."ggctuk wrote:Does it work for mods of the main game?
This is the whole point of being able to add new eras.ggctuk wrote:but without tampering with the game's original files, so it's CP compatible.
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Whoops... of course it works... otherwise we wouldn't have the KotoR or Dark Times eras. As you gathered, I'm new to BF2 modding, although I do carry some knowledge from BF1 modding (LUA is much harder in BF2, I see)
So basically, I add this bit in after all the missions in the addme.lua.
I'm assuming it's okay to use the standard "missionlist.lua" as a base for this?
So basically, I add this bit in after all the missions in the addme.lua.
Code: Select all
era_z = { name="MPM Galactic Civil War", icon2="gcw_icon" }-
Darth_Spiderpig
- Sith Master

- Posts: 2631
- Joined: Fri Mar 27, 2009 10:23 am
- Projects :: Something cool...
- xbox live or psn: Has no xbox....Yup
- Location: Does whatever a Spiderpig does
- Contact:
Re: Naming new eras?
I think so, yes
Should work
Should work
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Nice! I'll get it in there then.
-
Darth_Spiderpig
- Sith Master

- Posts: 2631
- Joined: Fri Mar 27, 2009 10:23 am
- Projects :: Something cool...
- xbox live or psn: Has no xbox....Yup
- Location: Does whatever a Spiderpig does
- Contact:
Re: Naming new eras?
Cool, tell us if it works.
- [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: Naming new eras?
No, use your map's addme.lua.ggctuk wrote:I'm assuming it's okay to use the standard "missionlist.lua" as a base for this?
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Naming new eras?
Early version of the BFX addme script
http://www.gametoast.com/forums/viewtop ... 67#p262467
http://www.gametoast.com/forums/viewtop ... 67#p262467
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
What I mean is, is I can get map modes and names from it.[RDH]Zerted wrote:No, use your map's addme.lua.ggctuk wrote:I'm assuming it's okay to use the standard "missionlist.lua" as a base for this?
- [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: Naming new eras?
I don't know why you would need them. If you're adding new game modes or eras to existing maps, you should be using AddNewGameModes() with the code modifications from this post: http://www.gametoast.com/forums/viewtop ... 15#p350615
Anyway, the v1.3 patch changed a bunch of stuff in that script. The way eras and game modes are handled was rewritten. Here are some of the tables from ifs_era_handler.lua (added by the patch):If you want to see how those tables are used, find a copy of Zerted.7z online somewhere...
Anyway, the v1.3 patch changed a bunch of stuff in that script. The way eras and game modes are handled was rewritten. Here are some of the tables from ifs_era_handler.lua (added by the patch):
Hidden/Spoiler:
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Zerted.7z is apparently no longer online anywhere.
Staff edit:
http://www.filefront.com/14749569/Zerted.7z/
Staff edit:
http://www.filefront.com/14749569/Zerted.7z/
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Thanks for that link, whoever posted it!
Okay, so how would I go about naming my era in a general sides mod when the setup for each map is thus:
Do I change it to this:
Okay, so how would I go about naming my era in a general sides mod when the setup for each map is thus:
Hidden/Spoiler:
Hidden/Spoiler:
-
Recon Trooper
- Command Sergeant Major

- Posts: 285
- Joined: Fri Sep 11, 2009 5:36 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Muhamid Ant Farm ???
- Contact:
Re: Naming new eras?
Remember not to double post, edit them instead.
Remember not to junior moderate, let the staff do their job instead, -Staff
Remember not to junior moderate, let the staff do their job instead, -Staff
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: Naming new eras?
Okay, I've nailed it now, my eras now appear as "MPM Clone Wars" and "MPM Galactic Civil War" on the map selection screen instead of "Yuuzhan Vong" and "Z".
