• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Wat Phra Kaew is bugged

ok i figured it out . what happened was i rewrote both lines . if you follow your directions things is ok , thanks again man honestly your mods made this game so much better they should hire you with a real nice contract , thanks again
 
Yep I changed just the building and it fixed my probelm I posted as hang turn 397. Thanks for the quick solution. Some companies could use you as an example.............
 
I took over a city that had Wat Phra Kaew and I got the UI won't load message. I had to change the other line as well and I got the UI to load so I could play the game but the tooltips in the city screen now won't show. The only other mod I have running is infoaddict and I have your latest mod version.
 
Just to be clear for non-modders like me who didn't quite understand the instructions above about what to change, you need to make the relevant part of the file read like this

Spoiler :
Code:
	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.Yield
		end
	end


That is, delete the "Mod" from the end of the second instance of
Code:
yield = yield + row.YieldMod
, but leave the first one as it is. Then the UI loads but the tooltip, civilopedia etc doesn't break.

Reading back, I now understand that that was what was said above :eek:
 
Thalassicus - Thanks for providing the solution.

The YieldLibrary.lua file I have had that line at a slightly different line number. They were at 403 and 410. Have included what was modified. Acquired mod through steam so not sure if they dork around with anything.

Code:
	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.Yield
		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.Yield
		end
	end

Either way Happily playing again!! :D
 
Potenzo - thanks for the clarification! Helped my epic Mongolian conquest move forward through the ages.

- E
 
It was fixed in 2.52.. there was an issue where the hot fix wasn't uploaded to the workshop, but that should have been resolved a month ago.
 
steam workshop still ships out the unfixed version

Confirmed. I was hit by this bug today (bought G&K yesterday, finally) and sure 'nuff, 2.5.1 from Steam. I downloaded 2.5.2 from Thal's blog, reloaded my save game, and am moving along again.
 
Back
Top Bottom