Woodmorning
Chieftain
- Joined
- Jun 27, 2018
- Messages
- 13
UPDATE: SOLVED
First of all, forgive me for being a bit of a newbie to Civ 6 modding. I am having a bit of trouble getting a custom leader to work (that will eventually be transitioned into its own custom civ).
I created the new custom civilization template on Modbuddy and modified the XML. I commented out everything I could find about the new civilization, and replaced CivilizationType anywhere I could find it to CIVILIZATION_CHINA as this is a new leader for China.
The mod builds fine and I can see my new leader in the selection screen and everything seems to be correct (although I do not have any art yet (the texture files are whatever came default with the template)).
I can start a game and I get a blank (black) loading screen that eventually becomes a start game button. The game starts, however it seems the "player" civilization is missing. (There is a map without fog of war and I can move the camera around but that is about it).
Checking the logs, there doesn't appear to be an error in the DATABASE.LOG file, however when I check the GameCore.log file, I see something a bit off:
Current Civ/Leader State:
[1121717.907] Player 0: Civilization - (null) (0) Leader - LEADER_WM_SUNTZU
So there is my custom leader, but Civilization = null which would indeed cause problems. Looking at my mod folder, It seems like I am missing the .dep file. can anyone explain to me what that file is for? I see it in other mods when trying to reverse engineer them. There is also an error in Modding.log:
ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - WmChinaSunTzuLeader.dep
[1131350.746]
So it seems that this file is missing, which also might be causing the problem? I am just reaching out to get some help and see what you guys think I should do to try and debug this?
UPDATE: So I was able to figure out the issue with the .dep file missing, it seems that I forgot to change a reference to JASPER_KITTY to my leader name in the .modinfo file, and then this seemed to fix that issue. Now the art shows up on the leader select screen. I am still having the NULL civilization issue though once I create a game.
UPDATE SOLVED: Turns out I was missing something inside of my .modinfo file afterall.
First of all, forgive me for being a bit of a newbie to Civ 6 modding. I am having a bit of trouble getting a custom leader to work (that will eventually be transitioned into its own custom civ).
I created the new custom civilization template on Modbuddy and modified the XML. I commented out everything I could find about the new civilization, and replaced CivilizationType anywhere I could find it to CIVILIZATION_CHINA as this is a new leader for China.
The mod builds fine and I can see my new leader in the selection screen and everything seems to be correct (although I do not have any art yet (the texture files are whatever came default with the template)).
I can start a game and I get a blank (black) loading screen that eventually becomes a start game button. The game starts, however it seems the "player" civilization is missing. (There is a map without fog of war and I can move the camera around but that is about it).
Checking the logs, there doesn't appear to be an error in the DATABASE.LOG file, however when I check the GameCore.log file, I see something a bit off:
Current Civ/Leader State:
[1121717.907] Player 0: Civilization - (null) (0) Leader - LEADER_WM_SUNTZU
So there is my custom leader, but Civilization = null which would indeed cause problems. Looking at my mod folder, It seems like I am missing the .dep file. can anyone explain to me what that file is for? I see it in other mods when trying to reverse engineer them. There is also an error in Modding.log:
ERROR: Invalid file reference in action, did you forgot to add it in <Files>? - WmChinaSunTzuLeader.dep
[1131350.746]
So it seems that this file is missing, which also might be causing the problem? I am just reaching out to get some help and see what you guys think I should do to try and debug this?
UPDATE: So I was able to figure out the issue with the .dep file missing, it seems that I forgot to change a reference to JASPER_KITTY to my leader name in the .modinfo file, and then this seemed to fix that issue. Now the art shows up on the leader select screen. I am still having the NULL civilization issue though once I create a game.
UPDATE SOLVED: Turns out I was missing something inside of my .modinfo file afterall.
Last edited: