Skip to content
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

change map? #152

Closed
007fred50 opened this issue Feb 6, 2025 · 12 comments
Closed

change map? #152

007fred50 opened this issue Feb 6, 2025 · 12 comments

Comments

@007fred50
Copy link

Hello, how can i change the map inside a docker?

@joedwards32
Copy link
Owner

You can issue commands by connecting to the local console or you can download a 3rd party rcon client.

Rcon within the CS2 client itself is broken currently.

@007fred50
Copy link
Author

Hi, I'm new to cs2 server. can you make a how to do it, a plan?

@joedwards32
Copy link
Owner

This project is just a wrapper around the CS2 server and isn't intended to fully document how CS2 server itself works, so I probably won't be maintaining detailed how-tos.

That said, here's some stuff to get you started:

./rcon-cli -a ${server_ip}:27015 -p ${rcon_password} changelevel de_dust2

You can find more rcon commands for CS2 documented online.

@007fred50
Copy link
Author

Hello,

i try to follow steps:

  1. sudo docker pull outdead/rcon
  2. sudo docker run -it --rm outdead/rcon ./rcon -a 192.168.100.122:27015 -p fredy123 -e changelevel de_dust2
  3. cli: execute: auth: rcon: rcon: read packet size: read tcp 172.17.0.4:49130->192.168.100.122:27015: read: connection reset by peer

Can you see what im doing wrong?

@joedwards32
Copy link
Owner

Is your server definitely listening on that IP and port?

@007fred50
Copy link
Author

Yes,

here is my full docker command:
sudo docker run --name=counterstrike2 -e SRCDS_TOKEN="" -e CS2_SERVERNAME="007fred - CS2" -e CS2_RCONPW="fredy123" -e CS2_IP="192.168.100.122" -e CS2_PORT=27015 -v /games/cs2server:/home/steam/cs2-dedicated/ -p 27015:27015/tcp -p 27015:27015/udp -p 27020:27020/udp joedwards32/cs2

@007fred50
Copy link
Author

My Counter strike 2 client can see the server and i can join it

@007fred50
Copy link
Author

did you found some fix ? :)

@joedwards32
Copy link
Owner

joedwards32 commented Feb 17, 2025

I wouldn't specify CS2_IP="192.168.100.122", that is only needed if you are using host mode networking under docker and you are using bridged mode.

It may be that rcon server is failing to bind to an ip/port.

@007fred50
Copy link
Author

thanks, now i can change map, but i need update the client.. how to do that?

Image

@007fred50
Copy link
Author

i do (sudo docker pull joedwards32/cs2)

@joedwards32
Copy link
Owner

The container updates automatically on startup, but you may be running into #142.

The latest image has a potential fix, if you pull it.

I'll close this issue and you can join the conversation over in #142 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants