[BtS] Need help from one of the BtS SDK gurus

TheLopez

Deity
Joined
Jan 16, 2006
Messages
2,525
Location
Oregon
So I got BtS yesterday and I got the SDK from the installation directory. When I went to compile it I got a host of problems (missing variable declarations, etc.) which I have fixed.

What I am trying to do is just compile the DLL and put it in the asset directory for the Tech Tree editor. I compile using the "Final Release" and put the resulting DLL in the asset directory and BtS crashes when loading the XML. What gives? I have nothing but the DLL in the asset directory. No XML. No python. No art. Nothing. Just the resulting DLL file.

Here is the call stack...

> CvGameCoreDLL.dll!FVariableSystem::GetValue(const char * szVariable=0x022b7ee8, const wchar_t * & pwszValue=0x00000000) Line 320 C++
CvGameCoreDLL.dll!CvGlobals::cacheGlobals() Line 2657 + 0x1f bytes C++
CvGameCoreDLL.dll!CvXMLLoadUtility::SetGlobalDefines() Line 231 C++
 
Interesting, the game loads fine in debug mode but errors out in "Final Release" mode... any ideas?

Just tried compiling in "Release" mode and are having the same results as in "Final Release" mode.

Help would be great since this really puts the breaks on the Tech Tree Editor mod.
 
Alright, I pulled a fresh copy of the BtS code from the CvGameCoreDLL directory and are trying to build it... this is the list of errors that I am getting:

Error 369 error C2065: 'iI' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvUnitAI.cpp 8612 CvGameCoreDLL
Error 504 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14131 CvGameCoreDLL
Error 505 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14131 CvGameCoreDLL
Error 506 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14131 CvGameCoreDLL
Error 507 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14133 CvGameCoreDLL
Error 508 error C2228: left of '.setChar' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14133 CvGameCoreDLL
Error 509 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14157 CvGameCoreDLL
Error 510 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14157 CvGameCoreDLL
Error 511 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14157 CvGameCoreDLL
Error 512 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14159 CvGameCoreDLL
Error 513 error C2228: left of '.setChar' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14159 CvGameCoreDLL
Error 514 error C2065: 'i' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14161 CvGameCoreDLL
Error 515 error C2228: left of '.setHeadquarterChar' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameTextMgr.cpp 14161 CvGameCoreDLL
Error 516 error C2065: 'iI' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGameInterface.cpp 1996 CvGameCoreDLL
Error 524 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1809 CvGameCoreDLL
Error 525 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1809 CvGameCoreDLL
Error 526 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1809 CvGameCoreDLL
Error 527 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1811 CvGameCoreDLL
Error 528 error C2228: left of '.isNormalize' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1811 CvGameCoreDLL
Error 529 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1814 CvGameCoreDLL
Error 530 error C2228: left of '.getYieldChange' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1814 CvGameCoreDLL
Error 531 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1815 CvGameCoreDLL
Error 532 error C2228: left of '.getYieldChange' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1815 CvGameCoreDLL
Error 533 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1817 CvGameCoreDLL
Error 534 error C2228: left of '.getTechCityTrade' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1817 CvGameCoreDLL
Error 535 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1817 CvGameCoreDLL
Error 536 error C2228: left of '.getTechCityTrade' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1817 CvGameCoreDLL
Error 537 error C2228: left of '.getEra' must have class/struct/union c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1817 CvGameCoreDLL
Error 538 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1819 CvGameCoreDLL
Error 539 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1819 CvGameCoreDLL
Error 540 error C2065: 'iK' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1821 CvGameCoreDLL
Error 541 error C2065: 'iJ' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1841 CvGameCoreDLL
Error 542 error C2065: 'iJ' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1841 CvGameCoreDLL
Error 543 error C2065: 'iJ' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1841 CvGameCoreDLL
Error 544 error C2065: 'iJ' : undeclared identifier c:\Documents and Settings\dsmarti1\Desktop\Civ Mods\SDKs\CvGameCoreDLL\CvGame.cpp 1848 CvGameCoreDLL


Most of the fixes are easy, define identifiers, change one thing from iI to eCorporation, etc.

Did everyone have the same problems when grabbing a fresh copy of the DLL code from the CvGameCoreDLL directory or am I missing something?
 
Not a guru, but fresh BTS DLL compiles fine out of the box. Are you using the new, faster Makefile? I haven't got around to use it yet but from its thread I know it's more setup-dependent and causes problems for some people. Either way, it's certainly your setup and not the code, might try just checking if the old Makefile works.
 
Not a guru, but fresh BTS DLL compiles fine out of the box.
I completely disagree... there are some code issues in the code included in the installation directory.

Are you using the new, faster Makefile? I haven't got around to use it yet but from its thread I know it's more setup-dependent and causes problems for some people. Either way, it's certainly your setup and not the code, might try just checking if the old Makefile works.
No, not yet. Like I said I just grabbed the straight code and tried to compile it, at first go it didn't compile, I fixed the code issues, it compiled but the resulting DLL causes the game to crash.
 
Issue resolved... please delete this thread
 
I completely disagree... there are some code issues in the code included in the installation directory.

I had absolutely no errors in BTS 3.19, nothing had to be fixed.

No, not yet. Like I said I just grabbed the straight code and tried to compile it, at first go it didn't compile, I fixed the code issues, it compiled but the resulting DLL causes the game to crash.

So what Makefile are you using? Refar's? That one at least, should work out of the box: http://forums.civfanatics.com/showpost.php?p=8191788&postcount=323

EDIT: boo!
 
I suspect TheLopez tried compiling using the VC project inside the SDK folder after converting it to a more recent version of Visual Studio.
 
I suspect TheLopez tried compiling using the VC project inside the SDK folder after converting it to a more recent version of Visual Studio.

Yep, that's exactly what I did. I assumed it would work since it worked with vanilla Civ4 and Warlords... silly me.
 
Top Bottom