-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worshop maps support #57
Comments
The host can run:
Where |
I was testing the workshops maps, and it works perfect with the |
@matiargs @DizzyThermal |
I use: |
Oh, here's the funny thing, as soon as I add a pool of cards, everything breaks. And if only host_workshop_map - everything works.
|
I had this issue as well. Not sure what is the exact reason, but if I move
|
asking here before posting it as an issue just to make sure there are more with this issue; if not it might be the 3 collections i tried. when using +host_workshop_collection XXX all players are disconnected (they actually just lose connection) on mapchange to the next workshop map. also at round end it first reloads the map it was already on before switching to the next one.. |
I've been reading some forums and the discussion page in steam, and there's some problem with the dedicated server and the workshops collection. We need to wait the fix from Valve sides. At the moment, I'm setting up a server with a default map (de_dust2) and when the server is up, I use rcon to send the command to I couldn't make it work with the CS2_ADDITIONAL_ARGS. |
@matiargs host_workshop_collection 3070959270 https://steamcommunity.com/sharedfiles/filedetails/?id=3070959270 |
@yannickvr |
host_workshop_collection itself works well but on first load you'll need to be patient as it needs to download the maps. (also dont forget your -authkey ;) the only thing that is broken is the cycling between workshop maps in your collection. if you have a small collection and it still refuses to load. start small with 1 or 2 maps in it and gradually add maps + restart server big chance one of the maps in the collection is broken or not for cs2 ;) |
@JoSchaap Can you also please attach your docker composer file |
When I set a workshop map and try to join the server, I get a segmentation fault Below the error message:
Has anyone experienced similar issues and knows of a fix? I don't know if it is releveant but when I join the server hosting a standard map, the second time I join the server, it also segfaults:
|
I'm gonna guess your system is overloaded. Please make sure to have at least 2GB of free RAM and 2 CPU cores. For me, the server uses around 1.1 gigs when no player is connected. |
@ComputersWithTimo |
Server hibernation seems to cause this. I tested CS2 outside of the docker container and the same segfault occurs, so it looks like a CS2 on Linux bug. I'm looking at introducing a change to the default server.cfg to make hibernation configurable and have it disabled by default. |
Where do you type that message? What program? is it in portainer? if yes, how? :) |
I send the command from RCON. You can use this tool https://github.com/gorcon/rcon-cli. |
Is it not possible to fix this an easy way yet? if yes, what to add in docker-compose? |
In case anyone is still having issues with map rotation using
Once
|
I've been experimenting with this and I don't get any options to vote on maps or automatic rotation to other maps in the collection, even with What behaviour do you see @domve? Can you vote on map changes etc? Did you define the mapgroup |
Keeping issue open. Support is experimental currently. |
I'm getting theses errors when trying to use the new env options:
|
Has anyone been able to get the new Did you test this yourself by chance @joedwards32 ? |
I did test myself in my dev environment and I'm right now waiting for a test container to spin up on AWS Fargate. Will post here with the result. |
Here's my docker compose file from dev environment services:
cs2-server:
image: joedwards32/cs2
container_name: cs2
environment:
# Server configuration
- SRCDS_TOKEN=************** # Game Server Token from https://steamcommunity.com/dev/managegameservers
- STEAMAPPVALIDATE=0
- CS2_SERVERNAME=changeme # (Set the visible name for your private server)
- CS2_CHEATS=0 # (0 - disable cheats, 1 - enable cheats)
- CS2_PORT=27015 # (CS2 server listen port tcp_udp)
- CS2_SERVER_HIBERNATE=0 # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
- CS2_RCON_PORT # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
- CS2_LAN=0 # (0 - LAN mode disabled, 1 - LAN Mode enabled)
- CS2_RCONPW=changeme # (RCON password)
- CS2_PW=changeme # (CS2 server password)
- CS2_MAXPLAYERS=11 # (Max players)
# Game mode
- CS2_GAMETYPE=0 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
- CS2_GAMEMODE=1 # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
# Workshop Maps
- CS2_HOST_WORKSHOP_COLLECTION=3320315839 # The workshop collection to use
- CS2_HOST_WORKSHOP_MAP=3276886893 # The workshop map to use. If collection is also defined, this is the starting map.
# Bots
- CS2_BOT_DIFFICULTY=2 # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
- CS2_BOT_QUOTA=11 # (Number of bots)
# TV
- TV_AUTORECORD=0 # Automatically records all games as CSTV demos: 0=off, 1=on.
- TV_ENABLE=0 # Activates CSTV on server: 0=off, 1=on.
- TV_PORT=27020 # Host SourceTV port
- TV_PW=changeme # CSTV password for clients
- TV_RELAY_PW=changeme # CSTV password for relay proxies
- TV_MAXRATE=0 # World snapshots to broadcast per second. Affects camera tickrate.
- TV_DELAY=0 # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
# Logs
- CS2_LOG=on # 'on'/'off'
- CS2_LOG_MONEY=1 # Turns money logging on/off: (0=off, 1=on)
- CS2_LOG_DETAIL=1 # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
- CS2_LOG_ITEMS=1 # Turns item logging on/off: (0=off, 1=on)
volumes:
- cs2:/home/steam/cs2-dedicated/ # Persistent data volume mount point inside container
ports:
- "27015:27015/tcp" # TCP
- "27015:27015/udp" # UDP
- "27020:27020/udp" # UDP
volumes:
cs2: |
And some rcon output from that running server
|
And a working AWS ECS/Fargate example:
|
Still needs the "authkey" to access the workshop collection, right?
or
|
Doesn't seem to be required. My examples work without it. |
you're right, it also works for me without the authkey. |
I'm not sure what my issue was, unfortunately wasn't able to figure it out. However, after backing up my CFG files and wiping my persistent file path and doing a fresh install the workshop related variables now work as expected 👍 |
How can I host both default maps and workshop maps using mapgroups? |
I had similar issues when testing and I don't have a solution yet. If anyone figures it out, please comment :) |
Hi,
Would like to have workshop maps support functionality.
Thank you
The text was updated successfully, but these errors were encountered: