Recast option lobby

Post here if you want to help developing something for FAF.

Recast option lobby

Postby Xinnony » 06 Mar 2013, 19:43

Hi, I propose a change in the options menu lobby.

- Removed the alphabetical sorting
- Separate the AI option in the category "Game Options" to "AI Options"

C:\ProgramData\FAForever\gamedata\faforever\lua\ui\dialogs\mapselect.lua :
Spoiler: show
Code: Select all
...
...
function RefreshOptions(skipRefresh, singlePlayer)
    -- a little weird, but the "skip refresh" is set to prevent calc visible from being called before the control is properly setup
    -- it also means it's a flag that tells you this is the first time the dialog has been opened
    -- so we'll used this flag to reset the options sources so they can set up for multiplayer
    if skipRefresh then
        OptionSource[1] = {title = "<LOC uilobby_0001>Team Options", options = import('/lua/ui/lobby/lobbyOptions.lua').teamOptions}
      OptionSource[2] = {title = "<LOC uilobby_0002>Game Options", options = import('/lua/ui/lobby/lobbyOptions.lua').globalOpts}
      OptionSource[3] = {title = "AI Options", options = import('/lua/ui/lobby/lobbyOptions.lua').AIOpts}
--~         table.sort(OptionSource[1].options, function(a, b) return LOC(a.label) < LOC(b.label) end)
--~         table.sort(OptionSource[2].options, function(a, b) return LOC(a.label) < LOC(b.label) end)
--~         table.sort(OptionSource[3].options, function(a, b) return LOC(a.label) < LOC(b.label) end)
    end
    OptionSource[4] = {}
    OptionSource[4] = {title = "<LOC lobui_0164>Advanced", options = advOptions or {}}

    Options = {}

    for _, OptionTable in OptionSource do
        if table.getsize(OptionTable.options) > 0 then
            table.insert(Options, {type = 'title', text = OptionTable.title})
            for optionIndex, optionData in OptionTable.options do
                if not(singlePlayer and optionData.mponly == true) then
                    table.insert(Options, {type = 'option', text = optionData.label, data = optionData})
                end
            end
        end
    end
    if not skipRefresh then
        OptionContainer:CalcVisible()
    end
end
...
...


C:\ProgramData\FAForever\gamedata\faforever\lua\ui\lobby\lobbyOptions.lua :
Spoiler: show
Code: Select all
--*****************************************************************************
--* File: lua/modules/ui/lobby/lobbyOptions.lua
--* Summary: Lobby options
--*
--* Copyright © 2006 Gas Powered Games, Inc.  All rights reserved.
--*****************************************************************************

