Load default option

Tournaments announces and results.

Moderators: FtXCommando, Stups

Load default option

Postby Xinnony » 03 Mar 2013, 15:38

You ever notice that the default options set on custom map are not taken into account?

For example, in the map "survival_5thdimension.v0001" option "Survival: Build Time" should be on "2:30" (150) after the file "survival_5thdimension_options.lua" While the hen is creates a game, the lobby will select every time the first available option (either "0").

Same for "Final Rush 4v4 Pro3" and the "Air Transport Only" which should be set to "Enabled" then it is "Disabled".

It'd be a little FIX!

---

This is a problem between the lobby and loading some parameter file {mapname} _options.lua.

Moreover, it seems to me that there is not just the parameter "default" as the lobby is not charging.

"label", "tooltip", "values", "key" his work, but the rest I'm not sure.

For exemple, test host a "survival_5thdimension" ans look in lobby if the option "Survival: Build Time" is 0minute or 2m30s.

The "survival_5thdimension_options.lua" is :
Code: Select all
options =
{
   {
      default = 150,
      label = "Survival: Build Time",
      help = "Length of initial building time.",
      key = 'opt_Survival_BuildTime',
      pref = 'opt_Survival_BuildTime',
      values = {
         {text = "0:00 (Default)",help = "", key = 0, },
         {text = "0:30",help = "", key = 30, },
         {text = "1:00",help = "", key = 60, },
         {text = "1:30",help = "", key = 90, },
         {text = "2:00",help = "", key = 120, },
         {text = "2:30",help = "", key = 150, },
         {text = "3:00",help = "", key = 180, },
         {text = "4:00",help = "", key = 240, },
         {text = "5:00",help = "", key = 300, },
         {text = "6:00",help = "", key = 360, },
         {text = "7:00",help = "", key = 420, },
         {text = "8:00",help = "", key = 480, },
         {text = "9:00",help = "", key = 540, },
         {text = "10:00",help = "", key = 600, },
      },
   },
...
..
.

default set 150 (2m30s), not a 0 (0min) !
The lobby load 0.
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: Load default option

Postby Xinnony » 06 Mar 2013, 19:10

I thinks the problème is here : "C:\ProgramData\FAForever\gamedata\faforever\lua\ui\dialogs\mapselect.lua" on a Function "RefreshOptions" (or other ...) :

https://bitbucket.org/thepilot/forged-a ... ua?at=3622
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: Load default option

Postby Ze_PilOt » 06 Mar 2013, 19:23

If you have a fix, I will gladly integrate it to the next patch.
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: Load default option  Topic is solved

Postby Xinnony » 20 Mar 2013, 08:39

Fixed 3222
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: Load default option

Postby eXcalibur » 20 Mar 2013, 15:41

Xinnony wrote:Fixed 3222


Thanks again, Xinnony!
You really seem make a difference for the better good of the FAF lobby.

When I have read this thread, I have immediately thought about this topic: viewtopic.php?f=3&t=2610 . Can you take a look into this as well?
eXcalibur
Priest
 
Posts: 302
Joined: 28 Apr 2012, 14:18
Has liked: 52 times
Been liked: 3 times
FAF User Name: eXcalibur


Return to Tournaments

Who is online

Users browsing this forum: No registered users and 1 guest