Forged Alliance Forever Forged Alliance Forever Forums 2013-09-05T21:12:15+02:00 /feed.php?f=45&t=4894 2013-09-05T21:12:15+02:00 2013-09-05T21:12:15+02:00 /viewtopic.php?t=4894&p=53203#p53203 <![CDATA[Re: Kind of a glitch in Score.lua]]>
Koecher wrote:
johnie102 wrote:Isn't it that Rating refers to the trueskill rating (median - 3* deviation) while Rank refers to one of eight available ranks in GW?


Thats not what I wanted to mention. Just wanne tell than in both "local playerName" is used, with the same variable name for different "jobs". So if the 2 different score files are merged some day for some reasons, it'll perhaps give a problem. Thats what I wanted do mention ;)


Ah yes. I see :)
It's still ok as far as I can see. In GW the rank of the person should be part of the full name, while the rating of a person definately isn't part of the name of the person and shouldn't be in the playername.

Statistics: Posted by johnie102 — 05 Sep 2013, 21:12


]]>
2013-09-05T00:36:01+02:00 2013-09-05T00:36:01+02:00 /viewtopic.php?t=4894&p=53125#p53125 <![CDATA[Re: Kind of a glitch in Score.lua]]>
johnie102 wrote:
Isn't it that Rating refers to the trueskill rating (median - 3* deviation) while Rank refers to one of eight available ranks in GW?


Thats not what I wanted to mention. Just wanne tell than in both "local playerName" is used, with the same variable name for different "jobs". So if the 2 different score files are merged some day for some reasons, it'll perhaps give a problem. Thats what I wanted do mention ;)

Statistics: Posted by Koecher — 05 Sep 2013, 00:36


]]>
2013-09-04T21:41:15+02:00 2013-09-04T21:41:15+02:00 /viewtopic.php?t=4894&p=53098#p53098 <![CDATA[Re: Kind of a glitch in Score.lua]]> Statistics: Posted by Ze_PilOt — 04 Sep 2013, 21:41


]]>
2013-09-04T21:29:44+02:00 2013-09-04T21:29:44+02:00 /viewtopic.php?t=4894&p=53096#p53096 <![CDATA[Re: Kind of a glitch in Score.lua]]> That is at least what I can tell from the code you posted below.

Statistics: Posted by johnie102 — 04 Sep 2013, 21:29


]]>
2013-08-25T19:36:46+02:00 2013-08-25T19:36:46+02:00 /viewtopic.php?t=4894&p=51734#p51734 <![CDATA[Kind of a glitch in Score.lua]]>
I've just randomly noticed that you used the same variable name twice in the same function for different things in the score.lua file, depending if its the normal FAF file oder score.lua used for GW.
Currently this isnt a problem (as ofc just one of both files is used), but depending on what else you're going to do with the GW files, it might become one I think.

In the normal FAF score.lua there is:
Code:
      local playerName = line.name:GetText()
      local playerRating = sessionInfo.Options.Ratings[playerName]
      if (playerRating) then
         playerNameLine = playerName..' ['..math.floor(playerRating+0.5)..']'


while in the GW score.lua is:

Code:
            local playerName = data.nickname
            local playerRank = sessionInfo.Options.Ranks[playerName]
            if (playerRank) then
                playerName = ranks[data.faction][playerRank+1] .. " " .. playerName
            end           


No idea if you've done this by accident or on purpose, just wanted to give a heads up on that.

Statistics: Posted by Koecher — 25 Aug 2013, 19:36


]]>