Closed FlorianSW closed 4 months ago
PLAYER SCORE
logs are invoked in two ways;
MATCH ENDED
line and transitions into an end_of_round
statein_progress
stateThe only similarity of them is that they are all disconnected at the same time when the match ended (from the point of view of the logs). Not sure if that is the issue or just a coincidence.
This makes a lot of sense if you consider that HLU collects events and processes them at intervals. If a player leaves within the same interval the server transitions into a new state, neither of the two conditions will be met.
I assumed that upon a player disconnecting I was retrieving the most up-to-date server state and that I could simply change it to use the state that the server had at the time the player was last seen, which would make this a super easy fix. But this already seems to be the case? I feel like I must be missing something here.
Found the issue. Since both cases are computed in different places, if both places would try to add player_score_update
events in the same interval, it would discard one of them, under the assumption that they were duplicates.
Awesome,t hanks a lot! :)
I'm not quite sure if this is an issue with HLU tbh, however, I wanted to report it here nonetheless. I didn't have the time to look into this issue any further right now.
Consider the following csv exported log (I omit some of the player score update messages as they are not relevant):
The players
Nerø (7656...)
,Gяey (7656...)
andReasoN (Axis/7656...)
do not appear in thePLAYER SCORE
update block and the whole logs do not contain any player score mesasge for these players. I would have expected to have a player score for them as well. The only similarity of them is that they are all disconnected at the same time when the match ended (from the point of view of the logs). Not sure if that is the issue or just a coincidence. All other players mentioned in the logs have a player score, though.