Server Config/ru: Difference between revisions

From Vintage Story Wiki
Updating to match new version of source page
(Updating to match new version of source page)
Tags: Mobile edit Mobile web edit
(Updating to match new version of source page)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>__TOC__
<languages/>
 
__TOC__


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 5: Line 7:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
You can learn more about some values on {{ll|List of server commands|List of server commands}} and {{ll|Setting up a Multiplayer Server|Setting up a Multiplayer Server}} pages.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-collapsible mw-collapsed">
<div class="mw-collapsible mw-collapsed">
'''Defaults'''
'''Defaults'''
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-collapsible-content">
<div class="mw-collapsible-content">
Windows paths:
Windows paths:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
"ModPaths": [
"ModPaths": [
Line 21: Line 32:
}
}
</syntaxhighlight>
</syntaxhighlight>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Full serverconfig.json (Linux paths):
Full serverconfig.json (Linux paths):
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
Line 388: Line 403:
}
}
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>
</div>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-collapsible">
<div class="mw-collapsible">
'''Sample with explanations'''
'''Sample with explanations'''
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 405: Line 423:
</div>
</div>


   // Where server should look for mods.  
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Where server should look for mods.  
   "ModPaths": [
   "ModPaths": [
     "/absolute/path/to/Mods",
     "/absolute/path/to/Mods",
     "Mods"
     "Mods"
   ],
   ],
</div>


   // 2-letter code of localization to use on this server. Determines language of server messages.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// 2-letter code of localization to use on this server. Determines language of server messages.
   "ServerLanguage": "en",
   "ServerLanguage": "en",
   // Short string, visible in the public server listing.
   // Short string, visible in the public server listing.
Line 427: Line 448:
   // If server should try to use UPnP for port forwarding.
   // If server should try to use UPnP for port forwarding.
   "Upnp": false,
   "Upnp": false,
</div>


   // Maximum number of players. If an integer value is passed it will set the max concurrent players the server may have. Higher values requires more RAM and CPU.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Maximum number of players. If an integer value is passed it will set the max concurrent players the server may have. Higher values requires more RAM and CPU.
   "MaxClients": 16,
   "MaxClients": 16,
</div>


   // If not null, requires a password for players to log in.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// If not null, requires a password for players to log in.
   "Password": "our secret password",
   "Password": "our secret password",
   // Whether or not to only allow whitelisted players to connect to the server.
   // Whether or not to only allow whitelisted players to connect to the server.
   "OnlyWhitelisted": false,
   "OnlyWhitelisted": false,
</div>


   // Whether or not add this server to the master server (public server listing).
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Whether or not add this server to the master server (public server listing).
   "AdvertiseServer": true,
   "AdvertiseServer": true,
   // If true, every time a player joins the server verifies if that player is a valid, logged in, registered buyer of the game.
   // 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,
</div>


   // If players can hit each other.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// If players can hit each other.
   "AllowPvP": true,
   "AllowPvP": true,
   // Disables fire spreading if false.
   // Disables fire spreading if false.
Line 447: Line 476:
   // If false, completely disables any falling block behavior.
   // If false, completely disables any falling block behavior.
   "AllowFallingBlocks": true,
   "AllowFallingBlocks": true,
</div>


   // If true, this features are disabled: "MaxChunkRadius", "MaxClients", "Upnp", "EntityDebugMode", "TickTime", "RandomBlockTicksPerChunk"
   <div lang="en" dir="ltr" class="mw-content-ltr">
// If true, this features are disabled: "MaxChunkRadius", "MaxClients", "Upnp", "EntityDebugMode", "TickTime", "RandomBlockTicksPerChunk"
   "HostedMode": false,
   "HostedMode": false,
   // Sends additional debug information to the client, which displays it if it also has entity debug mode enabled.
   // Sends additional debug information to the client, which displays it if it also has entity debug mode enabled.
Line 456: Line 487:
   //
   //
   "AnalyzeMode": false,
   "AnalyzeMode": false,
</div>


   // Whether to compress data when sending it to the client.  
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Whether to compress data when sending it to the client.  
   "CompressPackets": true,
   "CompressPackets": true,
   // Sets antiabuse level, this protects against a range of malicious player operations, but it is pretty glitchy in v1.7.
   // Sets antiabuse level, this protects against a range of malicious player operations, but it is pretty glitchy in v1.7.
   "AntiAbuse": 0,
   "AntiAbuse": 0,
</div>


   // Width of the world.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Width of the world.
   "MapSizeX": 1024000,
   "MapSizeX": 1024000,
   // Height of the world.
   // Height of the world.
Line 477: Line 512:
     "roll": null
     "roll": null
   },
   },
</div>


   // If true, the calendar will never stop even if there are no players online.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// If true, the calendar will never stop even if there are no players online.
   "PassTimeWhenEmpty": false,
   "PassTimeWhenEmpty": false,
   // Makes clients time out after that amount of seconds have passed.
   // Makes clients time out after that amount of seconds have passed.
Line 488: Line 525:
   //
   //
   "SpawnCapPlayerScaling": 0.75,
   "SpawnCapPlayerScaling": 0.75,
