Thread: detect if the player has a powercut

  1. #1
    Registered User
    Join Date
    Nov 2002

    detect if the player has a powercut

    basically ive come up with this idea that if the player connected to the server suddenly has a powercut and there computer goes off, i want to get information if it was a sudden powercut or a shutdown , if it was a powercut then i would let the player rejoin the server with the same score as last time as it wasnt his fault etc,ive been looking at shutdown Event Tracker on google but nothing about where the log file is stored so i could parse that from the game client and send to the server , i hope you understand what i am trying todo and welcome you to suggestions you have to solve this

  2. #2
    Registered User
    Join Date
    Mar 2010
    The only information you get is that a player stops responding. Thats ALL the info you will ever get :P

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    The only thing you will get is a timeout but you won't know why. As has been stated all you will know is the player's system has stopped responding. How that is interpreted is up to the code but there is no way to disambiguate the actual cause of the system not responding to the server.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 15
    Last Post: 10-20-2009, 09:39 AM
  2. Replies: 8
    Last Post: 11-03-2008, 09:48 PM
  3. My first python project =)
    By Desolation in forum Tech Board
    Replies: 14
    Last Post: 06-26-2007, 10:52 PM
  4. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM
  5. Trying To Implement A 'Player' Class
    By adc85 in forum C++ Programming
    Replies: 2
    Last Post: 04-02-2003, 03:51 PM