From d7a12cddd116114a23b7e719dcb7d9af6a25ca7f Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Wed, 15 Jul 2015 22:04:04 +0100 Subject: [PATCH] Example config --- JustCause2/cfg/config.lua | 179 ++++++++++++++++++++++++++++++ ProjectZomboid/cfg/servertest.ini | 46 ++++++++ StarBound/cfg/sbboot.config | 141 +++++++++++++++++++++++ 3 files changed, 366 insertions(+) create mode 100644 JustCause2/cfg/config.lua create mode 100644 ProjectZomboid/cfg/servertest.ini create mode 100644 StarBound/cfg/sbboot.config diff --git a/JustCause2/cfg/config.lua b/JustCause2/cfg/config.lua new file mode 100644 index 000000000..f803a493f --- /dev/null +++ b/JustCause2/cfg/config.lua @@ -0,0 +1,179 @@ +-- Welcome to the JC2-MP server configuration file! + +--[[ +SERVER OPTIONS + +Server-related options. +--]] +Server = +{ + -- The maximum number of players that can be on the server at any + -- given time. Make sure your connection and server can handle it! + -- Default value: 5000 + MaxPlayers = 5000, + -- Used to control what IP this server binds to. Unless you're a dedicated + -- game host, you don't need to worry about this. + -- Default value: "" + BindIP = "", + -- The port the server uses. + -- Default value: 7777 + BindPort = 7777, + -- The time before a player is timed out after temporarily losing + -- connection, or crashing without properly disconnecting. + -- Default value (in milliseconds): 10000 + Timeout = 10000, + + -- The name of the server, as seen by players and the server browser. + -- Default value: "JC2-MP Server" + Name = "JC2-MP Server", + -- The server description, as seen by players and the server browser. + -- Default value: "No description available" + Description = "No description available.", + -- The server password. + -- Default value: "" + Password = "", + + -- Controls whether the server announces its presence to the master server + -- and therefore to the server browser. + -- Default value: true + Announce = true, + + -- Controls how often synchronization packets are broadcast by the server + -- in milliseconds + -- Default value (in milliseconds): 180 + SyncUpdate = 180, + + -- CAUTION: Setting this variable to true unlocks a number of potentially + -- unsafe operations, which include: + -- * Native Lua packages (.dll, .so) + -- * Execution of Lua from arbitrary paths (Access to loadfile/dofile) + -- * Unbound io functions, allowing for access to the entire file-system + -- Default value: false + IKnowWhatImDoing = false +} + +--[[ +SYNCRATE OPTIONS + +Sync rate options. These values control how often synchronization +packets are sent by the clients, in milliseconds. This lets you +control how frequent the sync comes in, which may result in a +smoother or less laggy experience +--]] +SyncRates = +{ + -- Default value (in milliseconds): 75 + Vehicle = 75, + -- Default value (in milliseconds): 120 + OnFoot = 120, + -- Default value (in milliseconds): 1000 + Passenger = 1000, + -- Default value (in milliseconds): 250 + MountedGun = 250, + -- Default value (in milliseconds): 350 + StuntPosition = 350 +} + +--[[ +STREAMER OPTIONS + +Streamer-related options. The streamer is responsible for controlling the +visibility of objects (including players and vehicles) for other players. + +What this means is that if you want to extend the distance at which objects +remain visible for players, you need to change the StreamDistance. +--]] +Streamer = +{ + -- The default distance before objects are streamed out. + -- Default value (in metres): 500 + StreamDistance = 500 +} + +--[[ +VEHICLE OPTIONS + +Vehicle-related options. +--]] +Vehicle = +{ + -- The number of seconds required for a vehicle to respawn after + -- vehicle death. + -- Default value (in seconds): 10 + -- For instant respawn: 0 + -- For no respawning: nil + DeathRespawnTime = 10, + -- Controls whether to remove the vehicle if respawning is turned off, + -- and the vehicle dies. + -- Default value: false + DeathRemove = false, + + -- The number of seconds required for a vehicle to respawn after it is + -- left unoccupied. + -- Default value (in seconds): 45 + -- For instant respawn: 0 + -- For no respawning: nil + UnoccupiedRespawnTime = 45, + -- Controls whether to remove the vehicle if respawning is turned off, + -- and the vehicle is left unoccupied. + -- Default value: false + UnoccupiedRemove = false, +} + +--[[ +PLAYER OPTIONS + +Player-related options. +--]] +Player = +{ + -- The default spawn position for players. If you do not use a script + -- to handle spawns, such as the freeroam script, then this spawn position + -- will be used. + -- Default value: Vector3( -6550, 209, -3290 ) + SpawnPosition = Vector3( -6550, 209, -3290 ) +} + +--[[ +MODULE OPTIONS + +Lua module-related options. +--]] +Module = +{ + --[[ + To prevent a large number of errors building up, modules are automatically + unloaded after a certain number of errors in a given timespan. Each error + adds to a counter, which is decremented if there has not been an error + in a certain amount of time. + + This allows you to adjust the number of errors before the module is unloaded, + as well as the time since the last error for the counter to be decremented. + --]] + + -- The maximum number of errors before a module is unloaded. + -- Default value: 5 + MaxErrorCount = 5, + -- The time from the last error necessary for the error counter to be decremented. + -- Default value (in milliseconds): 500 + ErrorDecrementTime = 500 +} + +--[[ +WORLD OPTIONS + +Default settings for worlds. +--]] +World = +{ + -- The default time of day at world creation. + -- Default value (in hours): 0.0 + Time = 0.0, + + -- The increment added to the time of day each second. + -- Default value (in minutes): 1 + TimeStep = 1, + + -- The default weather severity at world creation. + -- Default value: 0 + WeatherSeverity = 0 diff --git a/ProjectZomboid/cfg/servertest.ini b/ProjectZomboid/cfg/servertest.ini new file mode 100644 index 000000000..68ac30bb1 --- /dev/null +++ b/ProjectZomboid/cfg/servertest.ini @@ -0,0 +1,46 @@ +nightlengthmodifier=1.0 +PVP=true +PauseEmpty=false +GlobalChat=true +Open=true +ServerWelcomeMessage= Welcome to Project Zomboid MP ! to chat locally press "t", to global chat press "y" or add "/all" before chatting Press /help to have a list of server commands +LogLocalChat=false +AutoCreateUserInWhiteList=false +DisplayUserName=true +SpawnPoint=0,0,0 +SafetySystem=true +ShowSafety=true +SafetyToggleTimer=100 +SafetyCooldownTimer=120 +SpawnItems= +DefaultPort=16261 +ResetID=834499345 +Mods= +Map=Muldraugh, KY +SpawnRegions=servertest_spawnregions.lua +DoLuaChecksum=true +Public=false +PublicName=hello! +PublicDescription= +MaxPlayers=64 +PingFrequency=10 +PingLimit=400 +HoursForLootRespawn=0 +MaxItemsForLootRespawn=4 +ConstructionPreventsLootRespawn=true +DropOffWhiteListAfterDeath=false +NoFireSpread=false +NoFire=false +AnnounceDeath=false +MinutesPerPage=1.0 +HoursForCorpseRemoval=0 +SaveWorldEveryMinutes=0 +PlayerSafehouse=false +AdminSafehouse=false +SafehouseAllowTrepass=true +SafehouseAllowFire=true +SafehouseAllowLoot=true +SafehouseAllowRespawn=false +SafehouseDaySurvivedToClaim=0 +SafeHouseRemovalTime=144 +AllowDestructionBySledgehammer=true diff --git a/StarBound/cfg/sbboot.config b/StarBound/cfg/sbboot.config new file mode 100644 index 000000000..62f133536 --- /dev/null +++ b/StarBound/cfg/sbboot.config @@ -0,0 +1,141 @@ +{ + "handleFatalSignals" : true, + "handleInterruptSignal" : true, + "rootMaintenanceSleep" : 5000, + "logFileBackups" : 5, + "assetSources" : [ + "../assets/packed.pak", + "../assets/user" + ], + "modSource" : "../giraffe_storage/mods/", + "storageDirectory" : "../giraffe_storage/", + "defaultConfiguration" : { + "gameServerPort" : 21025, + "gameServerBind" : "*", + + "serverUsers" : {}, + "allowAnonymousConnections" : true, + + "bannedUuids" : [], + "bannedIPs" : [], + + "serverName" : "A Starbound Server", + "maxPlayers" : 8, + "upnpPortForwarding" : true, + + "checkAssetsDigest" : false, + + "allowAdminCommands" : true, + "allowAdminCommandsFromAnyone" : false, + "anonymousConnectionsAreAdmin" : false, + + "runQueryServer" : false, + "queryServerPort" : 21025, + "queryServerBind" : "*", + + "runRconServer" : false, + "rconServerPort" : 21026, + "rconServerBind" : "*", + "rconServerPassword" : "", + "rconServerTimeout" : 1000, + + "windowTitle" : "Starbound - Beta", + "vsync" : true, + "renderSleep" : true, + "maxFrameSkip" : 10, + "sampleRate" : 44100, + "audioChannels" : 2, + "audioChannelSeparation" : [-25, 25], + + "clearUniverseFiles" : false, + "clearPlayerFiles" : false, + "playerBackupFileCount" : 3, + + "sfxVol" : 100, + "musicVol" : 100, + "windowedResolution" : [1000, 600], + "maximizedResolution" : [1000, 600], + "fullscreenResolution" : [1920, 1080], + "fullscreen" : false, + "maximized" : true, + "zoomLevel" : 3.0, + "speechBubbles" : true, + + "crafting.filterHaveMaterials" : false, + "title.connectionString" : "", + + "bindings" : { + "PlayerUp" : [ { "type" : "key", "value" : "W", "mods" : [] } ], + "PlayerDown" : [ { "type" : "key", "value" : "S", "mods" : [] } ], + "PlayerLeft" : [ { "type" : "key", "value" : "A", "mods" : [] } ], + "PlayerRight" : [ { "type" : "key", "value" : "D", "mods" : [] } ], + "PlayerJump" : [ { "type" : "key", "value" : "Space", "mods" : [] } ], + "PlayerDropItem" : [ { "type" : "key", "value" : "Q", "mods" : [] } ], + "PlayerInteract" : [ { "type" : "key", "value" : "E", "mods" : [] } ], + "PlayerShifting" : [ { "type" : "key", "value" : "RShift", "mods" : [] }, { "type" : "key", "value" : "LShift", "mods" : [] } ], + "PlayerTechAction1" : [ { "type" : "key", "value" : "F", "mods" : [] } ], + "PlayerTechAction2" : [ { "type" : "key", "value" : "G", "mods" : [] } ], + "PlayerTechAction3" : [ { "type" : "key", "value" : "H", "mods" : [] } ], + "EmoteBlabbering" : [ { "type" : "key", "value" : "Right", "mods" : ["LCt rl", "LShift"] } ], + "EmoteShouting" : [ { "type" : "key", "value" : "Up", "mods" : ["LCtrl", "LAlt"] } ], + "EmoteHappy" : [ { "type" : "key", "value" : "Up", "mods" : [] } ], + "EmoteSad" : [ { "type" : "key", "value" : "Down", "mods" : [] } ], + "EmoteNeutral" : [ { "type" : "key", "value" : "Left", "mods" : [] } ], + "EmoteLaugh" : [ { "type" : "key", "value" : "Left", "mods" : [ "LCtrl" ] } ], + "EmoteAnnoyed" : [ { "type" : "key", "value" : "Right", "mods" : [] } ], + "EmoteOh" : [ { "type" : "key", "value" : "Right", "mods" : [ "LCtrl" ] } ], + "EmoteOooh" : [ { "type" : "key", "value" : "Down", "mods" : [ "LCtrl" ] } ], + "EmoteBlink" : [ { "type" : "key", "value" : "Up", "mods" : [ "LCtrl" ] } ], + "EmoteWink" : [ { "type" : "key", "value" : "Up", "mods" : ["LCtrl", "LSh ift"] } ], + "EmoteEat" : [ { "type" : "key", "value" : "Down", "mods" : ["LCtrl", "LS hift"] } ], + "EmoteSleep" : [ { "type" : "key", "value" : "Left", "mods" : ["LCtrl", " LShift"] } ], + "ShowLabels" : [ { "type" : "key", "value" : "RAlt", "mods" : [] }, { "ty pe" : "key", "value" : "LAlt", "mods" : [] } ], + "CameraShift" : [ { "type" : "key", "value" : "RCtrl", "mods" : [] }, { " type" : "key", "value" : "LCtrl", "mods" : [] } ], + "CockpitUp" : [ { "type" : "key", "value" : "W", "mods" : [] }, { "type" : "key", "value" : "Up", "mods" : [] } ], + "CockpitDown" : [ { "type" : "key", "value" : "S", "mods" : [] }, { "type " : "key", "value" : "Down", "mods" : [] } ], + "CockpitLeft" : [ { "type" : "key", "value" : "Left", "mods" : [] }, { "t ype" : "key", "value" : "A", "mods" : [] } ], + "CockpitRight" : [ { "type" : "key", "value" : "Right", "mods" : [] }, { "type" : "key", "value" : "D", "mods" : [] } ], + "TitleBack" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ], + "CinematicSkip" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ], + "CinematicNext" : [ { "type" : "key", "value" : "Right", "mods" : [] }, { "type" : "key", "value" : "Return", "mods" : [] } ], + "GuiClose" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ], + "GuiShifting" : [ { "type" : "key", "value" : "RShift", "mods" : [] }, { "type" : "key", "value" : "LShift", "mods" : [] } ], + "KeybindingCancel" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ] , + "KeybindingClear" : [ { "type" : "key", "value" : "Del", "mods" : [] }, { "type" : "key", "value" : "Backspace", "mods" : [] } ], + "ChatPageUp" : [ { "type" : "key", "value" : "PageUp", "mods" : [] } ], + "ChatPageDown" : [ { "type" : "key", "value" : "PageDown", "mods" : [] } ], + "ChatPreviousLine" : [ { "type" : "key", "value" : "Up", "mods" : [] } ], + "ChatNextLine" : [ { "type" : "key", "value" : "Down", "mods" : [] } ], + "ChatSendLine" : [ { "type" : "key", "value" : "Return", "mods" : [] } ], + "ChatBegin" : [ { "type" : "key", "value" : "Return", "mods" : [] } ], + "ChatBeginCommand" : [ { "type" : "key", "value" : "/", "mods" : [] } ], + "ChatStop" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ], + "InterfaceShowHelp" : [ { "type" : "key", "value" : "F1", "mods" : [] } ] , + "InterfaceHideHud" : [ { "type" : "key", "value" : "Z", "mods" : [ "LAlt" ] } ], + "InterfaceSwapHands" : [ { "type" : "key", "value" : "Z", "mods" : [] } ] , + "InterfaceDeselectHands" : [ { "type" : "key", "value" : "X", "mods" : [] } ], + "InterfaceBar1" : [ { "type" : "key", "value" : "1", "mods" : [] } ], + "InterfaceBar2" : [ { "type" : "key", "value" : "2", "mods" : [] } ], + "InterfaceBar3" : [ { "type" : "key", "value" : "3", "mods" : [] } ], + "InterfaceBar4" : [ { "type" : "key", "value" : "4", "mods" : [] } ], + "InterfaceBar5" : [ { "type" : "key", "value" : "5", "mods" : [] } ], + "InterfaceBar6" : [ { "type" : "key", "value" : "6", "mods" : [] } ], + "InterfaceBar7" : [ { "type" : "key", "value" : "7", "mods" : [] } ], + "InterfaceBar8" : [ { "type" : "key", "value" : "8", "mods" : [] } ], + "InterfaceBar9" : [ { "type" : "key", "value" : "9", "mods" : [] } ], + "InterfaceBar10" : [ { "type" : "key", "value" : "0", "mods" : [] } ], + "EssentialBar1" : [ { "type" : "key", "value" : "R", "mods" : [] } ], + "EssentialBar2" : [ { "type" : "key", "value" : "T", "mods" : [] } ], + "EssentialBar3" : [ { "type" : "key", "value" : "Y", "mods" : [] } ], + "InterfaceBarNPos" : [ { "type" : "key", "value" : "-", "mods" : [] }, { "type" : "key", "value" : "`", "mods" : [] } ], + "InterfaceRepeatCommand" : [ { "type" : "key", "value" : "P", "mods" : [] } ], + "InterfaceToggleFullscreen" : [ { "type" : "key", "value" : "F11", "mods" : [] } ], + "InterfaceEscapeMenu" : [ { "type" : "key", "value" : "Esc", "mods" : [] } ], + "InterfaceInventory" : [ { "type" : "key", "value" : "I", "mods" : [] } ] , + "InterfaceCodex" : [ { "type" : "key", "value" : "L", "mods" : [] } ], + "InterfaceQuest" : [ { "type" : "key", "value" : "J", "mods" : [] } ], + "InterfaceCrafting" : [ { "type" : "key", "value" : "C", "mods" : [] } ], + "InterfaceInspectCursor" : [ { "type" : "key", "value" : "N", "mods" : [] } ] + } + } +}