View Single Post
Re: What function runs when HL is shut down?
Old
  (#4)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: What function runs when HL is shut down? - 27-10-2004

I'll try GameShutdown() since I want to know when the HL engine is being shut down normally for good. I cannot use DllMain() because my code has to work under linux.

The reason I want to detect a normal server shut down, is so I can write the "shutdown" event to a log file. This is usefull to detect when the server crashed vs shutdown for debugging a server setup. It works great for detecting things like bad maps and/or waypoints.

If you run a 24/7 server, there's no easy way to decide if a map + waypoint combination is causing crashes or not.

If you can view a log file and see that your server crashes a lot only when a certain map (or maps) are loaded, then you can remove the bad maps (or replace waypoints) and make your server more stable.

Under windows the feature worked great for me, so I do not want to lose it under Linux.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote