detect if the player has a powercut

This is a discussion on detect if the player has a powercut within the Game Programming forums, part of the General Programming Boards category; basically ive come up with this idea that if the player connected to the server suddenly has a powercut and ...

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    306

    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
    Posts
    68
    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
    Posts
    9,590
    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, 08: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, 02:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21