I'm having an issue with UE4 matchmaking and realtime script global variable caching.
It appears that in consecutive matches between the same players, the global variables are not reset. The first match starts up just fine, and when each player leaves the match, I call RTSession.Stop() in UE4. When I rematch those players, the variables appear to not reset as the match does not start up correctly.
Do I need to call Gamesparks.Disconnect() and then Connect() to truly end the session in order for the variables to reset? Or do I need to find a way in my RTScript to reset the global variables after a match has been completed in case the same players are matched up again?
1 Comment
E
Eric Meuse
said
almost 6 years ago
Please disregard this.
Global variables are correctly reset. My own variables in my game however were not properly resetting after a match which made it look like the GS variables were always cached and never reset.
Eric Meuse
Hi,
I'm having an issue with UE4 matchmaking and realtime script global variable caching.
It appears that in consecutive matches between the same players, the global variables are not reset. The first match starts up just fine, and when each player leaves the match, I call RTSession.Stop() in UE4. When I rematch those players, the variables appear to not reset as the match does not start up correctly.
Do I need to call Gamesparks.Disconnect() and then Connect() to truly end the session in order for the variables to reset? Or do I need to find a way in my RTScript to reset the global variables after a match has been completed in case the same players are matched up again?