server config

From Onset Developer Wiki
Revision as of 23:03, 22 March 2019 by BlueMountains (talk | contribs) (Created page with "{| class="wikitable" style="text-align: left;" !colspan="6"|server_config.json |- |Config |Description |- |servername |The hostname of your server. Markup for colors and UTF8...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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
}