RageMP/Server settings
Материал из Pawno Info Wikipedia
Настройки сервера
* conf.json - - это файл конфигурации, который позволяет легко управлять вашим сервером.
В следующей таблице поясняется использование следующих настроек:
Настройка | Значение по умолчанию | Описание | |
---|---|---|---|
announce | false | Сообщите главному серверу, чтобы люди могли видеть вас в браузере своего сервера. | |
bind | 127.0.0.1 | IP для прослушивания. | |
gamemode | Freeroam | Режим игры сервера. Список допустимых режимов игры | |
encryption | false | Будет ли соединение с сервером зашифровано или нет. | |
maxplayers | 100 | Максимальное количество игроков на вашем сервере. | |
name | RAGE:MP Unofficial server | Имя сервера, которое будет отображаться на главном сервере. Используйте [] для тегов. Например "[Serious Roleplay]" | |
stream-distance | 500.0 | Расстояние в плоскости X, Y, на которое объекты сервера будут передавать подключенным игрокам. | |
port | 22005 | Порт, который будет использовать сервер. Сервер использует протоколы UDP и TCP. Порт, следующий за ним («порт + 1», поэтому по умолчанию 22006) будет использоваться для HTTP-сервера, на котором размещены клиентские пакеты, с которых клиенты могут загружать . | |
disallow-multiple-connections-per-ip | false | Разрешает (false) или запрещает (true) нескольким игрокам подключаться с одного IP-адреса | |
limit-time-of-connections-per-ip | 0 | Максимальное время, в течение которого игрок может попытаться восстановить соединение до истечения тайм-аута | |
url | URL веб-сайта. Должен быть действующий URL. Усечено до 20 символов в RAGE:MP Master List Web (показывает нормально в клиенте RAGE: MP). | ||
language | en | Язык сервера (должен быть строкой, например: "language": "en") | |
sync-rate | 40 | This number indicates how many times per second the server has to synchronize its entities | |
resource-scan-thread-limit | Indicates the maximum number of threads used for resource scanning | ||
max-ping | Maximum Ping accepted for the server | ||
min-fps | Minimum FPS required for the server | ||
max-packet-loss | Maximum Packet loss accepted in the server | ||
allow-cef-debugging | Whether the client can (true) or not (false) debug the server's CEF pages | ||
enable-nodejs | true | Enables NodeJS serverside | |
csharp | disabled | If your server will be using the C# bridge plugin set it to true, else don't add this line | |
enable-http-security | false | When set to true, enables an extra security layer to avoid the server being flooded by fake HTTP requests | |
voice-chat | boolean true / false | ||
allow-voice-chat-input | (only available via registry at the moment); default value: 1 | ||
voice-chat-sample-rate | allowed values are 8000, 16000, 24000, 48000 | ||
fastdl-host | String URL, this parameter specifies the external URL from which clients will be able to download needed clientside packages. Otherwise they will download them directly from the server. | ||
server-side-weapons-only-mode | true | boolean true / false, if it's set to true, clientside created wont be synced only if they got created serverside (available with RAGE 1.1+) | |
api-threading-debugging | false | If set to true, it'll report every single usage of the API out of proper thread. Use it only for debugging since it adds some CPU overhead. (available with RAGE 1.1+) | |
fqdn | string, e.g. "fqdn": "game-srv.rage.mp". Thanks to this option your players won't notice any server IP change, including the re-utilisation of downloaded packages. | ||
resources-compression-level | 1 | Use 0 for local server, or a higher value for bandwidth optimisation. -9 for fast compression (available with RAGE 1.1+) | |
node-commandline-flags | e.g. "node-commandline-flags": "--inspect" (available with RAGE 1.1+) | ||
synchronization-extrapolation-multiplier | 0.0 | enables vehicle synchronization prediction disabling possible latency offset (available with RAGE 1.1+, enabled by default with 1.0 value in 0.3.7) | |
http-threads | 50 | Specifies how many concurrent connections will be handled at the same time, the rest will be queued (Increasing this number will increase bandwidth usage) | |
trigger-compression-logging | false | Log compression rates of all outgoing client event triggers with the dictionary the server has been initialized with (available with RAGE 1.1+) | |
trigger-compression-training | false | Dictionary training, takes data from all of your triggers and flushes it to the file specified at "trigger-compression-dictionary" at every 20th trigger. TIP: You can train it without joining using "mp.players.call" (available with RAGE 1.1+) | |
trigger-compression-dictionary | File to load/save compression dictionary (available with RAGE 1.1+) | ||
create-fastdl-snapshot | false | Generates client packages files to a folder to be downloadable and used with FastDL | |
disable-client-packages-ram-cache | false | Doesn't cache resources in memory (for only un-encrypted files with DISABLE_ENCRYPTION_LIST file) and instead streams it from storage | |
client-packages-shared-folder | Enables you to use the same client resources across different servers (i guess) (FQDN must be a subdomain of shared folder name, e.g. foo.domain.com, bar.domain.com => domain.com) |
Sample file
Это пример conf.json:
{
"announce": false,
"bind": "127.0.0.1",
"gamemode": "freeroam",
"name": "RAGE:MP Unofficial server [Tag]",
"maxplayers": 100,
"port": 22005,
"stream-distance": 500.0
}