Closed D1GQ closed 4 months ago
What’s up with using coroutines here?
IEnumerator JoinLastGame() { yield return new WaitForSeconds(0.2f);
Because it wasn't trying to reconnect without adding a small delay, and it's like the easiest way to add a delay without adding too much code that I know of, if you have a better way you can change it lol.
This seems to also make it where if they host closes the game if you keep trying you can eventually rejoin if they made a new game, I don't know if this works all the time or not.
@winstxnhdw Is there a way to forcibly stop trying to connect to a game and go back to the main menu to prevent a "an error occurred" message?
Just don't press the ok button.
This seems to also make it where if they host closes the game if you keep trying you can eventually rejoin if they made a new game, I don't know if this works all the time or not.
Can confirm, your code even allows you to join the host if they rehost a private lobby.
This seems to also make it where if they host closes the game if you keep trying you can eventually rejoin if they made a new game, I don't know if this works all the time or not.
Can confirm, your code even allows you to join the host if they rehost a private lobby.
how do you get it to keep retrying?
how do you get it to keep retrying? Take a look at https://github.com/winstxnhdw/lc-hax/pull/343
Added in #346
F3 Disconnect Then Reconnect / Reconnect
Added a simple option instead of just disconnecting with Shift F4, You can disconnect then reconnect with Shift F3, also if you somehow get disconnected from the game and it doesn't attempt to reconnect you can just press Shift F3 to reconnect to the last game you were in.
Code
DisconnectMod.cs:
InputListener.cs: