Server Config: Difference between revisions

From Vintage Story Wiki
mNo edit summary
(https://discordapp.com/channels/302152934249070593/406473219239968768/688092626276188209)
Line 16: Line 16:
   "MasterserverUrl": "http://masterserver.vintagestory.at/api/v1/servers/",
   "MasterserverUrl": "http://masterserver.vintagestory.at/api/v1/servers/",


   #  
   # Makes clients time out after that amount of seconds have passed
   "ClientConnectionTimeout": 600,
   "ClientConnectionTimeout": 600,


   #  
   # Seems to have no use
   "ClientPlayingTimeout": 60,
   "ClientPlayingTimeout": 60,


   #  
   # Has no use
   "BuildLogging": false,
   "BuildLogging": false,


Line 40: Line 40:
   "ServerLanguage": "en",
   "ServerLanguage": "en",


   #  
   # This tells the world generator to skip stripes of chunks. Useful for testing ore deposit generation.
  # i.e. if you set SkipEveryChunkRow to 3 and SkipEveryChunkRowWidth to 2, then every 3rd chunk strip there'll be 2 chunk strips missing
   "SkipEveryChunkRow": 0,
   "SkipEveryChunkRow": 0,
  #
   "SkipEveryChunkRowWidth": 0,
   "SkipEveryChunkRowWidth": 0,


Line 52: Line 51:
   ],
   ],


   # can be used for set up parameters of new world
   # Can be used for set up parameters of new world
   "WorldConfig": {
   "WorldConfig": {
      
      
Line 58: Line 57:
     "Seed": "1234567890",
     "Seed": "1234567890",


     # point to world file which should be loaded on server start (or created if not exists)
     # Point to world file which should be loaded on server start (or created if not exists)
     "SaveFileLocation": "/absolute/path/to/Save/wold_file.vcdbs",
     "SaveFileLocation": "/absolute/path/to/Save/wold_file.vcdbs",


     # defines a world name for new world
     # Defines a world name for new world
     "WorldName": "Sample World Name",
     "WorldName": "Sample World Name",


     #  
     # There used to be a "Allow cheats" toggle in the create world screen that forbids the use of /gamemode creative even if you are an admin. The config for it is still there
     "AllowCreativeMode": false,
     "AllowCreativeMode": false,


     # defines preset of parameters for new world. Possible values: "surviveandbuild", ... [need to be filled]
     # Defines preset of parameters for new world. Possible values: "creativebuilding","surviveandbuild", "exploration" and "wildernesssurvival" (theoretically - any string value)
     "PlayStyle": "surviveandbuild",
     "PlayStyle": "surviveandbuild",


     # defines preset of parameters for new world. Possible values: "surviveandbuild-bands", ... [need to be filled]
     # A reference to an entry in the en.json. Basically, id for human-readable names for PlayStyle. Possible values: "preset-surviveandbuild", "preset-exploration", "preset-wildernesssurvival" and "creativebuilding"
     "PlayStyleLangCode": "surviveandbuild",
     "PlayStyleLangCode": "surviveandbuild",


     # Possible values: "standard", ... [need to be filled]
     # World generation type. Possible values: "standard", "superflat"
     "WorldType": "standard",
     "WorldType": "standard",


     #  
     # Settings of new world. Basically can use the same properties as with /worldconfig
     "WorldConfiguration": null,
     "WorldConfiguration": {
      "worldClimate": "realistic",
      "gameMode": "survival",
      "temporalStability": true,
      "temporalStorms": "sometimes",
      "graceTimer": "0"
    },


     # Height of the world
     # Height of the world
Line 101: Line 106:
   "ServerName": "Name of your Vintage Story Server",
   "ServerName": "Name of your Vintage Story Server",


   #  
   # Has no use yet. It's supposed to be used for another piece of information in the public server detail page
   "ServerUrl": "https://www.vintagestory.at/",
   "ServerUrl": "https://www.vintagestory.at/",


Line 110: Line 115:
   "WelcomeMessage": "Welcome, {0}. Don't forget to follow our rules.",
   "WelcomeMessage": "Welcome, {0}. Don't forget to follow our rules.",


   #  
   # What interface server should listen. If you don't specify one, it'll listen on all interfaces
   "Ip": null,
   "Ip": null,


Line 116: Line 121:
   "Port": 42420,
   "Port": 42420,


   #  
   # If server should try to use upnp for port forwarding
   "Upnp": false,
   "Upnp": false,


Line 197: Line 202:
       "LandClaimMaxAreas": 3,
       "LandClaimMaxAreas": 3,


       #  
       # "Super admin" parameter. If true, any privilege that has been registered by the game engine or any mod is automatically granted to this role
       "AutoGrant": false
       "AutoGrant": false
     },
     },
Line 212: Line 217:
   "OnlyWhitelisted": false,
   "OnlyWhitelisted": false,


   #  
   # If true, every time a player joins the server verifies if that player is a valid, logged in, registered buyer of the game.
   "VerifyPlayerAuth": true,
   "VerifyPlayerAuth": true,


Line 231: Line 236:
   "AllowFireSpread": true,
   "AllowFireSpread": true,


   #  
   # Completely disables any falling block behavior
   "AllowFallingBlocks": true,
   "AllowFallingBlocks": true,


   #  
   # Run a command when server starts. For example, players without access to the server console can op themselves. [probably can run multiple commands by separating them with linebreaks(\n), need to test]
   "StartupCommands": null
   "StartupCommands": "/op Tyron"
    
    
   #  
   #  

Revision as of 19:17, 13 March 2020

This is sample of serverconfig.json with explanations.

You can learn more about some values on List of server commands and Setting up a Multiplayer Server pages.

Empty comments means that the value meaning is unclear, so if you know exactly what it does - feel free to fill comment with useful knowledge =)

{
  # 
  "ConfigVersion": "1.3",

  # 
  "ServerMonitor": true,

  # 
  "MasterserverUrl": "http://masterserver.vintagestory.at/api/v1/servers/",

  # Makes clients time out after that amount of seconds have passed
  "ClientConnectionTimeout": 600,

  # Seems to have no use
  "ClientPlayingTimeout": 60,

  # Has no use
  "BuildLogging": false,

  # 
  "EntityDebugMode": false,

  # Width of the world
  "MapSizeX": 1000000,

  # Height of the world
  "MapSizeY": 256,

  # Length of the world
  "MapSizeZ": 1000000,

  # 2-letter code of localization to use on this server. Determines language of server messages.
  "ServerLanguage": "en",

  # This tells the world generator to skip stripes of chunks. Useful for testing ore deposit generation.
  # i.e. if you set SkipEveryChunkRow to 3 and SkipEveryChunkRowWidth to 2, then every 3rd chunk strip there'll be 2 chunk strips missing
  "SkipEveryChunkRow": 0,
  "SkipEveryChunkRowWidth": 0,

  # Where server should look for mods. []
  "ModPaths": [
    "Mods",
    "/absolute/path/to/Mods"
  ],

  # Can be used for set up parameters of new world
  "WorldConfig": {
    
    # Seed. Does not guarantee exactly the same world each time!
    "Seed": "1234567890",

    # Point to world file which should be loaded on server start (or created if not exists)
    "SaveFileLocation": "/absolute/path/to/Save/wold_file.vcdbs",

    # Defines a world name for new world
    "WorldName": "Sample World Name",

    # There used to be a "Allow cheats" toggle in the create world screen that forbids the use of /gamemode creative even if you are an admin. The config for it is still there
    "AllowCreativeMode": false,

    # Defines preset of parameters for new world. Possible values: "creativebuilding","surviveandbuild", "exploration" and "wildernesssurvival" (theoretically - any string value)
    "PlayStyle": "surviveandbuild",

    # A reference to an entry in the en.json. Basically, id for human-readable names for PlayStyle. Possible values: "preset-surviveandbuild", "preset-exploration", "preset-wildernesssurvival" and "creativebuilding"
    "PlayStyleLangCode": "surviveandbuild",

    # World generation type. Possible values: "standard", "superflat"
    "WorldType": "standard",

    # Settings of new world. Basically can use the same properties as with /worldconfig
    "WorldConfiguration": {
      "worldClimate": "realistic",
      "gameMode": "survival",
      "temporalStability": true,
      "temporalStorms": "sometimes",
      "graceTimer": "0"
    },

    # Height of the world
    "MapSizeY": null,

    # Anything you want to see in Author field, usually it's nickname
    "CreatedByPlayerName": "John Smith",

    # 
    "DisabledMods": []
  },

  # 
  "NextPlayerGroupUid": 10,

  # 
  "GroupChatHistorySize": 20,

  # 
  "MaxOwnedGroupChannelsPerUser": 10,

  # Set up the server name, visible in the public server listing
  "ServerName": "Name of your Vintage Story Server",

  # Has no use yet. It's supposed to be used for another piece of information in the public server detail page
  "ServerUrl": "https://www.vintagestory.at/",

  # Set up the servers description, visible in the public server listing. You can use VTML here (for example, <br> for line break)
  "ServerDescription": "Sample description.<br>Next line of description.",

  # The message shown to players when they join. Placeholder {0} will be replaced with Player's nickname.
  "WelcomeMessage": "Welcome, {0}. Don't forget to follow our rules.",

  # What interface server should listen. If you don't specify one, it'll listen on all interfaces
  "Ip": null,

  # Port what server should listen. You may want to change this if you want to run server on custom port.
  "Port": 42420,

  # If server should try to use upnp for port forwarding
  "Upnp": false,

  # 
  "CompressPackets": true,

  # Whether or not add this server to the public server listing
  "AdvertiseServer": true,

  # Maximum number of players. If an integer value is passed it will set the maxclients, which is the max concurrent players the server may have. Higher values requires more RAM and CPU
  "MaxClients": 16,

  # Require a password for players to log in
  "Password": "my secret password",

  # Max chunk radius. If an integer value is passed it will set the max chunk radius, which is the highest view distance a player may have. Higher values require more RAM
  "MaxChunkRadius": 12,

  # 
  "TickTime": 33.3333321,

  # 
  "BlockTickChunkRange": 3,

  # 
  "MaxMainThreadBlockTicks": 10000,

  # How many random ticks per chunk should be executed. Simply said, a higher value makes grass grow back faster.
  "RandomBlockTicksPerChunk": 16,

  # 
  "BlockTickInterval": 300,

  # 
  "Roles": [
    {
      # Role ID
      "Code": "suvisitor",

      # Role readable name
      "Name": "Survival Visitor",

      # 
      "Description": "Can only visit this world and chat but not use/place/break anything",

      # 
      "PrivilegeLevel": -1,

      # (should be similar to global DefaultSpawn, but for role)
      "DefaultSpawn": null,

      # 
      "ForcedSpawn": null,

      # list of granted priveleges (full list may be shown by "/list privileges" command)
      "Privileges": [
        "chat"
      ],

      # 
      "RuntimePrivileges": [],

      # 
      "DefaultGameMode": 1,

      # 
      "Color": "Green",

      # Max allowed claimable area in cubic meters for every player that has this role (default: 4 chunks = 4*32*32*32 cubic meters = 131072)
      "LandClaimAllowance": 0,

      # The smallest cuboid a player may claim (default 5x5x5)
      "LandClaimMinSize": {
        "X": 5,
        "Y": 5,
        "Z": 5
      },

      # The max quantity of non adjacent-areasa a player may claim (default: 3)
      "LandClaimMaxAreas": 3,

      # "Super admin" parameter. If true, any privilege that has been registered by the game engine or any mod is automatically granted to this role
      "AutoGrant": false
    },
    ...
  ],

  # Default role for new players
  "DefaultRoleCode": "suplayer",

  # Sets antiabuse level, this protects against a range of malicious player operations, but is currently pretty glitchy in the current state (v1.7)
  "AntiAbuse": 0,

  # Wether or not to only allow whitelisted players to connect to the server
  "OnlyWhitelisted": false,

  # If true, every time a player joins the server verifies if that player is a valid, logged in, registered buyer of the game. 
  "VerifyPlayerAuth": true,

  # Shows or sets the default spawn point. y can be omitted to automatically use the surface position at given x/z location.
  "DefaultSpawn": {
    "x": 500025,
    "y": 113,
    "z": 499954,
    "yaw": null,
    "pitch": null,
    "roll": null
  },

  # If players can hit each other
  "AllowPvP": true,

  # 
  "AllowFireSpread": true,

  # Completely disables any falling block behavior
  "AllowFallingBlocks": true,

  # Run a command when server starts. For example, players without access to the server console can op themselves. [probably can run multiple commands by separating them with linebreaks(\n), need to test]
  "StartupCommands": "/op Tyron"
  
  # 
  "RepairMode": false,
  
  # 
  "ChatRateLimitMs": 1000
}