</div>


   // How many blocks to tick at most each server tick.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// How many blocks to tick at most each server tick.
   "MaxMainThreadBlockTicks": 10000,
   "MaxMainThreadBlockTicks": 10000,
   // How many random ticks per chunk should be executed. Simply said, a higher value makes grass grow back faster.
   // How many random ticks per chunk should be executed. Simply said, a higher value makes grass grow back faster.
Line 499: Line 538:
   // The interval of time in ms between each execution of the random tick system.
   // The interval of time in ms between each execution of the random tick system.
   "BlockTickInterval": 300,
   "BlockTickInterval": 300,
</div>


   // This tells the world generator to skip stripes of chunks. Useful for testing ore deposit generation.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// 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
   // 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,
Line 508: Line 549:
   //
   //
   "RegenerateCorruptChunks": false,
   "RegenerateCorruptChunks": false,
</div>


   // Anti-spam for the chat window. How many milliseconds are required between 2 messages. 1000 ms = 1 second.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Anti-spam for the chat window. How many milliseconds are required between 2 messages. 1000 ms = 1 second.
   "ChatRateLimitMs": 1000,
   "ChatRateLimitMs": 1000,
   // The max amount of group channels a player can create
   // The max amount of group channels a player can create
Line 515: Line 558:
   // Has no use currently.
   // Has no use currently.
   "GroupChatHistorySize": 20,
   "GroupChatHistorySize": 20,
</div>


   // Run a command when server starts. For example, players without access to the server console can op themselves. Can run multiple commands by separating them with linebreaks.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Run a command when server starts. For example, players without access to the server console can op themselves. Can run multiple commands by separating them with linebreaks.
   "StartupCommands": "/time \n /info seed",
   "StartupCommands": "/time \n /info seed",
</div>


   // Internal value.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Internal value.
   "NextPlayerGroupUid": 10,
   "NextPlayerGroupUid": 10,
</div>


   // Default role for new players.
   <div lang="en" dir="ltr" class="mw-content-ltr">
// Default role for new players.
   "DefaultRoleCode": "suplayer",
   "DefaultRoleCode": "suplayer",
   "Roles": [
   "Roles": [
Line 556: Line 605:
     ...
     ...
   ],
   ],
</div>


   "WorldConfig": {
   <div lang="en" dir="ltr" class="mw-content-ltr">
"WorldConfig": {
     // Seed. Does not guarantee exactly the same world each time!
     // Seed. Does not guarantee exactly the same world each time!
     "Seed": "1234567890",
     "Seed": "1234567890",
Line 566: Line 617:
     // 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.
     // 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: "creativebuilding","surviveandbuild", "exploration" and "wildernesssurvival" (theoretically - any string value).
     // Defines preset of parameters for new world. Possible values: "creativebuilding","surviveandbuild", "exploration", "homosapiens" and "wildernesssurvival" (theoretically - any string value).
     "PlayStyle": "surviveandbuild",
     "PlayStyle": "surviveandbuild",
     // A reference to an entry in the en.json. Basically, id for human-readable names for PlayStyle.  
     // 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".
     // Possible values: "preset-surviveandbuild", "preset-exploration", "preset-wildernesssurvival", "preset-homosapiens" and "creativebuilding".
     "PlayStyleLangCode": "surviveandbuild",
     "PlayStyleLangCode": "surviveandbuild",
     // World generation type. Possible values: "standard", "superflat".
     // World generation type. Possible values: "standard", "superflat".
     "WorldType": "standard",
     "WorldType": "standard",
</div>


     // Settings of new world. Basically can use the same properties as with /worldconfig
     <div lang="en" dir="ltr" class="mw-content-ltr">
// Settings of new world. Basically can use the same properties as with /worldconfig
     "WorldConfiguration": {
     "WorldConfiguration": {
       "worldClimate": "realistic",
       "worldClimate": "realistic",
Line 582: Line 635:
       "graceTimer": "0"
       "graceTimer": "0"
     },
     },
</div>


     // Height of the world.
     <div lang="en" dir="ltr" class="mw-content-ltr">
// Height of the world.
     "MapSizeY": null,
     "MapSizeY": null,
     // Anything you want to see in Author field, usually it's nickname.
     // Anything you want to see in Author field, usually it's nickname.
Line 594: Line 649:
}
}
</syntaxhighlight>
</syntaxhighlight>
</div>
</div>
</div>
</div>
</div>
Line 601: Line 657:
<syntaxhighlight lang="py">
<syntaxhighlight lang="py">


<div class="mw-translate-fuzzy">
{
{
   #The range an entity has to be in order for clients to receive regular updates for it. May be overriden by entities. The value is the max chunk distance. (e.g. 2 => update all entities not further away than 2 chunks in x/y any dir from a player)
   #The range an entity has to be in order for clients to receive regular updates for it. May be overriden by entities. The value is the max chunk distance. (e.g. 2 => update all entities not further away than 2 chunks in x/y any dir from a player)
   #This value is capped by each players max chunk range.
   #This value is capped by each players max chunk range.
   "DefaultEntityTrackingRange": 4,
   "DefaultEntityTrackingRange": 4,
</div>


   #Cubic size of the chunks on the server (width, length and height)
   #Cubic size of the chunks on the server (width, length and height)
Line 668: Line 726:


</syntaxhighlight>
</syntaxhighlight>
{{Game navbox}}
43,402

edits