-- options that show up in the team options panel
teamOptions =
{
    {
        default = 1,
        label = "<LOC lobui_0088>Spawn",
        help = "<LOC lobui_0089>Determine what positions players spawn on the map",
        key = 'TeamSpawn',
        pref = 'Lobby_Team_Spawn',
        values = {
            {
                text = "<LOC lobui_0090>Random",
                help = "<LOC lobui_0091>Spawn everyone in random locations",
                key = 'random',
            },
            {
                text = "<LOC lobui_0092>Fixed",
                help = "<LOC lobui_0093>Spawn everyone in fixed locations (determined by slot)",
                key = 'fixed',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0096>Team",
        help = "<LOC lobui_0097>Determines if players may switch teams while in game",
        key = 'TeamLock',
        pref = 'Lobby_Team_Lock',
        values = {
            {
                text = "<LOC lobui_0098>Locked",
                help = "<LOC lobui_0099>Teams are locked once play begins",
                key = 'locked',
            },
            {
                text = "<LOC lobui_0100>Unlocked",
                help = "<LOC lobui_0101>Players may switch teams during play",
                key = 'unlocked',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0532>Auto Teams",
        help = "<LOC lobui_0533>Auto ally the players before the game starts",
        key = 'AutoTeams',
        pref = 'Lobby_Auto_Teams',
        values = {
            {
                text = "<LOC lobui_0244>None",
                help = "<LOC lobui_0534>No automatic teams",
                key = 'none',
            },
            {
                text = "<LOC lobui_0530>Top vs Bottom",
                help = "<LOC lobui_0535>The game will be Top vs Bottom",
                key = 'tvsb',
            },
            {
                text = "<LOC lobui_0529>Left vs Right",
                help = "<LOC lobui_0536>The game will be Left vs Right",
                key = 'lvsr',
            },
            {
                text = "<LOC lobui_0571>Even Slots vs Odd Slots",
                help = "<LOC lobui_0572>The game will be Even Slots vs Odd Slots",
                key = 'pvsi',
            },
            {
                text = "<LOC lobui_0585>Manual Select",
                help = "<LOC lobui_0586>You can select the teams clicking on the icons in the map preview, it only works with random spawn",
                key = 'manual',
            },
        },
    },
}

globalOpts = {
    {
        default = 4,
        label = "<LOC lobui_0102>Unit Cap",
        help = "<LOC lobui_0103>Set the maximum number of units that can be in play",
        key = 'UnitCap',
        pref = 'Lobby_Gen_Cap',
        values = {
          {
                text = "<LOC lobui_0719>125",
                help = "<LOC lobui_0720>125 units per player may be in play",
                key = '125',
            },
            {
                text = "<LOC lobui_0170>250",
                help = "<LOC lobui_0171>250 units per player may be in play",
                key = '250',
            },
            {
                text = "<LOC lobui_0721>375",
                help = "<LOC lobui_0722>375 units per player may be in play",
                key = '375',
            },
            {
                text = "<LOC lobui_0172>500",
                help = "<LOC lobui_0173>500 units per player may be in play",
                key = '500',
            },
            {
                text = "<LOC lobui_0723>625",
                help = "<LOC lobui_0724>625 units per player may be in play",
                key = '625',
            },
            {
                text = "<LOC lobui_0174>750",
                help = "<LOC lobui_0175>750 units per player may be in play",
                key = '750',
            },
            {
                text = "<LOC lobui_0725>875",
                help = "<LOC lobui_0726>875 units per player may be in play",
                key = '875',
            },
            {
                text = "<LOC lobui_0235>1000",
                help = "<LOC lobui_0236>1000 units per player may be in play",
                key = '1000',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0112>Fog of War",
        help = "<LOC lobui_0113>Set up how fog of war will be visualized",
        key = 'FogOfWar',
        pref = 'Lobby_Gen_Fog',
        values = {
            {
                text = "<LOC lobui_0114>Explored",
                help = "<LOC lobui_0115>Terrain revealed, but units still need recon data",
                key = 'explored',
            },
            {
                text = "<LOC lobui_0118>None",
                help = "<LOC lobui_0119>All terrain and units visible",
                key = 'none',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0120>Victory Condition",
        help = "<LOC lobui_0121>Determines how a victory can be achieved",
        key = 'Victory',
        pref = 'Lobby_Gen_Victory',
        values = {
            {
                text = "<LOC lobui_0122>Assassination",
                help = "<LOC lobui_0123>Game ends when commander is destroyed",
                key = 'demoralization',
            },
            {
                text = "<LOC lobui_0124>Supremacy",
                help = "<LOC lobui_0125>Game ends when all structures, commanders and engineers are destroyed",
                key = 'domination',
            },
            {
                text = "<LOC lobui_0126>Annihilation",
                help = "<LOC lobui_0127>Game ends when all units are destroyed",
                key = 'eradication',
            },
            {
                text = "<LOC lobui_0128>Sandbox",
                help = "<LOC lobui_0129>Game never ends",
                key = 'sandbox',
            },
        },
    },
    {
        default = 2,
        label = "<LOC lobui_0242>Timeouts",
        help = "<LOC lobui_0243>Sets the number of timeouts each player can request",
        key = 'Timeouts',
        pref = 'Lobby_Gen_Timeouts',
        mponly = true,
        values = {
            {
                text = "<LOC lobui_0244>None",
                help = "<LOC lobui_0245>No timeouts are allowed",
                key = '0',
            },
            {
                text = "<LOC lobui_0246>Three",
                help = "<LOC lobui_0247>Each player has three timeouts",
                key = '3',
            },
            {
                text = "<LOC lobui_0248>Infinite",
                help = "<LOC lobui_0249>There is no limit on timeouts",
                key = '-1',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0258>Game Speed",
        help = "<LOC lobui_0259>Set the game speed",
        key = 'GameSpeed',
        pref = 'Lobby_Gen_GameSpeed',
        values = {
            {
                text = "<LOC lobui_0260>Normal",
                help = "<LOC lobui_0261>Fixed at the normal game speed (+0)",
                key = 'normal',
            },
            {
                text = "<LOC lobui_0262>Fast",
                help = "<LOC lobui_0263>Fixed at a fast game speed (+4)",
                key = 'fast',
            },
            {
                text = "<LOC lobui_0264>Adjustable",
                help = "<LOC lobui_0265>Adjustable in-game",
                key = 'adjustable',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0208>Cheating",
        help = "<LOC lobui_0209>Enable cheat codes",
        key = 'CheatsEnabled',
        pref = 'Lobby_Gen_CheatsEnabled',
        values = {
            {
                text = "<LOC _Off>Off",
                help = "<LOC lobui_0210>Cheats disabled",
                key = 'false',
            },
            {
                text = "<LOC _On>On",
                help = "<LOC lobui_0211>Cheats enabled",
                key = 'true',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0291>Civilians",
        help = "<LOC lobui_0292>Set how civilian units are used",
        key = 'CivilianAlliance',
        pref = 'Lobby_Gen_Civilians',
        values = {
            {
                text = "<LOC lobui_0293>Enemy",
                help = "<LOC lobui_0294>Civilians are enemies of players",
                key = 'enemy',
            },
            {
                text = "<LOC lobui_0295>Neutral",
                help = "<LOC lobui_0296>Civilians are neutral to players",
                key = 'neutral',
            },
            {
                text = "<LOC lobui_0297>None",
                help = "<LOC lobui_0298>No Civilians on the battlefield",
                key = 'removed',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0310>Prebuilt Units",
        help = "<LOC lobui_0311>Set whether the game starts with prebuilt units or not",
        key = 'PrebuiltUnits',
        pref = 'Lobby_Prebuilt_Units',
        values = {
            {
                text = "<LOC lobui_0312>Off",
                help = "<LOC lobui_0313>No prebuilt units",
                key = 'Off',
            },
            {
                text = "<LOC lobui_0314>On",
                help = "<LOC lobui_0315>Prebuilt units set",
                key = 'On',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0316>No Rush Option",
        help = "<LOC lobui_0317>Enforce No Rush rules for a certain period of time",
        key = 'NoRushOption',
        pref = 'Lobby_NoRushOption',
        values = {
            {
                text = "<LOC lobui_0318>Off",
                help = "<LOC lobui_0319>Rules not enforced",
                key = 'Off',
            },
            {
                text = "<LOC lobui_0320>5",
                help = "<LOC lobui_0321>Rules enforced for 5 mins",
                key = '5',
            },
            {
                text = "<LOC lobui_0322>10",
                help = "<LOC lobui_0323>Rules enforced for 10 mins",
                key = '10',
            },
            {
                text = "<LOC lobui_0324>20",
                help = "<LOC lobui_0325>Rules enforced for 20 mins",
                key = '20',
            },
        },
    },
    {
        default = 1,
        label = "<LOC lobui_0545>Random Map",
        help = "<LOC lobui_0546>If enabled, the game will selected a random map just before the game launch",
        key = 'RandomMap',
        pref = 'Lobby_Random_Map',
        values = {
            {
                text = "<LOC lobui_0312>Off",
                help = "<LOC lobui_0556>No random map",
                key = 'Off',
            },
         {
                text = "<LOC lobui_0553>Official Maps Only",
                help = "<LOC lobui_0555>Random map set",
                key = 'Official',
            },
            {
                text = "<LOC lobui_0554>All Maps",
                help = "<LOC lobui_0555>Random map set",
                key = 'All',
            },
        },
    },
   {
        default = 1,
        label = "<LOC lobui_0727>Score",
        help = "<LOC lobui_0728>Set score on or off during the game",
        key = 'Score',
        pref = 'Lobby_Score',
        values = {
            {
                text = "<LOC _On>On",
                help = "<LOC lobui_0729>Score is enabled",
                key = 'yes',
            },
            {
                text = "<LOC _Off>Off",
                help = "<LOC lobui_0730>Score is disabled",
                key = 'no',
            },
        },
    },
   {
        default = 1,
        label = "<LOC lobui_0740>Share Conditions",
        help = "<LOC lobui_0741>Kill all the units you shared to your allies and send back the units your allies shared with you when you die",
        key = 'Share',
        pref = 'Lobby_Share',
        values = {
            {
                text = "<LOC lobui_0742>Full Share",
                help = "<LOC lobui_0743>You can give units to your allies and they will not be destroyed when you die",
                key = 'no',
            },
            {
                text = "<LOC lobui_0744>Share Until Death",
                help = "<LOC lobui_0745>All the units you gave to your allies will be destroyed when you die",
                key = 'yes',
            },
        },
    },
}


AIOpts = {
   {
        default = 11,
        label = "AIx Cheat Multiplier",
        help = "Set the cheat multiplier for the cheating AIs.",
        key = 'CheatMult',
        pref = 'Lobby_Cheat_Mult',
        values = {
            {
                text = "1.0",
                help = "Cheat multiplier of 1.0",
                key = '1.0',
            },
            {
                text = "1.1",
                help = "Cheat multiplier of 1.1",
                key = '1.1',
            },
            {
                text = "1.2",
                help = "Cheat multiplier of 1.2",
                key = '1.2',
            },
            {
                text = "1.3",
                help = "Cheat multiplier of 1.3",
                key = '1.3',
            },
            {
                text = "1.4",
                help = "Cheat multiplier of 1.4",
                key = '1.4',
            },
            {
                text = "1.5",
                help = "Cheat multiplier of 1.5",
                key = '1.5',
            },
            {
                text = "1.6",
                help = "Cheat multiplier of 1.6",
                key = '1.6',
            },
            {
                text = "1.7",
                help = "Cheat multiplier of 1.7",
                key = '1.7',
            },
            {
                text = "1.8",
                help = "Cheat multiplier of 1.8",
                key = '1.8',
            },
            {
                text = "1.9",
                help = "Cheat multiplier of 1.9",
                key = '1.9',
            },
            {
                text = "2.0",
                help = "Cheat multiplier of 2.0",
                key = '2.0',
            },
            {
                text = "2.1",
                help = "Cheat multiplier of 2.1",
                key = '2.1',
            },
            {
                text = "2.2",
                help = "Cheat multiplier of 2.2",
                key = '2.2',
            },
            {
                text = "2.3",
                help = "Cheat multiplier of 2.3",
                key = '2.3',
            },
            {
                text = "2.4",
                help = "Cheat multiplier of 2.4",
                key = '2.4',
            },
            {
                text = "2.5",
                help = "Cheat multiplier of 2.5",
                key = '2.5',
            },
            {
                text = "2.6",
                help = "Cheat multiplier of 2.6",
                key = '2.6',
            },
            {
                text = "2.7",
                help = "Cheat multiplier of 2.7",
                key = '2.7',
            },
            {
                text = "2.8",
                help = "Cheat multiplier of 2.8",
                key = '2.8',
            },
            {
                text = "2.9",
                help = "Cheat multiplier of 2.9",
                key = '2.9',
            },
            {
                text = "3.0",
                help = "Cheat multiplier of 3.0",
                key = '3.0',
            },
            {
                text = "3.1",
                help = "Cheat multiplier of 3.1",
                key = '3.1',
            },
            {
                text = "3.2",
                help = "Cheat multiplier of 3.2",
                key = '3.2',
            },
            {
                text = "3.3",
                help = "Cheat multiplier of 3.3",
                key = '3.3',
            },
            {
                text = "3.4",
                help = "Cheat multiplier of 3.4",
                key = '3.4',
            },
            {
                text = "3.5",
                help = "Cheat multiplier of 3.5",
                key = '3.5',
            },
            {
                text = "3.6",
                help = "Cheat multiplier of 3.6",
                key = '3.6',
            },
            {
                text = "3.7",
                help = "Cheat multiplier of 3.7",
                key = '3.7',
            },
            {
                text = "3.8",
                help = "Cheat multiplier of 3.8",
                key = '3.8',
            },
            {
                text = "3.9",
                help = "Cheat multiplier of 3.9",
                key = '3.9',
            },
            {
                text = "4.0",
                help = "Cheat multiplier of 4.0",
                key = '4.0',
            },
            {
                text = "4.1",
                help = "Cheat multiplier of 4.1",
                key = '4.1',
            },
            {
                text = "4.2",
                help = "Cheat multiplier of 4.2",
                key = '4.2',
            },
            {
                text = "4.3",
                help = "Cheat multiplier of 4.3",
                key = '4.3',
            },
            {
                text = "4.4",
                help = "Cheat multiplier of 4.4",
                key = '4.4',
            },
            {
                text = "4.5",
                help = "Cheat multiplier of 4.5",
                key = '4.5',
            },
            {
                text = "4.6",
                help = "Cheat multiplier of 4.6",
                key = '4.6',
            },
            {
                text = "4.7",
                help = "Cheat multiplier of 4.7",
                key = '4.7',
            },
            {
                text = "4.8",
                help = "Cheat multiplier of 4.8",
                key = '4.8',
            },
            {
                text = "4.9",
                help = "Cheat multiplier of 4.9",
                key = '4.9',
            },
            {
                text = "5.0",
                help = "Cheat multiplier of 5.0",
                key = '5.0',
            },
            {
                text = "5.1",
                help = "Cheat multiplier of 5.1",
                key = '5.1',
            },
            {
                text = "5.2",
                help = "Cheat multiplier of 5.2",
                key = '5.2',
            },
            {
                text = "5.3",
                help = "Cheat multiplier of 5.3",
                key = '5.3',
            },
            {
                text = "5.4",
                help = "Cheat multiplier of 5.4",
                key = '5.4',
            },
            {
                text = "5.5",
                help = "Cheat multiplier of 5.5",
                key = '5.5',
            },
            {
                text = "5.6",
                help = "Cheat multiplier of 5.6",
                key = '5.6',
            },
            {
                text = "5.7",
                help = "Cheat multiplier of 5.7",
                key = '5.7',
            },
            {
                text = "5.8",
                help = "Cheat multiplier of 5.8",
                key = '5.8',
            },
            {
                text = "5.9",
                help = "Cheat multiplier of 5.9",
                key = '5.9',
            },
            {
                text = "6.0",
                help = "Cheat multiplier of 6.0",
                key = '6.0',
            },
        },
   },
   {   default = 11,
        label = "AIx Build Multiplier",
        help = "Set the build rate multiplier for the cheating AIs.",
        key = 'BuildMult',
        pref = 'Lobby_Build_Mult',
        values = {
            {
                text = "1.0",
                help = "Build multiplier of 1.0",
                key = '1.0',
            },
            {
                text = "1.1",
                help = "Build multiplier of 1.1",
                key = '1.1',
            },
            {
                text = "1.2",
                help = "Build multiplier of 1.2",
                key = '1.2',
            },
            {
                text = "1.3",
                help = "Build multiplier of 1.3",
                key = '1.3',
            },
            {
                text = "1.4",
                help = "Build multiplier of 1.4",
                key = '1.4',
            },
            {
                text = "1.5",
                help = "Build multiplier of 1.5",
                key = '1.5',
            },
            {
                text = "1.6",
                help = "Build multiplier of 1.6",
                key = '1.6',
            },
            {
                text = "1.7",
                help = "Build multiplier of 1.7",
                key = '1.7',
            },
            {
                text = "1.8",
                help = "Build multiplier of 1.8",
                key = '1.8',
            },
            {
                text = "1.9",
                help = "Build multiplier of 1.9",
                key = '1.9',
            },
            {
                text = "2.0",
                help = "Build multiplier of 2.0",
                key = '2.0',
            },
            {
                text = "2.1",
                help = "Build multiplier of 2.1",
                key = '2.1',
            },
            {
                text = "2.2",
                help = "Build multiplier of 2.2",
                key = '2.2',
            },
            {
                text = "2.3",
                help = "Build multiplier of 2.3",
                key = '2.3',
            },
            {
                text = "2.4",
                help = "Build multiplier of 2.4",
                key = '2.4',
            },
            {
                text = "2.5",
                help = "Build multiplier of 2.5",
                key = '2.5',
            },
            {
                text = "2.6",
                help = "Build multiplier of 2.6",
                key = '2.6',
            },
            {
                text = "2.7",
                help = "Build multiplier of 2.7",
                key = '2.7',
            },
            {
                text = "2.8",
                help = "Build multiplier of 2.8",
                key = '2.8',
            },
            {
                text = "2.9",
                help = "Build multiplier of 2.9",
                key = '2.9',
            },
            {
                text = "3.0",
                help = "Build multiplier of 3.0",
                key = '3.0',
            },
            {
                text = "3.1",
                help = "Build multiplier of 3.1",
                key = '3.1',
            },
            {
                text = "3.2",
                help = "Build multiplier of 3.2",
                key = '3.2',
            },
            {
                text = "3.3",
                help = "Build multiplier of 3.3",
                key = '3.3',
            },
            {
                text = "3.4",
                help = "Build multiplier of 3.4",
                key = '3.4',
            },
            {
                text = "3.5",
                help = "Build multiplier of 3.5",
                key = '3.5',
            },
            {
                text = "3.6",
                help = "Build multiplier of 3.6",
                key = '3.6',
            },
            {
                text = "3.7",
                help = "Build multiplier of 3.7",
                key = '3.7',
            },
            {
                text = "3.8",
                help = "Build multiplier of 3.8",
                key = '3.8',
            },
            {
                text = "3.9",
                help = "Build multiplier of 3.9",
                key = '3.9',
            },
            {
                text = "4.0",
                help = "Build multiplier of 4.0",
                key = '4.0',
            },
            {
                text = "4.1",
                help = "Build multiplier of 4.1",
                key = '4.1',
            },
            {
                text = "4.2",
                help = "Build multiplier of 4.2",
                key = '4.2',
            },
            {
                text = "4.3",
                help = "Build multiplier of 4.3",
                key = '4.3',
            },
            {
                text = "4.4",
                help = "Build multiplier of 4.4",
                key = '4.4',
            },
            {
                text = "4.5",
                help = "Build multiplier of 4.5",
                key = '4.5',
            },
            {
                text = "4.6",
                help = "Build multiplier of 4.6",
                key = '4.6',
            },
            {
                text = "4.7",
                help = "Build multiplier of 4.7",
                key = '4.7',
            },
            {
                text = "4.8",
                help = "Build multiplier of 4.8",
                key = '4.8',
            },
            {
                text = "4.9",
                help = "Build multiplier of 4.9",
                key = '4.9',
            },
            {
                text = "5.0",
                help = "Build multiplier of 5.0",
                key = '5.0',
            },
            {
                text = "5.1",
                help = "Build multiplier of 5.1",
                key = '5.1',
            },
            {
                text = "5.2",
                help = "Build multiplier of 5.2",
                key = '5.2',
            },
            {
                text = "5.3",
                help = "Build multiplier of 5.3",
                key = '5.3',
            },
            {
                text = "5.4",
                help = "Build multiplier of 5.4",
                key = '5.4',
            },
            {
                text = "5.5",
                help = "Build multiplier of 5.5",
                key = '5.5',
            },
            {
                text = "5.6",
                help = "Build multiplier of 5.6",
                key = '5.6',
            },
            {
                text = "5.7",
                help = "Build multiplier of 5.7",
                key = '5.7',
            },
            {
                text = "5.8",
                help = "Build multiplier of 5.8",
                key = '5.8',
            },
            {
                text = "5.9",
                help = "Build multiplier of 5.9",
                key = '5.9',
            },
            {
                text = "6.0",
                help = "Build multiplier of 6.0",
                key = '6.0',
            },
        },
   },
   {   default = 1,
        label = "AIx Omni Setting",
        help = "Set the build rate multiplier for the cheating AIs.",
        key = 'OmniCheat',
        pref = 'Lobby_Omni_Cheat',
        values = {
            {
                text = "On",
                help = "Full map omni on",
                key = 'on',
            },
            {
                text = "Off",
                help = "Full map omni off",
                key = 'off',
            },
        },
   },
   {   default = 6,
        label = "AI Land Expansion Limit",
        help = "Set the limit for the number of land expansions that each AI can have (will still be modified by the number of AIs).",
        key = 'LandExpansionsAllowed',
        pref = 'Lobby_Land_Expansions_Allowed',
        values = {
            {
                text = "None",
                help = "No Land Expansions Allowed",
                key = '0',
            },
            {
                text = "1",
                help = "1 Land Expansion Allowed",
                key = '1',
            },
         {
                text = "2",
                help = "2 Land Expansions Allowed",
                key = '2',
            },
            {
                text = "3",
                help = "3 Land Expansions Allowed",
                key = '3',
            },
            {
                text = "4",
                help = "4 Land Expansions Allowed",
                key = '4',
            },
            {
                text = "5",
                help = "5 Land Expansions Allowed",
                key = '5',
            },
            {
                text = "6",
                help = "6 Land Expansions Allowed",
                key = '6',
            },
            {
                text = "7",
                help = "7 Land Expansions Allowed",
                key = '7',
            },
            {
                text = "8",
                help = "8 Land Expansions Allowed",
                key = '8',
            },
            {
                text = "Unlimited",
                help = "Unlimited Land Expansions Allowed",
                key = '99999',
            },
        },
   },
   {   default = 5,
        label = "AI Naval Expansion Limit",
        help = "Set the limit for the number of naval expansions that each AI can have.",
        key = 'NavalExpansionsAllowed',
        pref = 'Lobby_Naval_Expansions_Allowed',
        values = {
            {
                text = "None",
                help = "No Naval Expansions Allowed",
                key = '0',
            },
            {
                text = "1",
                help = "1 Naval Expansion Allowed",
                key = '1',
            },
         {
                text = "2",
                help = "2 Naval Expansions Allowed",
                key = '2',
            },
            {
                text = "3",
                help = "3 Naval Expansions Allowed",
                key = '3',
            },
            {
                text = "4",
                help = "4 Naval Expansions Allowed",
                key = '4',
            },
            {
                text = "5",
                help = "5 Naval Expansions Allowed",
                key = '5',
            },
            {
                text = "6",
                help = "6 Naval Expansions Allowed",
                key = '6',
            },
            {
                text = "7",
                help = "7 Naval Expansions Allowed",
                key = '7',
            },
            {
                text = "8",
                help = "8 Naval Expansions Allowed",
                key = '8',
            },
            {
                text = "Unlimited",
                help = "Unlimited Naval Expansions Allowed",
                key = '99999',
            },
        },
   },
   {   default = 1,
        label = "AI TML Randomization",
        help = "Sets the randomization for the AI\'s TMLs making them miss more. Higher means less accurate.",
        key = 'TMLRandom',
        pref = 'Lobby_TML_Randomization',
        values = {
            {
                text = "None",
                help = "No Randomization",
                key = '0',
            },
            {
                text = "2.5%",
                help = "2.5% Randomization",
                key = '2.5',
            },
            {
                text = "5%",
                help = "5% Randomization",
                key = '5',
            },
            {
                text = "7.5%",
                help = "7.5% Randomization",
                key = '7.5',
            },
            {
                text = "10%",
                help = "10% Randomization",
                key = '10',
            },
            {
                text = "12.5%",
                help = "12.5% Randomization",
                key = '12.5',
            },
            {
                text = "15%",
                help = "15% Randomization",
                key = '15',
            },
            {
                text = "17.5%",
                help = "17.5% Randomization",
                key = '17.5',
            },
            {
                text = "20%",
                help = "20% Randomization",
                key = '20',
            },
        },
   },
}


I wonder if it is possible to fix the problem by loading the default options in the Advanced category.

And also when you click on the button "Game Option" to ensure that the map is selected and that its does not load the first map.
Attachments
exemple.jpg
exemple.jpg (75.18 KiB) Viewed 4502 times
User avatar
Xinnony
Contributor
 
Posts: 551
Joined: 19 Feb 2012, 02:49
Has liked: 70 times
Been liked: 34 times
FAF User Name: Xinnony

Re: Recast option lobby

Postby Xinnony » 12 Mar 2013, 03:38

No opinion ?
User avatar
Xinnony
Contributor
 
Posts: 551
Joined: 19 Feb 2012, 02:49
Has liked: 70 times
Been liked: 34 times
FAF User Name: Xinnony

Re: Recast option lobby

Postby rootbeer23 » 12 Mar 2013, 03:46

there should be an obvious indicator on whether the game is ranked or not (green "light" vs red "light").
makes it easy to spot accidental sandbox mode or cheats enabled.
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342

Re: Recast option lobby

Postby Zock » 12 Mar 2013, 09:13

Moving the AI options to bottom is very nice
gg no re

ohh! what a pretty shining link! https://www.youtube.com/c/Zockyzock
User avatar
Zock
Supreme Commander
 
Posts: 1395
Joined: 31 Aug 2011, 22:44
Has liked: 173 times
Been liked: 397 times
FAF User Name: Zock

Re: Recast option lobby

Postby Ze_PilOt » 12 Mar 2013, 09:15

Yeps, good idea.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Recast option lobby

Postby Xinnony » 12 Mar 2013, 19:38

For changes I posted the new code at the top Zep (Spoiler).

Edit : It would certainly be a voting function on the forum.
User avatar
Xinnony
Contributor
 
Posts: 551
Joined: 19 Feb 2012, 02:49
Has liked: 70 times
Been liked: 34 times
FAF User Name: Xinnony

Re: Recast option lobby

Postby FireMessiah » 12 Mar 2013, 19:51

rootbeer23 wrote:there should be an obvious indicator on whether the game is ranked or not (green "light" vs red "light").
makes it easy to spot accidental sandbox mode or cheats enabled.


this.
Ze_PilOt wrote:I know we live in a era when everything is done considering that the user is a total moron or retarded.
I find that insulting when a game is stating me the obvious ("press X to open the door" the 20th time I see a door).
hallelujah, amen.
User avatar
FireMessiah
Avatar-of-War
 
Posts: 223
Joined: 27 Feb 2013, 18:16
Location: West Sussex, England
Has liked: 10 times
Been liked: 10 times
FAF User Name: FireMessiah

Re: Recast option lobby

Postby Xinnony » 12 Mar 2013, 20:14

I thinks is possible to add a "Ranked" or "Not Ranked" and "Cheat" or "Not Cheat" word in Lobby, I'd watch it later.
User avatar
Xinnony
Contributor
 
Posts: 551
Joined: 19 Feb 2012, 02:49
Has liked: 70 times
Been liked: 34 times
FAF User Name: Xinnony

Re: Recast option lobby

Postby Xinnony » 20 Mar 2013, 08:41

rootbeer23 wrote:there should be an obvious indicator on whether the game is ranked or not (green "light" vs red "light").
makes it easy to spot accidental sandbox mode or cheats enabled.


I hope you will be happy, i add a color label Ranked :)
(3222 patch)
User avatar
Xinnony
Contributor
 
Posts: 551
Joined: 19 Feb 2012, 02:49
Has liked: 70 times
Been liked: 34 times
FAF User Name: Xinnony

Re: Recast option lobby

Postby eXcalibur » 20 Mar 2013, 15:36

Xinnony wrote:
rootbeer23 wrote:there should be an obvious indicator on whether the game is ranked or not (green "light" vs red "light").
makes it easy to spot accidental sandbox mode or cheats enabled.


I hope you will be happy, i add a color label Ranked :)
(3222 patch)


Well done, Xinnony!
Thanks a lot!
eXcalibur
Priest
 
Posts: 302
Joined: 28 Apr 2012, 14:18
Has liked: 52 times
Been liked: 3 times
FAF User Name: eXcalibur

Next

Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest