Era/Mode Side Mod Tutorial (FAQ)
Posted: Sat Dec 20, 2008 4:45 pm
How To Make A 'Pseudo' Side Mod (aka Era mod or mode mod)
First, just clearing a few things:
What a Pseudo Side Mod does:
+Adds an era or mode (or both) to shipped maps. For example, I made sides for an era supported by 1.3 patch, x (extended civil war), and added it to all the shipped maps. It uses my custom units rather than normal units. Another exsample of a PSM is BFX (I think).
Advantages over normal side mod:
+Online compatible.
+Greater control over what units/heroes are loaded into each map.
+Can add extra modes (eg hunt on Death Star). You can use ]v['s +123 source files for this.
Disadvantages:
+Takes more time.
First things first:
Create some custom sides (not 100% necessary, but you should do it).
Create a map that will be both your test map (if you haven't got one already) and your way of loading yor era/modes to stock maps.
Anyway, once you've done the above two things, it's time to add your era/mod to stock maps. Here's what to do:
1) Download Zerted's 1.3 patch r117. Lite version will do. Get it at SWBF Files. (If you haven't got it already).
2) Copy the scripts of the maps you want a mod for to your map's script's folder (where things like your map's conquest script and so on are). Eg copy myg1c_con to your maps folder.
3) Modify those scripts. So if, say, you have a custom republic side you'd like to load, replace the section that loads troops and the section that sets up the troops for teams. Here's an example of how I did it for XCW mygeeto:
Replaced this (loads the units gcw mygeeto conquest uses):
With this (loads my units from my map's side folder):
And replaced this (sets up units):
With this (sets up my units):
For this kind of thing where you just edit the units/vehicles (rather than things like CPs) then that's all you gotta do. But, do get it to actually show up you'll need to do the following.
Now, time to make that custom script you made actually playable!
6) Go to your 'mission'.req file (in the 'common' folder in your map) and edit the script files it says. It should have something along the lines of 'XXXc_con', 'XXXg_con' (where XXX is your maps three letter id). Add the name of the script you modified. So if you added era 'a' to mygeeto conquest, add 'myg1a_con' to your mission req.
7) You'll need to add a req file for that mode to your data_XXX/Common/mission folder. This contains the req files for all stock scripts. Say we added a script called 'myg1a_con.' Copy the 'myg1g_con', rename it 'myg1a_con', open it, change the line 'myg1g_con' to 'myg1a_con'.
8) Change your addme lua. RED51 explains how to do it in this link.
9) Repeat steps 5, 6 and 7 for any scripts you have.
10) Munge and play.
If it worked, you should see your new era as selectable on the instant action screen.
I'll add a bit on how to edit the name of the era/mode you use ,and some screens soon....
First, just clearing a few things:
What a Pseudo Side Mod does:
+Adds an era or mode (or both) to shipped maps. For example, I made sides for an era supported by 1.3 patch, x (extended civil war), and added it to all the shipped maps. It uses my custom units rather than normal units. Another exsample of a PSM is BFX (I think).
Advantages over normal side mod:
+Online compatible.
+Greater control over what units/heroes are loaded into each map.
+Can add extra modes (eg hunt on Death Star). You can use ]v['s +123 source files for this.
Disadvantages:
+Takes more time.
First things first:
Create some custom sides (not 100% necessary, but you should do it).
Create a map that will be both your test map (if you haven't got one already) and your way of loading yor era/modes to stock maps.
Anyway, once you've done the above two things, it's time to add your era/mod to stock maps. Here's what to do:
1) Download Zerted's 1.3 patch r117. Lite version will do. Get it at SWBF Files. (If you haven't got it already).
2) Copy the scripts of the maps you want a mod for to your map's script's folder (where things like your map's conquest script and so on are). Eg copy myg1c_con to your maps folder.
3) Modify those scripts. So if, say, you have a custom republic side you'd like to load, replace the section that loads troops and the section that sets up the troops for teams. Here's an example of how I did it for XCW mygeeto:
Replaced this (loads the units gcw mygeeto conquest uses):
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Now, time to make that custom script you made actually playable!
6) Go to your 'mission'.req file (in the 'common' folder in your map) and edit the script files it says. It should have something along the lines of 'XXXc_con', 'XXXg_con' (where XXX is your maps three letter id). Add the name of the script you modified. So if you added era 'a' to mygeeto conquest, add 'myg1a_con' to your mission req.
7) You'll need to add a req file for that mode to your data_XXX/Common/mission folder. This contains the req files for all stock scripts. Say we added a script called 'myg1a_con.' Copy the 'myg1g_con', rename it 'myg1a_con', open it, change the line 'myg1g_con' to 'myg1a_con'.
8) Change your addme lua. RED51 explains how to do it in this link.
9) Repeat steps 5, 6 and 7 for any scripts you have.
10) Munge and play.
If it worked, you should see your new era as selectable on the instant action screen.
I'll add a bit on how to edit the name of the era/mode you use ,and some screens soon....