pokiehl
Deity
- Joined
- Mar 5, 2017
- Messages
- 2,696
ToolTipHelper.lua, CivilopediaPage_District.lua, and CivilopediaPage_Improvement.lua all refer to a nonexistent tooltip text tag for strategic resources:
You can see the last one is LOC_TOOLTIP_BONUS_STRATEGIC, which doesn't fit the formatting of the previous two and is not defined at all in the game's text files.
In InGameText.xml, however, LOC_TOOLTIP_STRATEGIC_RESOURCE is defined appropriately (but this is not used). This is the tag those Lua files should use.
I don't know if this error is noticeable in the base game, but it is very noticeable if you mod in a row in the Adjacency_YieldChanges table with AdjacentResourceClass set to RESOURCECLASS_STRATEGIC. See this screenshot from one of my mods that gives Encampments an adjacency bonus for Strategic resources:
Code:
elseif(row.AdjacentResourceClass ~= "NO_RESOURCECLASS") then
if(row.AdjacentResourceClass == "RESOURCECLASS_BONUS") then
object = "LOC_TOOLTIP_BONUS_RESOURCE";
elseif(row.AdjacentResourceClass == "RESOURCECLASS_LUXURY") then
object = "LOC_TOOLTIP_LUXURY_RESOURCE";
elseif(row.AdjacentResourceClass == "RESOURCECLASS_STRATEGIC") then
object = "LOC_TOOLTIP_BONUS_STRATEGIC";
You can see the last one is LOC_TOOLTIP_BONUS_STRATEGIC, which doesn't fit the formatting of the previous two and is not defined at all in the game's text files.
In InGameText.xml, however, LOC_TOOLTIP_STRATEGIC_RESOURCE is defined appropriately (but this is not used). This is the tag those Lua files should use.
I don't know if this error is noticeable in the base game, but it is very noticeable if you mod in a row in the Adjacency_YieldChanges table with AdjacentResourceClass set to RESOURCECLASS_STRATEGIC. See this screenshot from one of my mods that gives Encampments an adjacency bonus for Strategic resources: