Having an issue with the leaderboard...
Doesn't seem to update score quickly enough?
Example - 50 zealots are spawned, player kills them... This should equal a score of 10000.
The problem being it could end up being around 8000.
The other issue is that when a player hits 10000 they should level up. So they still level up, but the leaderboard is incorrect.
I thought this might be an issue with the unit scores in gameplay data, so I edited each unit to have only the score given by the trigger.
Still having the same issue.
As the game progresses they could have scores of 230,000 - Yet be at a level of 500,000.
I'd also like to make it so killing your own units, and allied units don't give points.
Leaderboards have an error with the player row value if I recall. It is an off by 1 error so it will incorrectly change a different player's row when you update an item. You may find you are looking at the score of another player which is why it does not match your unit.
Interesting. So you think if I remove sorting it could fix that issue?
No since nothing is wrong with the sorting (that part works fine although it should happen after the set).
The issue is an off by one error with the leaderboard native's row parameter. I remember encountering this long ago and I doubt Blizzard could fix it without breaking existing maps. The result is that you are updating the wrong player every time a unit dies.
That is if you are testing with other players, since it would manifest as it not updating at all otherwise.
Quote:
The issue is an off by one error with the leaderboard native's row parameter.
With it being an off by one one error for the row value, simply figure out whether you need to ((owner of (killing unit) + 1) or (owner of (killing unit) - 1)) for the row value to get them correct
Edit: Oh and for keeping you from getting points for killing your units or your allies simply run these two conditions at the start of this trigger
Having an issue with the leaderboard... Doesn't seem to update score quickly enough? Example - 50 zealots are spawned, player kills them... This should equal a score of 10000. The problem being it could end up being around 8000. The other issue is that when a player hits 10000 they should level up. So they still level up, but the leaderboard is incorrect. I thought this might be an issue with the unit scores in gameplay data, so I edited each unit to have only the score given by the trigger. Still having the same issue. As the game progresses they could have scores of 230,000 - Yet be at a level of 500,000. I'd also like to make it so killing your own units, and allied units don't give points.
Leaderboards have an error with the player row value if I recall. It is an off by 1 error so it will incorrectly change a different player's row when you update an item. You may find you are looking at the score of another player which is why it does not match your unit.
@ImperialGood: Go
Interesting. So you think if I remove sorting it could fix that issue?
No since nothing is wrong with the sorting (that part works fine although it should happen after the set).
The issue is an off by one error with the leaderboard native's row parameter. I remember encountering this long ago and I doubt Blizzard could fix it without breaking existing maps. The result is that you are updating the wrong player every time a unit dies.
That is if you are testing with other players, since it would manifest as it not updating at all otherwise.
@ImperialGood: Go
Thanks. That's quite the annoyance. Is there some sort of work around for this?
instead of just owner of killing unit, you could do owner of killing unit - 1
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Is that a subtraction? Or on the basis of changing the value I had set to a lower number?
One workaround you might be able to do it check for changes in unit kills rather than unit death.
@PreTenD: Go
With it being an off by one one error for the row value, simply figure out whether you need to ((owner of (killing unit) + 1) or (owner of (killing unit) - 1)) for the row value to get them correct
Edit: Oh and for keeping you from getting points for killing your units or your allies simply run these two conditions at the start of this trigger
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)