Raised This Month: $51 Target: $400
 12% 

Detect when steam server connection back up?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-20-2013 , 21:11   Detect when steam server connection back up?
Reply With Quote #1

When the steam servers go down players start getting an error "failed to join session" when trying to connect to my servers.

When the steam servers actually go down I will see a message in the console such as "Connection to Steam servers lost." I have never noticed a message when the steam servers actually come back online though.

Does anyone know of a way to detect when the steam servers come back online? I need to write a plugin to restart my game servers when the steam servers come back online or players will continue to get the "failed to join session" error.

Maybe I am just missing something?
hlstriker is offline
Taz532
Senior Member
Join Date: Jul 2011
Location: Michigan
Old 08-21-2013 , 00:25   Re: Detect when steam server connection back up?
Reply With Quote #2

I've never used it, but could SteamTools be what you're looking for? Specifically theres this...

Code:
/**
 * Gets the current Steam connection state, the forwards below fire 
 * whenever this changes.
 *
 * @return Steam connection state.
 */
native bool:Steam_IsConnected();

/**
 * Fired upon a successfull connection to Steam.
 * Is also fired for late-loaded plugins.
 *
 * @noreturn
 */
forward Steam_SteamServersConnected();

/**
 * Fired upon disconnection from Steam.
 * Is also fired for late-loaded plugins.
 *
 * For plugins loaded with the server, this will normally be fired right
 * after Steam_FullyLoaded, closly followed by Steam_SteamServersConnected 
 * if a successfull connection is established.
 *
 * @noreturn
 */
forward Steam_SteamServersDisconnected();

Last edited by Taz532; 08-21-2013 at 00:32.
Taz532 is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 08-23-2013 , 00:16   Re: Detect when steam server connection back up?
Reply With Quote #3

I knew about SteamTools but it doesn't work with CS:GO does it?
hlstriker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode