whoward69
DLL Minion
It can't be working - you're trying to update a table (from your mod) BEFORE that table has been created (in the DLL mod)
i don't know when it exactly happens i do know a technology triggers it though once you research it they vanish. i think it might be economics also if you don't have any trade ships after it triggers the routes won't vanish. once it triggers you can use trade ships but again i don't know exactly what triggers it best to wait for v54![]()
It can't be working - you're trying to update a table (from your mod) BEFORE that table has been created (in the DLL mod)
Does it trigger already when you START to research Economics? Because in my latest game, just when the talk came up in this thread, I was in the middle of researching Economics, i.e. the effect had triggered before I FINISHED Economics. I'm not sure exactly when it triggered, so it might have been at the point where I started the research.i'm pretty sure when you research economics and you have trade ships it triggers it. i haven't been building them until i get it and i can build them fine after i get economics. so just hold off on building trade ships until after you research economics.
V59b is linked from post #175 on the Unified Yields thread, it should fix the trade route issue as well. Unfortunately it's not save game compatible with other versions of the DLL
whoward, will using v59 with the unified yields cause a conflict with other mods that have not changed their buildings to the new yield standards?V59b is linked from post #175 on the Unified Yields thread, it should fix the trade route issue as well. Unfortunately it's not save game compatible with other versions of the DLL
whoward, will using v59 with the unified yields cause a conflict with other mods that have not changed their buildings to the new yield standards?
Does it trigger already when you START to research Economics? Because in my latest game, just when the talk came up in this thread, I was in the middle of researching Economics, i.e. the effect had triggered before I FINISHED Economics. I'm not sure exactly when it triggered, so it might have been at the point where I started the research.
it must trigger before economics than i don't know. i just wait till i've researched economics now before building ships and it seems to work.
the dll still says v53 though?
CvDllContext.cpp: 151 - Pick'N'Mix BNW DLL - Startup (Version 59b - Build Aug 1 2014 12:21:27)
local iFirstStrike = GameInfo.UnitPromotions.PROMOTION_CRAB_FIRST_STRIKE.ID
function FirstStrikePromo(iPlayer, iUnit, iPromotionType)
print(tostring(iPromotionType))
print("Crab First Strike: " ..tostring(GameInfoTypes["PROMOTION_CRAB_FIRST_STRIKE"]))
if iPromotionType == iFirstStrike then
print("Testing if can have Crab_First Strike")
local pPlayer = Players[iPlayer]
if pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_CRAB_CLAN"] then
print("Is crab.")
print("CAAAAAAAAN!")
return true
end
else
return true
end
end
GameEvents.CanHavePromotion.Add(FirstStrikePromo)
<Row>
<Type>PROMOTION_CRAB_FIRST_STRIKE</Type>
<Description>TXT_KEY_PROMOTION_CRAB_FIRST_STRIKE</Description>
<Help>TXT_KEY_PROMOTION_CRAB_FIRST_STRIKE_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CRAB_CLAN_PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_MELEE</PediaType>
<PediaEntry>TXT_KEY_PROMOTION_CRAB_FIRST_STRIKE</PediaEntry>
</Row>