killmeplease
Mk Z on Steam
I have Visual Studio 2008 installed.
i'm new to modding and c++ (i write c# code at work) and need an advise.
after i loaded CvGameCoreDLL.vcproj in VS2008 and attempted to build it, an error occured: "'iI' : undeclared identifier" at line 8561 of CvUnitAI.cpp:
(last line)
i've changed iI to eCorporation (i think this change is correct), and then project has been built. I've get a CvGameCore_Release.dll and replaced an original one with this new file.
After i've launched the game, it crushed with memory access violation exception.
what do i do wrong?
i'm new to modding and c++ (i write c# code at work) and need an advise.
after i loaded CvGameCoreDLL.vcproj in VS2008 and attempted to build it, an error occured: "'iI' : undeclared identifier" at line 8561 of CvUnitAI.cpp:
Code:
bool CvUnitAI::AI_spreadCorporation()
{
PROFILE_FUNC();
CorporationTypes eCorporation = NO_CORPORATION;
for (int iI = 0; iI < GC.getNumCorporationInfos(); ++iI)
{
if (m_pUnitInfo->getCorporationSpreads((CorporationTypes)iI) > 0)
{
eCorporation = ((CorporationTypes)iI);
break;
}
}
if (NO_CORPORATION == eCorporation)
{
return false;
}
bool bHasHQ = (GET_TEAM(getTeam()).hasHeadquarters((CorporationTypes)iI));
i've changed iI to eCorporation (i think this change is correct), and then project has been built. I've get a CvGameCore_Release.dll and replaced an original one with this new file.
After i've launched the game, it crushed with memory access violation exception.
what do i do wrong?