{
"name": "Source 专用服(示例)",
"description": "适用于 CS / TF2 / GMod 等 Source 引擎游戏。创建服务器时填写主机名、密码等,启动后自动写入 server.cfg。",
"category_id": 0,
"game_type": "steam",
"executable_path": "srcds.exe",
"start_args": "-console -game cstrike -usercon +map de_dust2 +port {GAME_PORT} +query_port {QUERY_PORT} +maxplayers {MAX_PLAYERS} +exec server.cfg",
"stop_command": "",
"working_dir": "data/servers/{ID}",
"game_port": 27015,
"query_port_offset": 1,
"memory_mb": 2048,
"memory_mb_max": 0,
"free_disk_gb": 0,
"create_fee": 0,
"source_files_path": "cstrike",
"config_samples": [
{
"path": "server.cfg",
"content": "hostname \"{HOSTNAME}\"\nsv_password \"{SV_PASSWORD}\"\nrcon_password \"{RCON_PASSWORD}\"\nsv_lan 0\nsv_region 4\n\nhostport {GAME_PORT}\nsv_maxplayers {MAX_PLAYERS}\n\nmp_timelimit {MP_TIMELIMIT}\nmp_roundtime {MP_ROUNDTIME}\nmp_freezetime 5\nmp_friendlyfire 0\n\nlog on\nsv_logbans 1\nsv_logecho 1\nsv_logfile 1\n"
}
],
"settings_meta": [
{
"key": "hostname",
"label": "服务器名称",
"config_path": "server.cfg",
"config_key": "hostname",
"magic_var": "{HOSTNAME}",
"default_value": "My Game Server",
"value_type": "string",
"required": true,
"hidden_from_user": false
},
{
"key": "sv_password",
"label": "加入密码",
"config_path": "server.cfg",
"config_key": "sv_password",
"magic_var": "{SV_PASSWORD}",
"default_value": "",
"value_type": "string"
},
{
"key": "rcon_password",
"label": "RCON 密码",
"config_path": "server.cfg",
"config_key": "rcon_password",
"magic_var": "{RCON_PASSWORD}",
"default_value": "changeme",
"value_type": "string",
"required": true
},
{
"key": "mp_timelimit",
"label": "地图时间限制(分钟)",
"config_path": "server.cfg",
"config_key": "mp_timelimit",
"magic_var": "{MP_TIMELIMIT}",
"default_value": "30",
"value_type": "string"
},
{
"key": "mp_roundtime",
"label": "回合时间(分钟)",
"config_path": "server.cfg",
"config_key": "mp_roundtime",
"magic_var": "{MP_ROUNDTIME}",
"default_value": "5",
"value_type": "string"
}
],
"auto_parse_settings": true
}
评论
暂无评论,欢迎留下您的看法。