[CSGO] Order of CFG that is executed

All other Source.Python topics and issues.
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

[CSGO] Order of CFG that is executed

Postby 8guawong » Sun Sep 28, 2014 6:17 pm

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???
User avatar
satoon101
Project Leader
Posts: 2725
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Wed Oct 01, 2014 3:54 pm

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.
Image
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Wed Oct 01, 2014 4:16 pm

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!

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 131 guests