Page 1 of 1

Server is hibernating. [CS:S]

Posted: Mon Jan 11, 2021 5:22 pm
by ae2x
Hi,

Do anyone got anyidea how to remove Counter Strike: Source server hibernating?

Is there somekind cvar or??

It is dedicated linux debian 10.

Re: Server is hibernating. [CS:S]

Posted: Tue Jan 12, 2021 7:11 am
by Ayuto
There is a variable, but I'm not sure whether or not it is for CSS:
viewtopic.php?f=20&t=664&p=3642&hilit=Hibernate#p3642

Re: Server is hibernating. [CS:S]

Posted: Tue Jan 12, 2021 1:53 pm
by ae2x
That hibernate command is for csgo :S


Ayuto wrote:There is a variable, but I'm not sure whether or not it is for CSS:
viewtopic.php?f=20&t=664&p=3642&hilit=Hibernate#p3642

Re: Server is hibernating. [CS:S]

Posted: Tue Jan 12, 2021 9:27 pm
by L'In20Cible

Syntax: Select all

from engines.server import server_game_dll
from memory import get_virtual_function
from memory.hooks import PreHook

@PreHook(get_virtual_function(server_game_dll, 'SetServerHibernation'))
def pre_set_server_hibernation(stack_data):
stack_data[1] = False

Re: Server is hibernating. [CS:S]

Posted: Wed Jan 13, 2021 3:02 pm
by ae2x
L'In20Cible wrote:

Syntax: Select all

from engines.server import server_game_dll
from memory import get_virtual_function
from memory.hooks import PreHook

@PreHook(get_virtual_function(server_game_dll, 'SetServerHibernation'))
def pre_set_server_hibernation(stack_data):
stack_data[1] = False



used that as plugin. and server console says:

Dropped dNk. from server (Disconnect by user.)
Server is hibernating.

Also idk is it from hibernating or not .. but when no one on server for (not sure how long 5-10h maybe?) and ill join there server is laggy , changing map or reload same map fixing the lag? so is it hibernate or?

Re: Server is hibernating. [CS:S]

Posted: Thu Jan 14, 2021 12:39 am
by L'In20Cible
ae2x wrote:used that as plugin. and server console says:

Dropped dNk. from server (Disconnect by user.)
Server is hibernating.

It's normal that you still see the message. Basically, the game does something like this:

Syntax: Select all

print('Server is hibernating')
server_game_dll.SetServerHibernation(True)
But the hook override the call and change it to:

Syntax: Select all

server_game_dll.SetServerHibernation(False)
So whenever the game attempt to hibernate, the hook prevent it.

ae2x wrote:Also idk is it from hibernating or not .. but when no one on server for (not sure how long 5-10h maybe?) and ill join there server is laggy , changing map or reload same map fixing the lag? so is it hibernate or?
I don't think hibernating is causing such issues. More than likely caused by a plugin or something. Try to rename your addons folder and that will confirms it if the issue is no longer.

Re: Server is hibernating. [CS:S]

Posted: Fri Jan 15, 2021 6:13 pm
by ae2x
I tested yesterday that i was whole night on server and at morning it wasnt laggy.. so basicly if server is emptt for a while it starta lagging

Re: Server is hibernating. [CS:S]

Posted: Sat Jan 16, 2021 9:25 pm
by cssbestrpg
ae2x wrote:used that as plugin. and server console says:

Dropped dNk. from server (Disconnect by user.)
Server is hibernating.

Also idk is it from hibernating or not .. but when no one on server for (not sure how long 5-10h maybe?) and ill join there server is laggy , changing map or reload same map fixing the lag? so is it hibernate or?


Hi, i think the lag is caused by joining and leaving server, so it drops players weapon to cause lag, until round changes.
I have css server, to avoid that lag, i have made sure map changes and round ends

Re: Server is hibernating. [CS:S]

Posted: Sun Jan 17, 2021 5:18 pm
by ae2x
cssbestrpg wrote:
ae2x wrote:used that as plugin. and server console says:

Dropped dNk. from server (Disconnect by user.)
Server is hibernating.

Also idk is it from hibernating or not .. but when no one on server for (not sure how long 5-10h maybe?) and ill join there server is laggy , changing map or reload same map fixing the lag? so is it hibernate or?


Hi, i think the lag is caused by joining and leaving server, so it drops players weapon to cause lag, until round changes.
I have css server, to avoid that lag, i have made sure map changes and round ends



Yes, i though that to but its not becouse of weapon drop i have plugin that removes all weapon as soon they drop it .. and its not about plugins either :S that is million dollar question what cause the LAG ..