Counter-Strike 2 server.cfg generador

server.cfg es una lista de comandos de consola, y el truco es que algunos ajustes no se pueden aplicar desde ella en absoluto.

Comenzar desde un preset

Ajustes visuales

source Formato
Identity

Server name in the browser. Quote it — this format separates command and value with a space, not an equals sign.

Gameplay

Rounds per map. 0 means unlimited.

Minutes per map. 0 disables the time limit.

Seconds of buy time at the start of each round.

Round length in minutes. Competitive uses 1.92, which is 115 seconds.

Money cap per player.

Team damage.

Lets both teams hear each other on voice.

Cheat commands. Leave off on anything public.

Players & Access

Join password. Blank means public.

Network

Game server login token from your Steam account. Without it the server works but never appears in the community browser — this, not your ports, is usually why a reachable server is unlisted.

LAN mode. On, the server will not answer external queries at all.

RCON & Query

Remote console password. Change it, and do not leave the RCON port open to the internet.

server.cfg

rcon_passwordThis is still the example RCON password. Change it, and keep the RCON port off the public internet.
sv_setsteamaccountWithout a game server login token the server will not appear in the public browser, however your ports are configured.
hostname "Spawnly CS2"
sv_password ""
rcon_password "changeme"
sv_setsteamaccount 
mp_maxrounds 24
mp_timelimit 40
mp_freezetime 15
mp_roundtime 1.92
mp_maxmoney 16000
mp_friendlyfire 1
sv_alltalk 0
sv_cheats 0
sv_lan 0

Cómo funciona la sintaxis del server.cfg

Cada línea es un comando y su valor separados por un espacio, no un signo de igual. Los valores con espacios necesitan comillas; los números no. Los booleanos son 1 y 0. Un comando no reconocido produce un error — la consola simplemente sigue adelante, lo cual es por qué los errores de escritura son tan fáciles de pasar por alto aquí.

El error que cuesta horas a la gente

Varios ajustes solo tienen efecto si se les da al lanzar en lugar de en server.cfg, ya que el servidor ya los ha utilizado para cuando lee el archivo. El mapa de inicio es el ejemplo habitual. Si un ajuste funciona cuando se escribe en la consola pero no desde server.cfg, es lo que estás golpeando.

Soporte & Ayuda