Garry's Mod server.cfg gerador

Garry's Mod lê server.cfg como qualquer servidor Source, mas a maioria do que as pessoas querem mudar é propriedade do gamemode em vez do motor.

Começar com um preset

Definições Visuais

Formato source
Identity

Server name in the browser.

Gameplay

Props each player may spawn. Without a sensible limit, players will find the ceiling for you and take the server with it.

Ragdolls per player.

Vehicles per player.

Lets players noclip. Sandbox-only — these limits do nothing on other gamemodes.

Players cannot be hurt.

Everyone hears everyone on voice.

Cheat commands. Note that gamemodes and addons often set their own values after this file runs, so a setting here can be overridden at runtime.

Players & Access

Join password.

Slot limit. Note this is normally set on the command line rather than here.

Network

Game server login token, required for the server to appear in the public browser.

RCON & Query

Remote console password. Change it.

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 GMod"
sv_password ""
rcon_password "changeme"
sv_setsteamaccount 
maxplayers 16
sbox_maxprops 5000
sbox_maxragdolls 50
sbox_maxvehicles 10
sbox_noclip 1
sbox_godmode 0
sv_alltalk 1
sv_cheats 0

Como funciona a sintaxe do server.cfg

Comandos separados por espaço, aspas à volta dos valores que contenham espaços, 1 e 0 para booleanos. Os comandos de limite de sandbox só existem enquanto o gamemode de sandbox estiver carregado, por isso definir-nos num servidor a executar um gamemode diferente não faz nada.

O erro que custa horas às pessoas

Add-ons e gamemodes substituem rotineiramente server.cfg em tempo real. Um servidor DarkRP define muitos dos seus próprios valores a partir dos seus próprios ficheiros de configuração depois de server.cfg já ter sido executado, por isso uma edição aqui pode ser aplicada correctamente e logo depois substituída. Verifica a configuração do gamemode antes de assumir que o ficheiro foi ignorado.

Suporte e Ajuda