You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webapi_authkey.txt can be defined in the game directory to avoid defining it in the launch parameters (https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators). The current script doesn't allow adding +host_workshop_collection and +workshop_start_map without -authkey being defined
Ideas:
When generating the arguments the check for API_AUTHORIZATION_KEY should include a check to see if web_authkey.txt exists at DIR_GAME/csgo/
Or, the if checks for the API_AUTHORIZATION_KEY, WORKSHOP_COLLECTION_ID, and WORKSHOP_START_MAP should be independent of API_AUTHORIZATION_KEY.
The text was updated successfully, but these errors were encountered:
Thanks for adding this, you can actually remove API_AUTHORIZATION_KEY from GENERATED_ARGS if web_authkey.txt exists altogether instead of copying it from the file. This will cut down on the size of the startup parameter too which is becoming ever growing
The way I solved it is by un-nesting the if checks. You can completely remove line 85
# Generated misc args
GENERATED_ARGS="";
if [ ! -z "${API_AUTHORIZATION_KEY}" ]; then GENERATED_ARGS="-authkey ${API_AUTHORIZATION_KEY}"; fi
if [ ! -z "${WORKSHOP_COLLECTION_ID}" ]; then GENERATED_ARGS="${GENERATED_ARGS} +host_workshop_collection ${WORKSHOP_COLLECTION_ID}"; fi
if [ ! -z "${WORKSHOP_START_MAP}" ]; then GENERATED_ARGS="${GENERATED_ARGS} +workshop_start_map ${WORKSHOP_START_MAP}"; fi
webapi_authkey.txt can be defined in the game directory to avoid defining it in the launch parameters (https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators). The current script doesn't allow adding +host_workshop_collection and +workshop_start_map without -authkey being defined
Ideas:
When generating the arguments the check for API_AUTHORIZATION_KEY should include a check to see if web_authkey.txt exists at DIR_GAME/csgo/
Or, the if checks for the API_AUTHORIZATION_KEY, WORKSHOP_COLLECTION_ID, and WORKSHOP_START_MAP should be independent of API_AUTHORIZATION_KEY.
The text was updated successfully, but these errors were encountered: