Workshop
You will need a Steam API key, a collection to subscribe to (you can create one), and some config parameters in your LinuxGSM config.
Do not share this key.
Go browse collections for your desired game, and click "Create a collection".
Add some addons to the collection, then publish the completed collection. Then get the collection page id which can be found on the page URL. For example:
https://steamcommunity.com/sharedfiles/filedetails/?id=274397080
The collection id would be
274397080
.wsapikey="YOUR_STEAM_API_KEY"
wscollectionid="YOUR_COLLECTION_ID"
Setting the workshop collection ID only adds content to the server, and players will only download maps from the collection. This is because workshop files must be set in the workshop.lua file in:
/home/gmod/serverfiles/garrysmod/lua/autorun/server/
Example line:
resource.AddWorkshop( "workshop_ID_#_here" ) --comment
resource.AddWorkshop( "1728099077" ) --Rick Roll SENT
I do not recommend putting a collection ID in this file if you are hosting a server with a large map list, this will cause players to download every map on their first connection. Instead it is recommended to put every individual workshop item except maps in this file.
wsapikey="YOUR_STEAM_API_KEY"
wscollectionid="YOUR_COLLECTION_ID"
wsstartmap="
For KF2 Server using LinuxGSM, workshop content is added in
LinuxServer-KFEngine.ini
under:/home/user/serverfiles/KFGame/Config/kf2server
While following the guide, remember
PCServer-KFEngine.ini
is instead LinuxServer-KFEngine.ini
Last modified 1yr ago