Chronis
Warlord
- Joined
- Feb 3, 2011
- Messages
- 102
Currently in the game a civilizations culture dissapears if they are destroyed and reappears if the civilization returns. (Civs can return in the revolutions and some other mods).
I am trying to eliminate this dissapearing/reappearing culture by changing the DLL so that culture does not dissapear when a civ is wiped out. I am having trouble finding the logic that controls this.
I thought i found it in the CvGameTextMgr.cpp in the following bit of code, but when I removed the .isAlive check nothing changed. Any thoughts would be appreciated.
Edit: Success I got the game to not remove civilization culture once a civ is destroyed. The logic was in CvPlot.cpp
However, I am still trying to get the game to display this non deleated culture. Right now it does not show up
on culture bars. This code may be in python. If anyone knows where that would help me out.
Edit #2: Never mind I figured it out. For anyone else looking to modify this the logic can be found in the following files.
CvPlot.cpp -> for actual storage of culture values.
CvGameTextMgr.cpp -> to get culture to display on main map.
CvDllWidgetData.cpp -> to get culture to display on city info screen.
I am trying to eliminate this dissapearing/reappearing culture by changing the DLL so that culture does not dissapear when a civ is wiped out. I am having trouble finding the logic that controls this.
I thought i found it in the CvGameTextMgr.cpp in the following bit of code, but when I removed the .isAlive check nothing changed. Any thoughts would be appreciated.
Edit: Success I got the game to not remove civilization culture once a civ is destroyed. The logic was in CvPlot.cpp
However, I am still trying to get the game to display this non deleated culture. Right now it does not show up
on culture bars. This code may be in python. If anyone knows where that would help me out.
Edit #2: Never mind I figured it out. For anyone else looking to modify this the logic can be found in the following files.
CvPlot.cpp -> for actual storage of culture values.
CvGameTextMgr.cpp -> to get culture to display on main map.
CvDllWidgetData.cpp -> to get culture to display on city info screen.