config.lua 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. -- Welcome to the JC2-MP server configuration file!
  2. --[[
  3. SERVER OPTIONS
  4. Server-related options.
  5. --]]
  6. Server =
  7. {
  8. -- The maximum number of players that can be on the server at any
  9. -- given time. Make sure your connection and server can handle it!
  10. -- Default value: 5000
  11. MaxPlayers = 5000,
  12. -- Used to control what IP this server binds to. Unless you're a dedicated
  13. -- game host, you don't need to worry about this.
  14. -- Default value: ""
  15. BindIP = "",
  16. -- The port the server uses.
  17. -- Default value: 7777
  18. BindPort = 7777,
  19. -- The time before a player is timed out after temporarily losing
  20. -- connection, or crashing without properly disconnecting.
  21. -- Default value (in milliseconds): 10000
  22. Timeout = 10000,
  23. -- The name of the server, as seen by players and the server browser.
  24. -- Default value: "JC2-MP Server"
  25. Name = "JC2-MP Server",
  26. -- The server description, as seen by players and the server browser.
  27. -- Default value: "No description available"
  28. Description = "No description available.",
  29. -- The server password.
  30. -- Default value: ""
  31. Password = "",
  32. -- Controls whether the server announces its presence to the master server
  33. -- and therefore to the server browser.
  34. -- Default value: true
  35. Announce = true,
  36. -- Controls how often synchronization packets are broadcast by the server
  37. -- in milliseconds
  38. -- Default value (in milliseconds): 180
  39. SyncUpdate = 180,
  40. -- CAUTION: Setting this variable to true unlocks a number of potentially
  41. -- unsafe operations, which include:
  42. -- * Native Lua packages (.dll, .so)
  43. -- * Execution of Lua from arbitrary paths (Access to loadfile/dofile)
  44. -- * Unbound io functions, allowing for access to the entire file-system
  45. -- Default value: false
  46. IKnowWhatImDoing = false
  47. }
  48. --[[
  49. SYNCRATE OPTIONS
  50. Sync rate options. These values control how often synchronization
  51. packets are sent by the clients, in milliseconds. This lets you
  52. control how frequent the sync comes in, which may result in a
  53. smoother or less laggy experience
  54. --]]
  55. SyncRates =
  56. {
  57. -- Default value (in milliseconds): 75
  58. Vehicle = 75,
  59. -- Default value (in milliseconds): 120
  60. OnFoot = 120,
  61. -- Default value (in milliseconds): 1000
  62. Passenger = 1000,
  63. -- Default value (in milliseconds): 250
  64. MountedGun = 250,
  65. -- Default value (in milliseconds): 350
  66. StuntPosition = 350
  67. }
  68. --[[
  69. STREAMER OPTIONS
  70. Streamer-related options. The streamer is responsible for controlling the
  71. visibility of objects (including players and vehicles) for other players.
  72. What this means is that if you want to extend the distance at which objects
  73. remain visible for players, you need to change the StreamDistance.
  74. --]]
  75. Streamer =
  76. {
  77. -- The default distance before objects are streamed out.
  78. -- Default value (in metres): 500
  79. StreamDistance = 500
  80. }
  81. --[[
  82. VEHICLE OPTIONS
  83. Vehicle-related options.
  84. --]]
  85. Vehicle =
  86. {
  87. -- The number of seconds required for a vehicle to respawn after
  88. -- vehicle death.
  89. -- Default value (in seconds): 10
  90. -- For instant respawn: 0
  91. -- For no respawning: nil
  92. DeathRespawnTime = 10,
  93. -- Controls whether to remove the vehicle if respawning is turned off,
  94. -- and the vehicle dies.
  95. -- Default value: false
  96. DeathRemove = false,
  97. -- The number of seconds required for a vehicle to respawn after it is
  98. -- left unoccupied.
  99. -- Default value (in seconds): 45
  100. -- For instant respawn: 0
  101. -- For no respawning: nil
  102. UnoccupiedRespawnTime = 45,
  103. -- Controls whether to remove the vehicle if respawning is turned off,
  104. -- and the vehicle is left unoccupied.
  105. -- Default value: false
  106. UnoccupiedRemove = false,
  107. }
  108. --[[
  109. PLAYER OPTIONS
  110. Player-related options.
  111. --]]
  112. Player =
  113. {
  114. -- The default spawn position for players. If you do not use a script
  115. -- to handle spawns, such as the freeroam script, then this spawn position
  116. -- will be used.
  117. -- Default value: Vector3( -6550, 209, -3290 )
  118. SpawnPosition = Vector3( -6550, 209, -3290 )
  119. }
  120. --[[
  121. MODULE OPTIONS
  122. Lua module-related options.
  123. --]]
  124. Module =
  125. {
  126. --[[
  127. To prevent a large number of errors building up, modules are automatically
  128. unloaded after a certain number of errors in a given timespan. Each error
  129. adds to a counter, which is decremented if there has not been an error
  130. in a certain amount of time.
  131. This allows you to adjust the number of errors before the module is unloaded,
  132. as well as the time since the last error for the counter to be decremented.
  133. --]]
  134. -- The maximum number of errors before a module is unloaded.
  135. -- Default value: 5
  136. MaxErrorCount = 5,
  137. -- The time from the last error necessary for the error counter to be decremented.
  138. -- Default value (in milliseconds): 500
  139. ErrorDecrementTime = 500
  140. }
  141. --[[
  142. WORLD OPTIONS
  143. Default settings for worlds.
  144. --]]
  145. World =
  146. {
  147. -- The default time of day at world creation.
  148. -- Default value (in hours): 0.0
  149. Time = 0.0,
  150. -- The increment added to the time of day each second.
  151. -- Default value (in minutes): 1
  152. TimeStep = 1,
  153. -- The default weather severity at world creation.
  154. -- Default value: 0
  155. WeatherSeverity = 0
  156. }