Giter Site home page Giter Site logo

Comments (8)

joedwards32 avatar joedwards32 commented on August 20, 2024

Hey,

Can you share your pre.sh script?

I can potentially add a sv_cheats to https://github.com/joedwards32/CS2/blob/main/bullseye/etc/server.cfg.

from cs2.

labaland avatar labaland commented on August 20, 2024

I cant enable cheat. How do i do it? I have CS2_CHEATS=1 in my docker-compose file
sv_cheat 1 wont work

from cs2.

joedwards32 avatar joedwards32 commented on August 20, 2024

@labaland Please make sure you have pulled the latest version of the docker image.

from cs2.

labaland avatar labaland commented on August 20, 2024

@labaland Please make sure you have pulled the latest version of the docker image.

Hi! Im getting this message when trying to enable this command in the console (sv_infinite_ammo 1) :
[Console] SV: Convar 'sv_infinite_ammo' is cheat protected, change ignored
[Server] Cheats cannot be enabled on this server.

Hi! Yes, i use this image: joedwards32/cs2:latest

Thanks!

  cs2:
    image: joedwards32/cs2:latest
    container_name: cs2
    network_mode: host
    privileged: true
    restart: unless-stopped
    environment:
      - SRCDS_TOKEN=07ADdddddC7E4Addd                # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - CS2_SERVERNAME=NAME
      - CS2_CHEATS=1                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015
      - CS2_SERVER_HIBERNATE=1 hibernation enabled)
      - CS2_LAN=0              
      - CS2_RCONPW=APA  
      - CS2_PW=       
      - CS2_MAXPLAYERS=64
      - CS2_ADDITIONAL_ARGS='-insecure'
      - CS2_GAMEALIAS=custom
      - CS2_GAMETYPE=0 
      - CS2_GAMEMODE=0
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
    volumes:
      - /home/lundblad/docker/cs2/config:/home/steam/cs2-dedicated/

from cs2.

labaland avatar labaland commented on August 20, 2024

And how do i exec a cfg? rcon exec name, does nothing.
And i dont have to use rcon when adding or kicking bots for example

from cs2.

macosky avatar macosky commented on August 20, 2024

Hi everyone,

Sorry for the delayed response; I have been quite busy lately.

I managed to enable sv_cheats, BUT only using RCON after the server startup and authentication to the Valve server.

For simplicity, I am using this tool:
https://github.com/fpaezf/CS2-RCON-Tool-V2

This is not a fix but a way to overide the issue.

I'm not sure why, but even after adding the line to the CFG file before starting, sv_cheats is not enabled.
I'm uncertain whether it's a bug in your implementation or a '''''feature''''' of SteamCMD.

from cs2.

joedwards32 avatar joedwards32 commented on August 20, 2024

Interesting. This definitely worked when I first implemented it. I'll test again with the latest CS2 build.

from cs2.

joedwards32 avatar joedwards32 commented on August 20, 2024

When I set CS2_CHEATS=1 cheats show as enabled in rcon

$ ./csgo-rcon-v1.3.0-linux-amd64 -a 192.168.0.31:27015 -p ******* sv_cheats
sv_cheats = true

from cs2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.