lemonjelly
Modding For Ethne
In my DLL, I've merged a few things, with no problems at all, until recently, where my DLL has became increasingly temperamental.
Some code breaks the game, sometimes rebuilding the DLL fixes it, but usually I just have to revert my changes, completely rebuild the DLL several times until it starts working again, and then carry on.
The DLL always breaks at one point, when you found your city, after you've named it, and before the build menu appears.
A debug DLL points to
And says that ePromotionNum is in the far minuses, yet I've never touched promotions yet, the code that breaks it could be in CvCityInfos.cpp, or even building the DLL with the Better AI debug log flag.
I really have no idea what's going on, but it's almost impossible to determine whether my code is broken, or whether my DLL is playing up, when I'm adding new stuff, which, understandably is a massive problem.
All the sources are here, I'd really appreciate it if somebody could look at it for me.
Some code breaks the game, sometimes rebuilding the DLL fixes it, but usually I just have to revert my changes, completely rebuild the DLL several times until it starts working again, and then carry on.
The DLL always breaks at one point, when you found your city, after you've named it, and before the build menu appears.
A debug DLL points to
Code:
CvPromotionInfo& CvGlobals::getPromotionInfo(PromotionTypes ePromotionNum)
{
FAssert(ePromotionNum > -1);
FAssert(ePromotionNum < GC.getNumPromotionInfos());
return *(m_paPromotionInfo[ePromotionNum]);
}
I really have no idea what's going on, but it's almost impossible to determine whether my code is broken, or whether my DLL is playing up, when I'm adding new stuff, which, understandably is a massive problem.
All the sources are here, I'd really appreciate it if somebody could look at it for me.