Sid Meier's Civilization V

Sid Meier's Civilization V

SMAN's The World at War
Silver5word 30 May, 2019 @ 5:00pm
Adapting WAWUU for Custom Civs
So I absolutely LOVE the sheer number of new units, tech, and improvements in this mod! The only thing is, I've been trying to adapt WAW's unique units to custom civilizations, such as JFD's Empire of Japan (Tojo) for VP and JFD's The United States of America (Roosevelt) for VP, with mixed results. Most of the changes are pretty straightforward (simply changing the CIVILIZATION string in the unit XML easily switches over the units from the generic civ to the custom civ), but problems arise when trying to adapt the modded Civ's UUs to fit WAW's nomenclature; namely, JFD's Yamato and Kagero naval units. I wanted to use these UUs because they have special promotions (Type-94 Naval Guns and Type-93 Torpedoes), and the Kagero has unique animations.

As they currently stand, Kagero and Yamato follow (and replace) the game's original UNIT_DESTROYER and UNIT_BATTLESHIP types respectively; I've been attempting to change the unit classes to WAW's Heavy Destroyer and Heavy Battleship by replacing all instances of 'UNIT_BATTLESHIP' and 'UNIT_DESTROYER' in JFD_JapanTojo_GameDefines.sql with 'UNIT_WAW_WW2_NAVRANGED_3' and 'UNIT_WAW_WW2_NAVMELEE_2', and although the game recognizes the unit changes, can spawn the units in with IGE, have no general issues with gameplay; I cannot actually build the units in my cities. Even after building all the necessary city infrastructure (i.e. Surface Warship Dockyard), instead of the Kagero and Yamato, I only have the option to build the standard Heavy Destroyer and Heavy Battleship. Neither can I upgrade to these UUs from the previous unit--the Kongo upgrades to the Heavy Battleship, not JFD's Yamato.

I've been trying to solve this issue for an entire week without fruit, and if someone can help me with this I'd be very appreciative. Thanks in advance.

Said Mod in Question:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1443254730

Last edited by Silver5word; 30 May, 2019 @ 5:01pm
< >
Showing 1-1 of 1 comments
S-Man  [developer] 2 Aug, 2019 @ 8:44am 
Sorry for the delay in getting back to you. Have taken a well-needed break from modding lately.

It sound like to me that you're missing entries for these units in the Civilization_UnitClassOverrides table.

This table is what helps the game engine decide which specific unit in the game is given to a specific civ.

In the Unique Units companion mod, the entry for the Yamato being restricted to the normal-civ Japan looks like this:

<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_JAPAN</CivilizationType>
<UnitClassType>UNITCLASS_WAW_WW2_NAVRANGED_3</UnitClassType>
<UnitType>UNIT_WAW_WW2_NAVRANGED_3_JAP</UnitType>
</Row>
</Civilization_UnitClassOverrides>

You would need to change the CivilizationType entry to match JFD's civ type for Japan.
< >
Showing 1-1 of 1 comments
Per page: 1530 50