Update: The instructions I used to install the SDK were Refar's instructions at http://forums.civfanatics.com/downlo...file&id=10018|. Using Visual Studio, I am able to perform the build command without any errors, but when I modify CvCityAI.cpp to something like the following and "build":
In void CvCityAI::AI_chooseProduction()
Old code:
int iCulturePressure;
bDanger = AI_isDanger();
New code:
int iCulturePressure;
int zero = 0;
int test = 987654321/zero;
bDanger = AI_isDanger();
It is not crashing after completing a turn from a saved game like I would expect it to due to division by zero, which leads me back to question 1 from my previous post. I doubt it is the case that this code is not being hit, so do I need to do something else after running "build" in Visual Studio to make this code active?



Reply With Quote
Bookmarks