1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Errors in base code

Some typos and errors in the base game code.

  1. astog
    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