Page 1 of 1

[CSGO] Order of CFG that is executed

Posted: Sun Sep 28, 2014 6:17 pm
by 8guawong
Not sure if this should be posted...so i post it here....

after playing with CSGO dedicated server this past few days it seems like the cfg are executed in the following order

server.cfg -> gamemode_mode_server.cfg

however i have script that uses

Syntax: Select all

from listeners import LevelInit
@LevelInit
def my_level_init_function(mapname):
'''
exec blahblah.cfg


then the order becomes

server.cfg -> blahblah.cfg -> gamemode_mode_server.cfg

so my question is how to get blahblah.cfg to execute AFTER the gamemode_mode_server.cfg???

Posted: Wed Oct 01, 2014 3:54 pm
by satoon101
You could always use a delay to execute the config:

Syntax: Select all

from engines.server import engine_server
from listeners import LevelInit
from listeners.tick import TickDelays

@LevelInit
def my_level_init_function(mapname):
TickDelays(0, engine_server.server_command, ('exec blahblah', ))


You might also add "exec blahblah" at the end of the gamemode_<mode>_server.cfg file or make map specific configuration files, depending on your needs.

Posted: Wed Oct 01, 2014 4:16 pm
by 8guawong
satoon101 wrote:You could always use a delay to execute the config:

Syntax: Select all

from engines.server import engine_server
from listeners import LevelInit
from listeners.tick import TickDelays

@LevelInit
def my_level_init_function(mapname):
TickDelays(0, engine_server.server_command, ('exec blahblah', ))


You might also add "exec blahblah" at the end of the gamemode_<mode>_server.cfg file or make map specific configuration files, depending on your needs.


ok thanks!