lenosisnickerboa / csgosl

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

Workshop Collection as mapgroup gets reset #325

Closed iTitus closed 2 years ago

iTitus commented 2 years ago

Whenever you restart the application the mapgroup gets reset to <allmaps> instead of your workshop collection id.

Additional info: I have no map groups set up.

lenosisnickerboa commented 2 years ago

The workshop ids for mapgroups and maps are really meant as "one time" entries, i.e. it will cause the underlying csgo server to download whatever is related to those ids. If you don't want the mapgroup selected I suggest you create a new map group in the mapgroups tab and then select it in the Run tab and now that group will always be selected.

iTitus commented 2 years ago

You are right about that, but I want to keep a server "synced" to a workshop collection, so that all added maps are automatically downloaded on the next server start.

lenosisnickerboa commented 2 years ago

I see what you want to do. Just don't see how to accomplish it. Will add as "future enhancement"

iTitus commented 2 years ago

Thank you.

What about a separate field where one can enter the mapgroup which csgosl will automatically use as a mapgroup and workshop collection on startup?

lenosisnickerboa commented 2 years ago

So if that special "mapgroup field" contains something it should always be copied into the old mapgroup field? Yes, that would probably work quite effortlessly, will have to look into the code to see how it works, several years ago I wrote it :)

lenosisnickerboa commented 2 years ago

Just released 2.15 which supports permanent workshop maps and groups. I implemented it slightly different from above discussions, see mapgroups, the last lines. The same goes for maps. So you need to head into the Steam tab and enter the workshop id there. Please try it out and see if it works as you intended. If it does you can close this issue. Not sure if this will update maps in the mapgroup on-the-fly? I.e. if the mapgroup is updated (new maps, updated maps) will it require a server restart or will the update take effect immediately (on next map change?) Thanks for the hint anyway!

iTitus commented 2 years ago

Work as advertised 👍