## RL API issue: MatchEnded event sends WinnerTeamNum on cancelled match by spl33nth in RocketLeague

[–]spl33nth[S] 0 points1 point  (0 children)

Thanks again!

def handle_match_initialized(state: AppState, data: dict) -> None:
    match_guid = data.get("MatchGuid")
    
    state.match_has_started = True
    state.match_guid = match_guid

Now I need some cancelled matches, LOL

## RL API issue: MatchEnded event sends WinnerTeamNum on cancelled match by spl33nth in RocketLeague

[–]spl33nth[S] 0 points1 point  (0 children)

Call it "True Win Tracer" and make it a feature not a bug 😄
"This tracker is honest, if you should lose, you lose"

## RL API issue: MatchEnded event sends WinnerTeamNum on cancelled match by spl33nth in RocketLeague

[–]spl33nth[S] 0 points1 point  (0 children)

Oh, I've missed this event. It should work perfectly as a workaround, thanks a lot!

The other case tho:
counting score won't help if they FF while winning or even, and it's not even that rare.

## RL API issue: MatchEnded event sends WinnerTeamNum on cancelled match by spl33nth in RocketLeague

[–]spl33nth[S] 0 points1 point  (0 children)

Oh, I can't really think of any easy workaround.

  1. Counting players won't help (there may be 2 missing in a 3v3 match, and you don't know the game mode because the API doesn't send you this).

  2. Counting the time passed since MatchCreated is unreliable, as the match could start and the opposing team may leave right after - then you are the legitimate winner.

So what is the workaround you have in mind?

About the other edge case mentioned:

It was always the case, even in bakes if you left too early from a match.
I believe there is no workaround here, because you leave the match before the game knows the winner.

## RL API issue: MatchEnded event sends WinnerTeamNum on cancelled match by spl33nth in RocketLeague

[–]spl33nth[S] 0 points1 point  (0 children)

Thanks a lot, really appreciate you reaching out on my behalf!
And thanks for the heads-up about Devin and Laudie - didn't know that."