Whale Cancer
Chieftain
- Joined
- Nov 19, 2016
- Messages
- 7
EDIT: Solved by using the Aztec DLC as a base rather than the Punt civilization. Expect a pack of alternate leaders soon!
Hello,
I hope I am posting this in the right place, but the 'new civilizations' subforum seems to be for complete projects only and 'tutorials and reference' seems to not be for questions.
Anyway, I am trying to create a new leader for the Japanese civilization. This is just a test for a first mod at the moment. The new leader is Oda Nobunaga. All that has been changed is the addition of the new leader, a unique trait for him (1 additional military policy slot [intend to add culture on winning a battle next]), and supported files (e.g. color). I used the Punt civilization mod along with the game's data files as reference.
The mod loads properly and the leader displays correctly in the selection menu.
However, when I launch with my new leader selected I get a crash without any messages. Makes things hard to debug. Is there somewhere I can access debugging information? Why it crashed? My only inkling of what the issue may be is that I have no idea where the pedia entries are referenced (I added localizations for them using the Punt civilization as a guide, but I was unable to actually locate where those localizations are referenced).
Here is the mod in a zip file if anyone wants to take a look: https://www.dropbox.com/s/cnklau6zoezo4ya/Nobgunaga.zip?dl=0
EDIT: So I found 'Database.log'
I don't get it as my trait seems to be the same as Barbarossa's values?
Edit2: I seem to have cleared the error by deleting the (redundent?) modifiers in my leaders file. Now I still get a crash but my database.log consists only of:
Edit3 (am I seriously on edit3 already?): Gamecore.log seems to show my leader is not being properly assigned to Japan?
I declare my leader like this:
Hello,
I hope I am posting this in the right place, but the 'new civilizations' subforum seems to be for complete projects only and 'tutorials and reference' seems to not be for questions.
Anyway, I am trying to create a new leader for the Japanese civilization. This is just a test for a first mod at the moment. The new leader is Oda Nobunaga. All that has been changed is the addition of the new leader, a unique trait for him (1 additional military policy slot [intend to add culture on winning a battle next]), and supported files (e.g. color). I used the Punt civilization mod along with the game's data files as reference.
The mod loads properly and the leader displays correctly in the selection menu.
However, when I launch with my new leader selected I get a crash without any messages. Makes things hard to debug. Is there somewhere I can access debugging information? Why it crashed? My only inkling of what the issue may be is that I have no idea where the pedia entries are referenced (I added localizations for them using the Punt civilization as a guide, but I was unable to actually locate where those localizations are referenced).
Here is the mod in a zip file if anyone wants to take a look: https://www.dropbox.com/s/cnklau6zoezo4ya/Nobgunaga.zip?dl=0
EDIT: So I found 'Database.log'
Here is what seems to be the relevant part of the log:
[2154628.525] [Gameplay] ERROR: UNIQUE constraint failed: Modifiers.ModifierId
[2154628.525] [Gameplay]: While executing - 'insert into Modifiers('ModifierId', 'ModifierType') values (?, ?);'
[2154628.525] [Gameplay]: In XMLSerializer while inserting row into table insert into Modifiers('ModifierId', 'ModifierType') with values (TRAIT_MILITARY_GOVERNMENT_SLOT, MODIFIER_PLAYER_CULTURE_ADJUST_GOVERNMENT_SLOTS_MODIFIER, ).
[2154628.525] [Gameplay]: In XMLSerializer while updating table Modifiers from file Nobunaga_Leaders.xml.
[2154628.525] [Gameplay] ERROR: UNIQUE constraint failed: Modifiers.ModifierId
I don't get it as my trait seems to be the same as Barbarossa's values?
Code:
<Modifiers>
<Row>
<ModifierId>TRAIT_MILITARY_GOVERNMENT_SLOT</ModifierId>
<ModifierType>MODIFIER_PLAYER_CULTURE_ADJUST_GOVERNMENT_SLOTS_MODIFIER</ModifierType>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>TRAIT_MILITARY_GOVERNMENT_SLOT</ModifierId>
<Name>GovernmentSlotType</Name>
<Value>SLOT_MILITARY</Value>
</Row>
</ModifierArguments>
Edit2: I seem to have cleared the error by deleting the (redundent?) modifiers in my leaders file. Now I still get a crash but my database.log consists only of:
[2156720.857] [Localization]: Validating Foreign Key Constraints...
[2156720.857] [Localization]: Passed Validation.
[2156720.865] [Configuration]: Validating Foreign Key Constraints...
[2156720.866] [Configuration]: Passed Validation.
[2156727.511] [FullTextSearch]: Initializing FullTextSearch
[2156728.085] [Gameplay]: Validating Foreign Key Constraints...
[2156728.101] [Gameplay]: Passed Validation.
[2156728.716] [Configuration]: Validating Foreign Key Constraints...
[2156728.716] [Configuration]: Passed Validation.
[2156768.881] [Gameplay]: Validating Foreign Key Constraints...
[2156768.903] [Gameplay]: Passed Validation.
Edit3 (am I seriously on edit3 already?): Gamecore.log seems to show my leader is not being properly assigned to Japan?
[2156769.902] Player 0: Civilization - (null) (0) Leader - LEADER_NOBUNAGA (236208237)
I declare my leader like this:
Code:
<CivilizationLeaders>
<Row CivilizationType="CIVILIZATION_JAPAN" LeaderType="LEADER_NOBUNAGA" CapitalName="LOC_CITY_NAME_NAGOYA"/>
</CivilizationLeaders>
Last edited: