lenosisnickerboa / csgosl

A CSGO server launcher, one-click install & run
GNU General Public License v3.0
379 stars 40 forks source link

Cannot get autoexec to work #313

Closed Tommo1818 closed 2 years ago

Tommo1818 commented 2 years ago

I cannot get any config files that are ticked under the "on server start" section to load when the server starts. I am probably missing something here, but I cannot find any tutorial online that gives instructions on how to use the autoexec feature. The wiki has very little information on how to set it up at all and was not much help to me.

lenosisnickerboa commented 2 years ago

Just tried it on latest version 2.10 and had no problems. Are you sure you're putting your cfg file in the correct location using correct names (Windows e.g. appends .txt to files if you don't explicitly delete it).

Some screenshots from my test:

Added a test.cfg file here:

image

With this contents:

image

Restarted csgosl and went into the Autoexec tab and there was onserverstart_test_cfg which I ticked to enable it:

image

When I start the server and browse the server log window I see this:

image

Seems to work. Please let me know how it goes.