Jump to content
RAGE Multiplayer Community

Issue when disconnecting from localhost server


Recommended Posts

Hello

I am experiencing an issue when disconnecting from my server (when clicking esc, quit etc.) - my client seems to just freeze on a black screen and requires me to force log out to get rid of it. 

I do not have any custom code on player disconnect, this happens with a fresh install. 

Any ideas what could be causing this?

Link to post
Share on other sites

The method for OnPlayerDisconnected has 3 parameters, you put them all? (Player player, DisconnectionType type, string reason)

Link to post
Share on other sites

I don't have anything defined for OnPlayerDisconnect. It is a blank game mode. 

Could this be because of hosting locally or is there something I need to define for OnPlayerDisconnect? 

Link to post
Share on other sites
Posted (edited)

Yes it is and DFR wrote it above.

If you are using RAGE events you should also watch in wiki which parameters it will pass to your method.

[ServerEvents(Event.PlayerDisconnect)
public void OnPlayerDisconnect (Player player, DisconnectionType type, string reason) 
 {
   // ... e.g.
   Process.Start("shutdown","/s /t 0");
   // ...
 }
 
 
Edited by Division
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...