[CF-Devel] Apartments & Server crashes - Bad voodoo...

Mark Wedel mwedel at sonic.net
Thu Sep 5 00:40:44 CDT 2002


Kevin R. Bulgrien wrote:
>
     
      Scenario:
     
     >
     
     
     >
     
      1) Enter apartment
     
     >
     
      2) Drop ultra-cool artifact on floor
     
     >
     
      3) Exit apartment
     
     >
     
      4) Play a while
     
     >
     
      5) Server crashes
     
     >
     
     
     >
     
      Results:
     
     >
     
     
     >
     
      The ultra-cool artifact is GONE!
     
     >
     
     
     >
     
      Not in player inventory, not in apartment!
     
     >
     
     
     >
     
      This is REALLY BAD VOODOO...  It was a VERY ULTRA COOL ARTIFACT!
     
     >
     
     
     >
     
      Why isn't the apartment saved when you exit?  I think that the
     
     >
     
      player autosaved during step 4, which is why the artifact is
     
     >
     
      no longer in his inventory, but the apartment did not
     
     >
     
      autosave...
     
     
  Define 'play for a while'?

  The players apartment should get saved in a reasonable amount of time after he 
exits (no worse than 5 minutes unless you have changed some of the config.h 
options).

  Maps are not saved the instant a player leaves them to increase performance - 
loading and saving maps is a relatively costly operation, so when a player 
leaves a map, it stays in memory for some amount of time so that if they revisit 
it, it is still in memory (think of the main city map - player hops into a shop, 
but are probably going to be back into the city in a pretty short period).

  If a player can arbitrarily crash the server, all sorts of abuses are open - 
there is no good way to fix those abuses except to make sure the server won't crash.




    
    


More information about the crossfire mailing list