Add a modded unit to a modded civ.

BrickMacklin

Chieftain
Joined
Feb 19, 2017
Messages
4
I have the Modern Carriers mod and several modded civs that I regularly play with on Civ V. Modern Carriers adds a Nimitz to America and a Kuz to Russia/China while all other Civs get the Wasp Amphibious Assault Ship.

I have been using Stalin and FDR from JFD more than I have Washington and Catherine but they only get the Wasp unit. I have explored the Modern Carriers xml files and found these specifications:

<Row>

<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
<UnitClassType>UNITCLASS_MODERNCARRIER</UnitClassType>
<UnitType>UNIT_NIMITZ</UnitType>

</Row>
<Row>

<CivilizationType>CIVILIZATION_RUSSIA</CivilizationType>
<UnitClassType>UNITCLASS_MODERNCARRIER</UnitClassType>
<UnitType>UNIT_KUZNETSOV</UnitType>

</Row>
<Row>

<CivilizationType>CIVILIZATION_CHINA</CivilizationType>
<UnitClassType>UNITCLASS_MODERNCARRIER</UnitClassType>
<UnitType>UNIT_KUZNETSOV</UnitType>

</Row>

From exploring the filed in the JFD mods I added this line to the Modern Carriers XML to get the Nimitz with FDR but I still only get the Wasp.

<Row>

<CivilizationType>CIVILIZATION_JFD_AMERICA_ROOSEVELT</CivilizationType>
<UnitClassType>UNITCLASS_MODERNCARRIER</UnitClassType>
<UnitType>UNIT_NIMITZ</UnitType>

</Row>

