Hi all,
I've been having difficulties loading a modded CVGameCoreDLL.dll
I put the file under Warlords/Mods/skmod/Assets, but it appears that it is never loaded. I notice this because changing some code relating to health & happiness of a city is not reflected when I run the game.
I notice the output from IDE below, which explain why my code never takes effect, it is because the game unload my DLL and is using the default DLL. Reason why ? I have no idea.
Then I forcefully put it under Warlords/Assets, which then resulted in :
If I build a 'Final Release' configuration, it will crash at
If I build a 'Debug' configuration, it will say that "Module is not found".
I have tried this for a whole day now, and I've run out of ideas
. Any hint would be appreciated
I'm using VC++2003 with SP1, I just load the vcproj file and let the IDE create its own sln file. No build configuration was changed, I just use the default one that comes with the vcproj file.
Thanks a bunch!
I've been having difficulties loading a modded CVGameCoreDLL.dll
I put the file under Warlords/Mods/skmod/Assets, but it appears that it is never loaded. I notice this because changing some code relating to health & happiness of a city is not reflected when I run the game.
I notice the output from IDE below, which explain why my code never takes effect, it is because the game unload my DLL and is using the default DLL. Reason why ? I have no idea.
Code:
DLL Load:Mods\skmod\Assets\CvGameCoreDLL.dll
'Civ4Warlords.exe': Loaded 'F:\Games\Civilization 4\Warlords\Mods\skmod\assets\CvGameCoreDLL.dll', Symbols loaded.
'Civ4Warlords.exe': Unloaded 'F:\Games\Civilization 4\Warlords\Mods\skmod\assets\CvGameCoreDLL.dll'
DLL Load:C:\Documents and Settings\kibousha\My Documents\My Games\Warlords\CustomAssets\CvGameCoreDLL.dll
DLL Load:Assets\CvGameCoreDLL.dll
'Civ4Warlords.exe': Loaded 'F:\Games\Civilization 4\Warlords\Assets\CvGameCoreDLL.dll', No symbols loaded.
Then I forcefully put it under Warlords/Assets, which then resulted in :
If I build a 'Final Release' configuration, it will crash at
Code:
//
// for logging
//
void CvXMLLoadUtility::logMsg(char* format, ... )
{
static char buf[kBufSize];
_vsnprintf( buf, kBufSize-4, format, (char*)(&format+1) );
gDLL->logMsg("xml.log", buf); /// <----- Crash inside here
}
If I build a 'Debug' configuration, it will say that "Module is not found".
I have tried this for a whole day now, and I've run out of ideas


I'm using VC++2003 with SP1, I just load the vcproj file and let the IDE create its own sln file. No build configuration was changed, I just use the default one that comes with the vcproj file.
Thanks a bunch!