carloscodex
Chieftain
This one killed me for almost three weeks.
Every turn the FLOATING GARDENS would appear. I had read somewhere that this had something to do with potential errors in the construction of the Buildings table or something like that.
Well, I removed the Buildings table (and all linked objects -- too much tight coupling, yuck) and I still had the floating gardens appearing after every turn.
So, I brute forced it.
Bit by bit I removed functionality from my mod (Prehistoric). It's rather large, now, so there was a lot to remove. And there were so many dependencies (bad design) that I would have to fix it all the time.
I got to the point where the ONLY custom content I had was ONE custom technology and ONE custom era. And I still got the FLOATING GARDENS.
Here is the important part: The lua logs showed NOTHING! The database.log file and other logs showed nothing. Never. Not since the start. This is why I brute forced it.
I finally realized that I had accidentally left in a lua file reference "InGameUIAddon". In that file I had a reference to GameInfoTypes.OLD_BUILDING_NAME.
I had changed the name a while back.
So, my question to all of you: How should I have debugged this? Is there is some debug log I am missing? Some config level I am missing? I don't want to go through this again.
Thanks in advance!
P.S. My "Database.log" file sometimes does not get refreshed when I reload my game. Anyone know why this would be? I have to quit the game completely and restart.
Every turn the FLOATING GARDENS would appear. I had read somewhere that this had something to do with potential errors in the construction of the Buildings table or something like that.
Well, I removed the Buildings table (and all linked objects -- too much tight coupling, yuck) and I still had the floating gardens appearing after every turn.
So, I brute forced it.
Bit by bit I removed functionality from my mod (Prehistoric). It's rather large, now, so there was a lot to remove. And there were so many dependencies (bad design) that I would have to fix it all the time.
I got to the point where the ONLY custom content I had was ONE custom technology and ONE custom era. And I still got the FLOATING GARDENS.
Here is the important part: The lua logs showed NOTHING! The database.log file and other logs showed nothing. Never. Not since the start. This is why I brute forced it.
I finally realized that I had accidentally left in a lua file reference "InGameUIAddon". In that file I had a reference to GameInfoTypes.OLD_BUILDING_NAME.
I had changed the name a while back.
So, my question to all of you: How should I have debugged this? Is there is some debug log I am missing? Some config level I am missing? I don't want to go through this again.
Thanks in advance!
P.S. My "Database.log" file sometimes does not get refreshed when I reload my game. Anyone know why this would be? I have to quit the game completely and restart.