Is there a way to make this work? What files should I be editing?
 
  1. if the code you are trying to add is not placed within the correct gametable, then it won't be impletmented and will most likely cause the file where it occurs to fail
  2. if you are placing this code within the JFD Roosevelt mod, it is quite possible that the JFD Rooosevelt mod is loading into the game before the other mod, and at that point UNITCLASS_MODERNCARRIER and UNIT_NIMITZ would not exist within the game's database as yet.
  3. The solution to the previous is to add a reference within the JFD Roosevelt mod so that it loads after the other mod.
    1. Open folder ~\Documents\My Games\Sid Meier's Civilization 5\MODS\JFD's The United States of America (Roosevelt) (v 4)
      • Your version number might be slightly different. The last time I updated JFD's mod he was giving V4
    2. In this folder will be a file called JFD's The United States of America (Roosevelt) (v 4).modinfo
    3. Open this Modinfo file with a text editor such as Notepad
    4. Within the text of this file there is this chunk of code:
      Code:
        <References>
          <Mod id="36e88483-48fe-4545-b85f-bafc50dde315" minversion="0" maxversion="999" title="Yet (not) Another Earth Maps Pack" />
          <Mod id="1f941088-b185-4159-865c-472df81247b2" minversion="0" maxversion="999" title="Events and Decisions" />
          <Mod id="7fdd72a5-d4ae-441c-bc4e-2e3d2a26cff4" minversion="0" maxversion="999" title="Ethnic Units" />
          <Mod id="d60c32bd-6826-4ca3-8161-2e37ebab5883" minversion="0" maxversion="999" title="Protestant Denominations" />
          <Mod id="2f0b6cd7-3bf5-4197-96f6-96c00787ef18" minversion="0" maxversion="999" title="Christianity Merge" />
          <Mod id="6bc3cb6e-a697-491e-9347-5e3e02640f00" minversion="0" maxversion="999" title="Historical Religions Edit" />
          <Mod id="8c101299-95c5-4b28-b7ed-4e0f774857ef" minversion="0" maxversion="999" title="Historical Religions" />
          <Mod id="31a31d1c-b9d7-45e1-842c-23232d66cd47" minversion="0" maxversion="999" title="JFD's Cultural Diversity (Core)" />
          <Mod id="eea66053-7579-481a-bb8d-2f3959b59974" minversion="0" maxversion="999" title="JFD’s Piety &amp; Prestige" />
          <Mod id="8670da15-d435-44ea-9758-7438cb321411" minversion="0" maxversion="999" title="R.E.D. Modpack" />
        </References>
      This specifies the mods that should load before the JFD's The United States of America (Roosevelt) mod when any of these other mods are enabled at the same time as the JFD Roosevelt mod.
    5. You need to look in the Modern Carriers modinfo file for this info:
      Code:
      <Mod id="60f1b9b2-3142-4247-91ab-5c997e1cd384" version="3">
        <Properties>
          <Name>Modern Carriers</Name>
      The version I have is 3, you might have a newer version. But the version # won't matter.
    6. Add a new line to the JFD Roosevelt modinfo file so that the chunk of References now looks like this:
      Code:
        <References>
          <Mod id="36e88483-48fe-4545-b85f-bafc50dde315" minversion="0" maxversion="999" title="Yet (not) Another Earth Maps Pack" />
          <Mod id="1f941088-b185-4159-865c-472df81247b2" minversion="0" maxversion="999" title="Events and Decisions" />
          <Mod id="7fdd72a5-d4ae-441c-bc4e-2e3d2a26cff4" minversion="0" maxversion="999" title="Ethnic Units" />
          <Mod id="d60c32bd-6826-4ca3-8161-2e37ebab5883" minversion="0" maxversion="999" title="Protestant Denominations" />
          <Mod id="2f0b6cd7-3bf5-4197-96f6-96c00787ef18" minversion="0" maxversion="999" title="Christianity Merge" />
          <Mod id="6bc3cb6e-a697-491e-9347-5e3e02640f00" minversion="0" maxversion="999" title="Historical Religions Edit" />
          <Mod id="8c101299-95c5-4b28-b7ed-4e0f774857ef" minversion="0" maxversion="999" title="Historical Religions" />
          <Mod id="31a31d1c-b9d7-45e1-842c-23232d66cd47" minversion="0" maxversion="999" title="JFD's Cultural Diversity (Core)" />
          <Mod id="eea66053-7579-481a-bb8d-2f3959b59974" minversion="0" maxversion="999" title="JFD’s Piety &amp; Prestige" />
          <Mod id="8670da15-d435-44ea-9758-7438cb321411" minversion="0" maxversion="999" title="R.E.D. Modpack" />
          <Mod id="60f1b9b2-3142-4247-91ab-5c997e1cd384" minversion="0" maxversion="999" title="Modern Carriers" />
        </References>
      This will now ensure that when both Modern Carriers and JFD Roosevelt are enabled, Modern Carriers will load 1st
    7. Save the changes to the JFD's The United States of America (Roosevelt) (v 4).modinfo file
    8. You do not need to make any actual changes to the Modern Carriers (v 3).modinfo file. You just need to look in there and confirm the mod's ID# has not been changed since the last time I downloaded it.
  4. Within this folder of JFD's Roosevelt mod ~\Documents\My Games\Sid Meier's Civilization 5\MODS\JFD's The United States of America (Roosevelt) (v 4)\Core you will find a file called Civilizations.sql.
    1. Open file Civilizations.sql with a text editor such as Notepad
    2. Scroll all the way to the bottom of the file and add in the following information:
      Code:
      INSERT INTO Civilization_UnitClassOverrides
      		(CivilizationType,			UnitClassType,			UnitType) 
      VALUES		('CIVILIZATION_JFD_AMERICA_ROOSEVELT',	'UNITCLASS_MODERNCARRIER',	'UNIT_NIMITZ`);
      
      DELETE FROM Civilization_UnitClassOverrides WHERE UnitClassType = 'UNITCLASS_MODERNCARRIER' 
      AND NOT EXISTS (SELECT 1 FROM UnitClasses WHERE Type = 'UNITCLASS_MODERNCARRIER');
    3. Save the change to the file called Civilizations.sql.
    4. You should now be able to close out any open files or folders and start up the game, enable the mods, etc.
    5. Once in-game at the game's MODS menu, you will have to re-enable JFD's Roosevelt mod, since changing the contents of the modinfo file will cause it to be un-enabled.
  5. Be aware any of these changes you make will be wiped from the new version of the mod if JFD updates Roosevelt. You would just have to update to the new version of Roosevelt and then remake these changes in the appropriate files.
  6. you placed this in the references and tutorials section, where it ought not to be. I'll ask the forum moderators to move the thread.
 
I've tried this solution with JFD Nazi Germany but I still don't get the carrier or any other unit that I add.
In my JFD Nazi Germay mod there is no civilizations.sql file and I assume that the additional txt must be added to the JFD_GermanyHitler_gameDefines.sql but the text structure of the file is different and if I scroll down and add the lines above mentioned it won't work.
Any ideas?
 
Last edited:
You would need to add the following within JFD_GermanyHitler_GameDefines.sql:
Code:
INSERT INTO Civilization_UnitClassOverrides
		(CivilizationType,			UnitClassType,			UnitType) 
VALUES		('CIVILIZATION_JFD_NAZI_GERMANY',	'UNITCLASS_MODERNCARRIER',	'UNIT_NIMITZ`);

DELETE FROM Civilization_UnitClassOverrides WHERE UnitClassType = 'UNITCLASS_MODERNCARRIER' 
AND NOT EXISTS (SELECT 1 FROM UnitClasses WHERE Type = 'UNITCLASS_MODERNCARRIER');
This wold not affect the standard Bismarck civilization, though.
 
Thanks, I'm pretty sure that I've added it but the unit wouldn't show up. I used the King Tiger mod. I use the carrier mod as an example next time.

Should some other file be edited other than the modinfo?
 
Last edited:
Never mind, I'll figure it out. Thanks for the help though...
 
Back
Top Bottom