Pr1me289

Untitled

Sep 26th, 2024
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.30 KB | None | 0 0
  1. #The disk space limit for computers and turtles, in bytes.
  2. computer_space_limit = 1000000
  3. #The disk space limit for floppy disks, in bytes.
  4. floppy_space_limit = 125000
  5. #The file upload size limit, in bytes. Must be in range of 1 KiB and 16 MiB.
  6. #Keep in mind that uploads are processed in a single tick - large files or
  7. #poor network performance can stall the networking thread. And mind the disk space!
  8. #Range: 1024 ~ 16777216
  9. upload_max_size = 524288
  10. #Set how many files a computer can have open at the same time. Set to 0 for unlimited.
  11. #Range: > 0
  12. maximum_open_files = 128
  13. #Set this to true to disable Lua 5.1 functions that will be removed in a future
  14. #update. Useful for ensuring forward compatibility of your programs now.
  15. disable_lua51_features = false
  16. #A comma separated list of default system settings to set on new computers.
  17. #Example: "shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false"
  18. #will disable all autocompletion.
  19. default_computer_settings = ""
  20. #Log exceptions thrown by peripherals and other Lua objects. This makes it easier
  21. #for mod authors to debug problems, but may result in log spam should people use
  22. #buggy methods.
  23. log_computer_errors = true
  24. #Require players to be in creative mode and be opped in order to interact with
  25. #command computers. This is the default behaviour for vanilla's Command blocks.
  26. command_require_creative = true
  27.  
  28. #Controls execution behaviour of computers. This is largely intended for
  29. #fine-tuning servers, and generally shouldn't need to be touched.
  30. [execution]
  31. #Set the number of threads computers can run on. A higher number means more
  32. #computers can run at once, but may induce lag. Please note that some mods may
  33. #not work with a thread count higher than 1. Use with caution.
  34. #Range: > 1
  35. computer_threads = 1
  36. #The maximum time that can be spent executing tasks in a single tick, in
  37. #milliseconds.
  38. #Note, we will quite possibly go over this limit, as there's no way to tell how
  39. #long a will take - this aims to be the upper bound of the average time.
  40. #Range: > 1
  41. max_main_global_time = 10
  42. #The ideal maximum time a computer can execute for in a tick, in milliseconds.
  43. #Note, we will quite possibly go over this limit, as there's no way to tell how
  44. #long a will take - this aims to be the upper bound of the average time.
  45. #Range: > 1
  46. max_main_computer_time = 5
  47.  
  48. #Controls the HTTP API
  49. [http]
  50. #Enable the "http" API on Computers. This also disables the "pastebin" and "wget"
  51. #programs, that many users rely on. It's recommended to leave this on and use the
  52. #"rules" config option to impose more fine-grained control.
  53. enabled = true
  54. #Enable use of http websockets. This requires the "http_enable" option to also be true.
  55. websocket_enabled = true
  56. #The number of http requests a computer can make at one time. Additional requests
  57. #will be queued, and sent when the running requests have finished. Set to 0 for
  58. #unlimited.
  59. #Range: > 0
  60. max_requests = 16
  61. #The number of websockets a computer can have open at one time. Set to 0 for unlimited.
  62. #Range: > 1
  63. max_websockets = 4
  64.  
  65. #Limits bandwidth used by computers.
  66. [http.bandwidth]
  67. #The number of bytes which can be downloaded in a second. This is shared across all computers. (bytes/s).
  68. #Range: > 1
  69. global_download = 33554432
  70. #The number of bytes which can be uploaded in a second. This is shared across all computers. (bytes/s).
  71. #Range: > 1
  72. global_upload = 33554432
  73.  
  74. #Tunnels HTTP and websocket requests through a proxy server. Only affects HTTP
  75. #rules with "use_proxy" set to true (off by default).
  76. #If authentication is required for the proxy, create a "computercraft-proxy.pw"
  77. #file in the same directory as "computercraft-server.toml", containing the
  78. #username and password separated by a colon, e.g. "myuser:mypassword". For
  79. #SOCKS4 proxies only the username is required.
  80. [http.proxy]
  81. #The type of proxy to use.
  82. #Allowed Values: HTTP, HTTPS, SOCKS4, SOCKS5
  83. type = "HTTP"
  84. #The hostname or IP address of the proxy server.
  85. host = ""
  86. #The port of the proxy server.
  87. #Range: 1 ~ 65536
  88. port = 8080
  89.  
  90. #A list of rules which control behaviour of the "http" API for specific domains or
  91. #IPs. Each rule is an item with a 'host' to match against, and a series of
  92. #properties. Rules are evaluated in order, meaning earlier rules override later
  93. #ones.
  94. #The host may be a domain name ("pastebin.com"), wildcard ("*.pastebin.com") or
  95. #CIDR notation ("127.0.0.0/8").
  96. #If no rules, the domain is blocked.
  97. [[http.rules]]
  98. host = "pastebin.com"
  99. action = "allow"
  100.  
  101. [[http.rules]]
  102. #The maximum size (in bytes) that a computer can send or receive in one websocket packet.
  103. max_websocket_message = 131072
  104. host = "*"
  105. #The maximum size (in bytes) that a computer can upload in a single request. This
  106. #includes headers and POST text.
  107. max_upload = 4194304
  108. action = "allow"
  109. #Enable use of the HTTP/SOCKS proxy if it is configured.
  110. use_proxy = false
  111. #The maximum size (in bytes) that a computer can download in a single request.
  112. #Note that responses may receive more data than allowed, but this data will not
  113. #be returned to the client.
  114. max_download = 16777216
  115.  
  116. #Various options relating to peripherals.
  117. [peripheral]
  118. #Enable Command Block peripheral support
  119. command_block_enabled = false
  120. #The range of Wireless Modems at low altitude in clear weather, in meters.
  121. #Range: 0 ~ 100000
  122. modem_range = 64
  123. #The range of Wireless Modems at maximum altitude in clear weather, in meters.
  124. #Range: 0 ~ 100000
  125. modem_high_altitude_range = 384
  126. #The range of Wireless Modems at low altitude in stormy weather, in meters.
  127. #Range: 0 ~ 100000
  128. modem_range_during_storm = 64
  129. #The range of Wireless Modems at maximum altitude in stormy weather, in meters.
  130. #Range: 0 ~ 100000
  131. modem_high_altitude_range_during_storm = 384
  132. #Maximum amount of notes a speaker can play at once.
  133. #Range: > 1
  134. max_notes_per_tick = 8
  135. #The limit to how much monitor data can be sent *per tick*. Note:
  136. # - Bandwidth is measured before compression, so the data sent to the client is
  137. # smaller.
  138. # - This ignores the number of players a packet is sent to. Updating a monitor for
  139. # one player consumes the same bandwidth limit as sending to 20.
  140. # - A full sized monitor sends ~25kb of data. So the default (1MB) allows for ~40
  141. # monitors to be updated in a single tick.
  142. #Set to 0 to disable.
  143. #Range: > 0
  144. monitor_bandwidth = 1000000
  145.  
  146. #Various options relating to turtles.
  147. [turtle]
  148. #Set whether Turtles require fuel to move.
  149. need_fuel = true
  150. #The fuel limit for Turtles.
  151. #Range: > 0
  152. normal_fuel_limit = 20000
  153. #The fuel limit for Advanced Turtles.
  154. #Range: > 0
  155. advanced_fuel_limit = 100000
  156. #If set to true, Turtles will push entities out of the way instead of stopping if
  157. #there is space to do so.
  158. can_push = true
  159.  
  160. #Configure the size of various computer's terminals.
  161. #Larger terminals require more bandwidth, so use with care.
  162. [term_sizes]
  163.  
  164. #Terminal size of computers.
  165. [term_sizes.computer]
  166. #Range: 1 ~ 255
  167. width = 51
  168. #Range: 1 ~ 255
  169. height = 19
  170.  
  171. #Terminal size of pocket computers.
  172. [term_sizes.pocket_computer]
  173. #Range: 1 ~ 255
  174. width = 26
  175. #Range: 1 ~ 255
  176. height = 20
  177.  
  178. #Maximum size of monitors (in blocks).
  179. [term_sizes.monitor]
  180. #Range: 1 ~ 32
  181. width = 8
  182. #Range: 1 ~ 32
  183. height = 6
  184.  
  185.  
Advertisement
Add Comment
Please, Sign In to add comment