yield = yield + row.YieldMod
yield = yield + row.Yield
Thank you for reporting this, I'm investigating it immediately.
Update: If you have time, please enable error logging, attempt to choose production, and when it bugs out attach your lua.log here. It should contain an error message of what occurred.
Update 2: I believe I found the problem, and I'm tracking it down now.
Update 3: In your Civup mod folder, open this file:
\2_ModTools_Trunk\YieldLibrary\YieldLibrary.lua
Do a find for "BuildingClassYieldModifiers"
Change line 416 from this:
Code:yield = yield + row.YieldMod
to this:
Code:yield = yield + row.Yield
I'm checking to see if this fixes it, and if so, I will release a hotfix tonight.
query = string.format("BuildingClassType = '%s' AND YieldType = '%s'", buildingInfo.BuildingClass, yieldType)
for row in GameInfo.Policy_BuildingClassYieldModifiers(query) do
if player:HasPolicy(GameInfo.Policies[row.PolicyType].ID) then
--log:Trace("%30s %20s %5s", buildingInfo.BuildingClass, yieldType, row.YieldMod)
yield = yield + row.YieldMod
end
end
query = string.format("BuildingClassType = '%s' AND YieldType = '%s'", buildingInfo.BuildingClass, yieldType)
for row in GameInfo.Building_BuildingClassYieldModifiers(query) do
if player:HasBuilding(GameInfo.Buildings[row.BuildingType].ID) then
yield = yield + row.YieldMod
end
end
I think you have to fix both lines.