Resource icon

Errors in base code

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​

Spoiler Error List :

org = Original Code
cor = Corrected Code

Errors are in red

PlotToolTip.lua
line 694: (plotID vs plotId)
org: 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"/>

Improvements.xml
line 151: (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.lua
line 193: (else is in the wrong line)
org:
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


Author
astog
Views
293
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from astog

Top Bottom