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: Select all
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: Select all
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.