I was afraid you'd say that
So here we go - as per usual, make backups of game files you change. Rezaf explained me this once, and I use it in my mods without trouble, but it requires that you use GME, unless you want to mod all files in the game folder(s), which is hardly on option if you want to distribute the mod. For use with GME put all files you changed into your mod's folder, and use subfolders replicating the main game's folder structure if needed. So all files orginally in data/ go into Your_mod_folder/data/ and so on.
1. Data files
IIRC right now there are 32 countries (starting by 0). Assuming there is no hardcoded limit here (dunno) you should be able to add more.
The last entry in the data/strings.pzdat is for Vichy France using no. 31 (since it starts with 0). Look how those entries are formatted (tabs), and edit in there:
Then open data/nations.pzdat an add Czechoslovakia at the end as well plus a number determining the whether you want Cze to be axis or allies by default (unless changed in the editor). Should be self-explaining when you look at the other entries.
When you edit units nto the equipment.pzdat, use 32 as country code for Czech units of course.
2. GFX files (flags)
As explained above, you need all the gfx for those flags in the correct folders. When you open the "flags" file under Graphics/Overlays/ you'll see all country flags in some kind of roster - add one for Cze after the Vichy flag in the same fashion.
The gfx in UI/Flags and in UI/Purchase/Flags are showing only one flag each, using the country code as file name. So you need those files showing a Cze flag, named both "32" in the correct folders.
3. Editor files
You need to edit several editor filesin the UI folder to make sure you can use your new country in the game's editor, otherwise you cannot add VHs, airfields or units for it.
The files in question are:
editor_condmap
editor_scnparams
editor_unitfilter
editor_unitparams
These are HTML files, so you can edit them using a text editor, just make sure you don't mess up any tags. Basically search for the entries there that refer to countries, than add a similar one for Cze. Example:
editor_condmap.html seems to be used in the editor to set trigger and victory conditions. If you scroll down a bit you'll see a list of all countries under
You need to add another line below Vichy there:
Code: Select all
<option value="32">Czechoslovakia</option>
editor_scnparams has entries for changing the side a country belongs to per scenario, here for Ger:
Code: Select all
<input name="Germany" type="radio" id="GermanyUnused" style="margin:auto" style="margin:auto" />
<input name="Germany" type="radio" id="GermanyAxis" style="margin:auto" style="margin:auto" />
<input name="Germany" type="radio" id="GermanyAllied" style="margin:auto" style="margin:auto" />
Add a similar one for Cze.
editor_unitfilter.html has a country list which refers to labels from the strings file, for Cze add:
Code: Select all
<option value="32">IDS_NATION32</option>
editor_unitparams.html has a country list like editor_condmap, add a similar entry here.
Finally, if we ever get a patch or XP with even more countries you probably need to rework this accordingly.
I hope that helps and I didn't forget something, wrote it kinda fast. Feel free to ask if there's a prob
