[BNW] Mod is being, very strange.

Oli D

Chieftain
Joined
Nov 18, 2017
Messages
3
I have picked up civ v modding again after about a year and wanted to remake one of my mods.

Did the same thing, copied the Celt's and edited them around.

I managed to get it working, with my own tags, building, ect.

I loaded it for a test, and it worked fine.

I came back to it a few hours later and edited the units file, and then everything messed up.

I then reverted the unit file back to being when it worked (while still being edited to my mod), and the same issue happens.

I can select the mod in the enable mod screen fine, then find it in the civ select, but when hitting start game on the set up screen, the game crashes. This happens when enabled alone and with other mods enabled.

I have included a .zip of my mod and crash logs. The crash logs include both the game with other mods and not my mod, then with my mod only.

Any help would be appreciated.
 

Attachments

The root cause of the crash is that you've assigned your building to a building-class that does not exist. This alone always causes the game to CTD but does not necessarily cause an error to be reported in Database.log, though there should be an invalid reference error in your specific case.

You've also told the game that your unit is <Class>UNITCLASS_WARRIOR</Class> but that it is a replacement for
Code:
  <Civilization_UnitClassOverrides>
    <Row>
      <CivilizationType>CIVILIZATION_RK_RIN</CivilizationType>
      <UnitClassType>UNITCLASS_SPEARMAN</UnitClassType>
      <UnitType>UNIT_RK_RINUNIT</UnitType>
    </Row>
  </Civilization_UnitClassOverrides>
This later mistake will not necessarily cause a CTD, but will cause unexpected behavior. From the rest of your code in the units file it looks like you simply forgot to change the unit's class to UNITCLASS_SPEARMAN.
 
Back
Top Bottom