server config: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 37: Line 37:
|packages
|packages
|Array of packages you want to load.
|Array of packages you want to load.
|-
|voice
|Enable VoIP system.
|-
|voice_sample_rate
|VoIP sample rate, higher rates have better quality but also require more bandwidth. Valid rates are: 8000, 12000, 16000, 24000 and 48000.
|-
|voice_distance
|Distance where you can hear other players talking.
|-
|voice_spatialization
|Makes the VoIP sound 3D including spatialization and falloff.
|}
|}



Revision as of 09:18, 23 March 2019

server_config.json
Config Description
servername The hostname of your server. Markup for colors and UTF8 icons require a subscription.
gamemode A description what you can do on your server.
website_url A link to your servers homepage.
ipaddress Address to bind your server on. Use "localhost" to make it accessible from your computer only. Use "0.0.0.0" to bind on any address.
port Main network port to connect to your server (UDP). Query port (UDP) is this port - 1. File port (TCP) is this port - 2.
password Leave empty to disable.
timeout Time in milliseconds after which an unresponsive player will be dropped. This should be between 10000 and 20000 milliseconds.
iplimit Limit the amount of connections per ip. New connections exceeding that nummer are being dropped immediately.
masterserver true to have your server made public in the server list. false otherwise. This only works if your server is reachable on the internet.
plugins Array of plugins you want to load. These must be in the plugins folder.
packages Array of packages you want to load.
voice Enable VoIP system.
voice_sample_rate VoIP sample rate, higher rates have better quality but also require more bandwidth. Valid rates are: 8000, 12000, 16000, 24000 and 48000.
voice_distance Distance where you can hear other players talking.
voice_spatialization Makes the VoIP sound 3D including spatialization and falloff.

Example server_config.json

{
        "servername": "[g]๐ŸŒด [c=#00ff00]Horizon[/c] [c=red]Prototype[/c] [c=yellow]Labs[/c] ๐Ÿ—ฝ [b]LIT AF[/b] ๐Ÿšฌ๐Ÿ”ฅ [i]ะฑะปัั‚ัŒ[/i] ๐Ÿ”ซ + ๐Ÿ’Š = ๐Ÿšจ [u][b]NOICE[/b][/u] OK come on in ๐Ÿ‘€[/g]",
        "gamemode": "GET THE EXPERIENCE โ›บ ๐Ÿ’Š",
        "website_url": "https://bluemountains.io",
        "ipaddress": "0.0.0.0",
        "port": 7777,
        "maxplayers": 500,
        "password": "",
        "timeout": 15000,
        "iplimit": 5,
        "masterserver": true,
        "plugins": [
                "mysql"
        ],
        "packages": [
                "horizon"
        ],
        "stream_distance": 12000.0,
        "stream_update_rate": 0.05,
        "voice": true,
        "voice_sample_rate": 24000,
        "voice_distance": 4000.0,
        "voice_spatialization": true
}