astog
Warlord
NOTE: These errors are still present in Australia Summer Patch. Make sure to correct them again.
I have encountered some errors in the base code, and thought to share them so other can also fix them. More importantly if you encounter an error, in the base code, please share them here. Also, if your modding these files, take care to fix them in your mod too.
Current Error Count: 4
Files with errors:
org = Original Code
cor = Corrected Code
Errors are in red
PlotToolTip.lua
line 702: (plotID vs plotId)
Civilizations.xml
line 39: (Extra " in the end of the line)
Improvements.xml
line 152: (Extra > in the end of the line)
line 193: (else is in the wrong line) (Maybe patched?)
I have encountered some errors in the base code, and thought to share them so other can also fix them. More importantly if you encounter an error, in the base code, please share them here. Also, if your modding these files, take care to fix them in your mod too.
Current Error Count: 4
Files with errors:
PlotToolTip.lua
Civilizations.xml
Improvements.xml
MinimapPanel.lua
Civilizations.xml
Improvements.xml
MinimapPanel.lua
Spoiler Error List :
org = Original Code
cor = Corrected Code
Errors are in red
PlotToolTip.lua
line 702: (plotID vs plotId)
org: local constructionTypes = cityBuildQueue:GetConstructionsAtLocation(plotID);
cor: local constructionTypes = cityBuildQueue:GetConstructionsAtLocation(plotId);
cor: local constructionTypes = cityBuildQueue:GetConstructionsAtLocation(plotId);
Civilizations.xml
line 39: (Extra " in the end of the line)
org: <Row Type="CIVILIZATION_KANDY" Kind="KIND_CIVILIZATION"/>"
cor: <Row Type="CIVILIZATION_KANDY" Kind="KIND_CIVILIZATION"/>
cor: <Row Type="CIVILIZATION_KANDY" Kind="KIND_CIVILIZATION"/>
Improvements.xml
line 152: (Extra > in the end of the line)
org: <Row ImprovementType="IMPROVEMENT_COLOSSAL_HEAD" TerrainType="TERRAIN_GRASS_HILLS"/>>
cor: <Row ImprovementType="IMPROVEMENT_COLOSSAL_HEAD" TerrainType="TERRAIN_GRASS_HILLS"/>
MinimapPanel.luacor: <Row ImprovementType="IMPROVEMENT_COLOSSAL_HEAD" TerrainType="TERRAIN_GRASS_HILLS"/>
line 193: (else is in the wrong line) (Maybe patched?)
org:
cor:
Code:
function ToggleContinentLens()
if Controls.ContinentLensButton:IsChecked() then
UILens.SetActive("Continent"); else
RefreshInterfaceMode();
m_shouldCloseLensMenu = false;
if UI.GetInterfaceMode() == InterfaceModeTypes.VIEW_MODAL_LENS then
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end
end
end
cor:
Code:
function ToggleContinentLens()
if Controls.ContinentLensButton:IsChecked() then
UILens.SetActive("Continent");
RefreshInterfaceMode();
else
m_shouldCloseLensMenu = false;
if UI.GetInterfaceMode() == InterfaceModeTypes.VIEW_MODAL_LENS then
UI.SetInterfaceMode(InterfaceModeTypes.SELECTION);
end
end
end
Last edited: