Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

v62 cash shop exit disconnection

Newbie Spellweaver
Joined
Mar 19, 2018
Messages
38
Reaction score
2
My friends were playing on my server and entered into the cash shop. When they exited out of it, they were sent to the login screen with the message "Unable to connect to the game server." Is there a way to fix this? I know that this is a common error within most if not all public v62 repacks.
 
Custom Title Activated
Loyal Member
Joined
Jan 18, 2010
Messages
3,109
Reaction score
1,139
Since most sources (especially the older ones) don't have running shop server threads to migrate into (which, isn't even entirely necessary, but it's how Nexon does it), you don't have to disconnect the socket from the current session on exit because it's still attached to the game server. If you were connected to a separate shop server (which is how Lithium handles it), then you would handle when a user clicks the Exit button by disconnecting them and re-migrating them back to the game.

Unless you were going to implement the Cash Shop using a separate shop server thread, the best way to work around it is by just going to the ChangeMapHandler (src/net/sf/odinms/channel/handlers/ChangeMapHandler) and find a check regarding slea.available() == 0. Below it should be calling some like c.disconnect() method or something, just comment that out so it keeps your session within the current port and returns you back to the map.
 
Upvote 0
Back
Top