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):
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....
You have to localise them. Open editlocalize, find the teams you are using (should come up as things like 'ALL' or 'REP' etc) and change the localised names. Then edit the 'firstnames' and 'lastnames' (eg for rebels things like thrak goshun etc) and change them to more errr...mandorlin-y names.
wait, so I can do this and it won't change the stock ones? Sweet! Could I do this for a custom side? And, if you don't mind me asking, how would I change the icon for the mode (not cp icon, the one on era select)?
Last edited by Commander_Fett on Sun Dec 21, 2008 3:20 pm, edited 2 times in total.
no i dont think it is to many missions cuz b4 when i get to many missions in the addon i get an thing that pops up saying to many mission 508 of 500 or somthing like that
skelltor wrote:no i dont think it is to many missions cuz b4 when i get to many missions in the addon i get an thing that pops up saying to many mission 508 of 500 or somthing like that
You messed up the addme.lua. Doing that'll cause BF2 to crash.