Difficulties loading modded DLL

kibousha

Chieftain
Joined
Oct 31, 2005
Messages
5
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.
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 :confused: . 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!
 
Foolish me,

My first problem because I didn't have this file under Warlords folder.

boost_python-vc71-mt-gd-1_32.dll

So, if the game couldn't find this, it will unload the modded DLL and use the original one. So, if you're compiling 'debug' build, make sure you have the above file under Warlords folder. It can be found under Warlords\CvGameCoreDLL\Boost-1.32.0\libs

My second problem is because I was compiling original Civilization DLL and used it for Warlords. Not noticing the source code for warlords is inside the folder itself ><.

'Final Release' build is good now. But when I compile 'debug' build, I got the error sound that windows usually play when something goes wrong, but I don't get any window whatsoever. Anyone know why ?

Thanks a bunch!
 
Glad you figured it out. I was going to move this to the main C&C, but I think it could be of use to others here.
 
Back
Top Bottom