Harada the Grea said:
hi again, has anyone else tried to add the 2 lost units mod into the game with regiments. I tried and it overwrote the hidden units mod and vice a versa

. Any chance of these two becoming one as it would be so cool
by the way mod is brilliant
It takes some cutting and pasting to integrate this with any other mod, it's unavoidable, but relatively simple if you have a small number of units to add. (I just did it to my
entire Warhammer mod (30ish units so far), so no complaining.
I've never tried the 2 Lost Units Mod, but I assume it only adds those 2 units and doesn't modify any other stats?
Here's a general guide, I tried to make it as simple as possible, but it's hard if you've never modded before.
1) Open up the both mod's Civ4UnitInfos.xml file, copy and paste whatever new units you want into the Regiments mod's file.
2) Do the same in the Civ4ArtDefines_Unit.xml file.
****If you don't want to change the formations of your new units, skip to step 7****
3) Decide which formation you want your new units to be in and find another unit to copy. ie, if you want them to be in a 10+1 formation, you can copy the swordsman, etc...
4) Go to the unit you want to copy and copy the information between the <unitmeshgroups> and </unitmeshgroups> tags.
5) Replace your unit's mesh groups with the other unit's mesh groups. Then in the new mesh groups, change what's in between the <EarlyArtDefineTag> and </EarlyArtDefineTag> to your new unit's art define tag.
6) Almost done! Open up the regiment's Civ4UnitFormationsInfo.xml file and find the unit you want to emulate. Wherever they are, put your unit too. I did this by doing a find and replace all. For example, if I wanted the Greatswords to emulate the Swordsmen, I replaced <UnitType>UNIT_SWORDSMAN</UnitType> with
<UnitType>UNIT_SWORDSMAN</UnitType><UnitType>UNIT_GREATSWORDS</UnitType>
If your XML editing program doesn't have a find and replace all, then you have to do it manually (ugh) or get eclipse with XML plug-in, (see my tut in the tutorials section!)
***END OF SKIPPING***
7) Replace your mod's Civ4UnitInfos.xml, Civ4ArtDefines_Unit.xml and Civ4UnitFormations.xml files with the (edited) regiment mod's files. Copy the art files from the regiments mod to your mod.
DONE!!!
That wasn't so hard was it? Okey, maybe it was tedius, but now your mod it 10 times cooler!
If you have any questions, let me know
j