Can't tell if my DLL is actually being used - No log file generated

Decker87

Chieftain
Joined
Oct 28, 2010
Messages
46
I've created a simple mod which adds some logging statements into CvCityStrategyAI.cpp. I followed the log strategy here: http://forums.civfanatics.com/showpost.php?p=12067080&postcount=53

I edited the code around line 870 in CvCityStrategyAI.cpp, the code to select buildings that puppets build.

I created a new Mod in ModBuddy, right clicked on the main project and did "Add Existing Item", selected CvGameCore_Expansion1.dll, then in its properties set "Import into VFS" to True.

I load up the game, load my mod...and see no log file created at all. Can anyone help me gain some sanity to see if my DLL is even being loaded?
 
Thanks Dave! With this I was able to see the starting iTempWeights for different buildings:

iTempWeight=1550, foodYield=0, prodYield=0, goldYield=0, scienceYield=0, cultureYield=2, faithYield=0, happyYield=0, goldMaint=1
iTempWeight=0, foodYield=0, prodYield=0, goldYield=0, scienceYield=2, cultureYield=0, faithYield=2, happyYield=0, goldMaint=1

This gives me a great starting point to begin changing the logic for puppets building buildings. I am very excited to join the modding community and thanks for helping me get started!
 
Decker, can you tell me the steps to add the header file to the project. Seems it uses precompiled headers so it will ignore new files, I removed the precompiled option at the project level and did a build but it was taking so long that I cancelled it. Would that add the new header file to the project and afterwards I can use the precompiled headers again? Can you tell me how you addded whoward code?

Thanks
 
Decker, can you tell me the steps to add the header file to the project. Seems it uses precompiled headers so it will ignore new files.

Not true, it doesn't ignore new files. When I added .h and .cpp files to my project from whoward's source it was pretty straight forward: put the .h and .cpp files in the same folder as the project, and then use Add Existing Item.
 
If you add new files, either with "Add -> New Item" or "Add -> Existing Item" you want to do a "Build -> Clean Solution" followed by a "Build -> Build Solution" to make sure that the pre-compiled header and other stuff is updated. VS seems to get confused if you add and existing item with an older date than the pre-compiled header.
 
Back
Top Bottom