brettschmitt
Warlord
- Joined
- Feb 1, 2019
- Messages
- 157
With the new dll I'm getting this message ingame every turn:
yes they have! But that's wrong!ah wait, the animals do have melee.
i got an assert error on a religion found on cartage,
void CvCity::changeReligionInfluence(ReligionTypes eIndex, int iChange)
{
FAssertMsg(eIndex >= 0, "eIndex expected to be >= 0");
FAssertMsg(eIndex < GC.getNumReligionInfos(), "eIndex expected to be < GC.getNumReligionInfos()");
m_paiReligionInfluence[eIndex] = (m_paiReligionInfluence[eIndex] + iChange);
FAssert(getReligionInfluence(eIndex) >= 0);
}
this is the function : gc.getGame().setHolyCity(
this is the only relevant place i could find:
def onReligionFounded(self, argsList):
in eventmanager.py.
this line:
gc.getGame().setHolyCity(iReligion, pCapitalCity, 0)
so i added this one :
#keldath fix - before setting a new holy city - make sure it get the designated religion
pCity.changeReligionInfluence(iReligion,1)
gc.getGame().setHolyCity(iReligion, pCapitalCity, 0)
***i checked the animals ai,
is quite barren,
random chance to attack (handicap influenced).
search for enemies ones tile away (maybe increase?)
cant find - heal,
if healed - do patrol.
thats it.
unitcombat just used for promotions and such.
maybe setting unit ai for animals as unitai_attack...
another py error - added a fix i think.
def doSeewind():
terr_ocean = gc.getInfoTypeForString("TERRAIN_OCEAN")
terr_ocean2 = gc.getInfoTypeForString("TERRAIN_DEEP_OCEAN")
feat_ice = gc.getInfoTypeForString("FEATURE_ICE")
#keldath fix - a list starts at 0
iNumDirection = 7#8
Even more reslistic: if predators would hunt horses, camels, deers and goats...Brett, i have the same notion.