Skip to content

Commit

Permalink
fix: added cc configs to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-lopes committed Jan 19, 2025
1 parent 79833d8 commit 33d4c70
Show file tree
Hide file tree
Showing 5 changed files with 695 additions and 430 deletions.
19 changes: 6 additions & 13 deletions config/bcc-common.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
#General settings
[general]
#The CurseForge project ID for the modpack
# Default: 0
# Range: > 0
modpackProjectID = 925200
#The name of the modpack
modpackName = "All The Mods 10"
#The version of the modpack
modpackVersion = "2.24"
#Use the metadata.json to determine the modpack version
#ONLY ENABLE THIS IF YOU KNOW WHAT YOU ARE DOING
useMetadata = false
[general]
modpackProjectID = 925200
modpackName = "All The Mods 10"
modpackVersion = "2.25"
useMetadata = false

14 changes: 14 additions & 0 deletions config/computercraft-client.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#The renderer to use for monitors. Generally this should be kept at "best" - if
#monitors have performance issues, you may wish to experiment with alternative
#renderers.
#Allowed Values: BEST, TBO, VBO
monitor_renderer = "BEST"
#The maximum distance monitors will render at. This defaults to the standard tile
#entity limit, but may be extended if you wish to build larger monitors.
# Default: 64
# Range: 16 ~ 1024
monitor_distance = 64
#The delay in seconds after which we'll notify about unhandled imports. Set to 0 to disable.
# Default: 5
# Range: 0 ~ 60
upload_nag_delay = 5
244 changes: 244 additions & 0 deletions config/computercraft-server.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
#The disk space limit for computers and turtles, in bytes.
computer_space_limit = 1000000
#The disk space limit for floppy disks, in bytes.
floppy_space_limit = 125000
#The file upload size limit, in bytes. Must be in range of 1 KiB and 16 MiB.
#Keep in mind that uploads are processed in a single tick - large files or
#poor network performance can stall the networking thread. And mind the disk space!
# Default: 524288
# Range: 1024 ~ 16777216
upload_max_size = 524288
#Set how many files a computer can have open at the same time. Set to 0 for unlimited.
# Default: 128
# Range: > 0
maximum_open_files = 128
#A comma separated list of default system settings to set on new computers.
#Example: "shell.autocomplete=false,lua.autocomplete=false,edit.autocomplete=false"
#will disable all autocompletion.
default_computer_settings = ""
#Log exceptions thrown by peripherals and other Lua objects. This makes it easier
#for mod authors to debug problems, but may result in log spam should people use
#buggy methods.
log_computer_errors = true
#Require players to be in creative mode and be opped in order to interact with
#command computers. This is the default behaviour for vanilla's Command blocks.
command_require_creative = true
#A list of generic methods or method sources to disable. Generic methods are
#methods added to a block/block entity when there is no explicit peripheral
#provider. This includes inventory methods (i.e. inventory.getItemDetail,
#inventory.pushItems), and (if on Forge), the fluid_storage and energy_storage
#methods.
#Methods in this list can either be a whole group of methods (computercraft:inventory)
#or a single method (computercraft:inventory#pushItems).
#
disabled_generic_methods = []

#Controls execution behaviour of computers. This is largely intended for
#fine-tuning servers, and generally shouldn't need to be touched.
[execution]
#Set the number of threads computers can run on. A higher number means more
#computers can run at once, but may induce lag. Please note that some mods may
#not work with a thread count higher than 1. Use with caution.
# Default: 1
# Range: > 1
computer_threads = 1
#The maximum time that can be spent executing tasks in a single tick, in
#milliseconds.
#Note, we will quite possibly go over this limit, as there's no way to tell how
#long a will take - this aims to be the upper bound of the average time.
# Default: 10
# Range: > 1
max_main_global_time = 10
#The ideal maximum time a computer can execute for in a tick, in milliseconds.
#Note, we will quite possibly go over this limit, as there's no way to tell how
#long a will take - this aims to be the upper bound of the average time.
# Default: 5
# Range: > 1
max_main_computer_time = 5

#Controls the HTTP API
[http]
#Enable the "http" API on Computers. Disabling this also disables the "pastebin" and
#"wget" programs, that many users rely on. It's recommended to leave this on and use
#the "rules" config option to impose more fine-grained control.
enabled = true
#Enable use of http websockets. This requires the "http_enable" option to also be true.
websocket_enabled = true
#The number of http requests a computer can make at one time. Additional requests
#will be queued, and sent when the running requests have finished. Set to 0 for
#unlimited.
# Default: 16
# Range: > 0
max_requests = 16
#The number of websockets a computer can have open at one time.
# Default: 4
# Range: > 1
max_websockets = 4

#Limits bandwidth used by computers.
[http.bandwidth]
#The number of bytes which can be downloaded in a second. This is shared across all computers. (bytes/s).
# Default: 33554432
# Range: > 1
global_download = 33554432
#The number of bytes which can be uploaded in a second. This is shared across all computers. (bytes/s).
# Default: 33554432
# Range: > 1
global_upload = 33554432

#Tunnels HTTP and websocket requests through a proxy server. Only affects HTTP
#rules with "use_proxy" set to true (off by default).
#If authentication is required for the proxy, create a "computercraft-proxy.pw"
#file in the same directory as "computercraft-server.toml", containing the
#username and password separated by a colon, e.g. "myuser:mypassword". For
#SOCKS4 proxies only the username is required.
[http.proxy]
#The type of proxy to use.
#Allowed Values: HTTP, HTTPS, SOCKS4, SOCKS5
type = "HTTP"
#The hostname or IP address of the proxy server.
host = ""
#The port of the proxy server.
# Default: 8080
# Range: 1 ~ 65536
port = 8080

#A list of rules which control behaviour of the "http" API for specific domains or
#IPs. Each rule matches against a hostname and an optional port, and then sets several
#properties for the request. Rules are evaluated in order, meaning earlier rules override
#later ones.
#
#Valid properties:
# - "host" (required): The domain or IP address this rule matches. This may be a domain name
# ("pastebin.com"), wildcard ("*.pastebin.com") or CIDR notation ("127.0.0.0/8").
# - "port" (optional): Only match requests for a specific port, such as 80 or 443.
#
# - "action" (optional): Whether to allow or deny this request.
# - "max_download" (optional): The maximum size (in bytes) that a computer can download in this
# request.
# - "max_upload" (optional): The maximum size (in bytes) that a computer can upload in a this request.
# - "max_websocket_message" (optional): The maximum size (in bytes) that a computer can send or
# receive in one websocket packet.
# - "use_proxy" (optional): Enable use of the HTTP/SOCKS proxy if it is configured.
[[http.rules]]
#The magic "$private" host matches all private address ranges, such as localhost and 192.168.0.0/16.
#This rule prevents computers accessing internal services, and is strongly recommended.
host = "$private"
#Deny all requests to private IP addresses.
action = "deny"
#A list of rules which control behaviour of the "http" API for specific domains or
#IPs. Each rule matches against a hostname and an optional port, and then sets several
#properties for the request. Rules are evaluated in order, meaning earlier rules override
#later ones.
#
#Valid properties:
# - "host" (required): The domain or IP address this rule matches. This may be a domain name
# ("pastebin.com"), wildcard ("*.pastebin.com") or CIDR notation ("127.0.0.0/8").
# - "port" (optional): Only match requests for a specific port, such as 80 or 443.
#
# - "action" (optional): Whether to allow or deny this request.
# - "max_download" (optional): The maximum size (in bytes) that a computer can download in this
# request.
# - "max_upload" (optional): The maximum size (in bytes) that a computer can upload in a this request.
# - "max_websocket_message" (optional): The maximum size (in bytes) that a computer can send or
# receive in one websocket packet.
# - "use_proxy" (optional): Enable use of the HTTP/SOCKS proxy if it is configured.
[[http.rules]]
#The wildcard "*" rule matches all remaining hosts.
host = "*"
#Allow all non-denied hosts.
action = "allow"
#The maximum size (in bytes) that a computer can download in a single request.
#Note that responses may receive more data than allowed, but this data will not
#be returned to the client.
max_download = 16777216
#The maximum size (in bytes) that a computer can upload in a single request. This
#includes headers and POST text.
max_upload = 4194304
#The maximum size (in bytes) that a computer can send or receive in one websocket packet.
max_websocket_message = 131072
#Enable use of the HTTP/SOCKS proxy if it is configured.
use_proxy = false

#Various options relating to peripherals.
[peripheral]
#Enable Command Block peripheral support
command_block_enabled = false
#The range of Wireless Modems at low altitude in clear weather, in meters.
# Default: 64
# Range: 0 ~ 100000
modem_range = 64
#The range of Wireless Modems at maximum altitude in clear weather, in meters.
# Default: 384
# Range: 0 ~ 100000
modem_high_altitude_range = 384
#The range of Wireless Modems at low altitude in stormy weather, in meters.
# Default: 64
# Range: 0 ~ 100000
modem_range_during_storm = 64
#The range of Wireless Modems at maximum altitude in stormy weather, in meters.
# Default: 384
# Range: 0 ~ 100000
modem_high_altitude_range_during_storm = 384
#Maximum amount of notes a speaker can play at once.
# Default: 8
# Range: > 1
max_notes_per_tick = 8
#The limit to how much monitor data can be sent *per tick*. Note:
# - Bandwidth is measured before compression, so the data sent to the client is
# smaller.
# - This ignores the number of players a packet is sent to. Updating a monitor for
# one player consumes the same bandwidth limit as sending to 20.
# - A full sized monitor sends ~25kb of data. So the default (1MB) allows for ~40
# monitors to be updated in a single tick.
#Set to 0 to disable.
# Default: 1000000
# Range: > 0
monitor_bandwidth = 1000000

#Various options relating to turtles.
[turtle]
#Set whether Turtles require fuel to move.
need_fuel = true
#The fuel limit for Turtles.
# Default: 20000
# Range: > 0
normal_fuel_limit = 20000
#The fuel limit for Advanced Turtles.
# Default: 100000
# Range: > 0
advanced_fuel_limit = 100000
#If set to true, Turtles will push entities out of the way instead of stopping if
#there is space to do so.
can_push = true

#Configure the size of various computer's terminals.
#Larger terminals require more bandwidth, so use with care.
[term_sizes]

#Terminal size of computers.
[term_sizes.computer]
# Default: 51
# Range: 1 ~ 255
width = 51
# Default: 19
# Range: 1 ~ 255
height = 19

#Terminal size of pocket computers.
[term_sizes.pocket_computer]
# Default: 26
# Range: 1 ~ 255
width = 26
# Default: 20
# Range: 1 ~ 255
height = 20

#Maximum size of monitors (in blocks).
[term_sizes.monitor]
# Default: 8
# Range: 1 ~ 32
width = 8
# Default: 6
# Range: 1 ~ 32
height = 6
32 changes: 23 additions & 9 deletions config/crash_assistant/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
show_dont_send_screenshot_of_gui_notice = true
#List of blacklisted log files. This files won't show in GUI logs list.
blacklisted_logs = ["CrashAssistant: latest.log"]
#Crash Assistant splits the log into a head and tail of 25,000 lines each if the log exceeds mclo.gs limits (10 MB or 25,000 lines).
#Add an explanation at the bottom of the generated message about why log was split.
generated_msg_includes_info_why_split = false

#Here you can configure debug options for easier configuration of the mod.
[debug]
Expand All @@ -30,13 +27,13 @@
#Also you can change any text in lang files.
#You don't need to modify jar. You can change it in config/crash_assistant/lang. For more info read README.md file located where.
[text]
#$SUPPORT_NAME$ in lang files will be replaced with this value.
#For example this placeHolder used in: "gui.request_help_button": "Request help in the $SUPPORT_NAME$"
#$CONFIG.text.support_name$ in lang files will be replaced with this value.
#For example this placeHolder used in: "gui.request_help_button": "Request help in the $CONFIG.text.support_name$"
support_name = "ATM10 Support Channel"
#$SUPPORT_PLACE$ in lang files will be replaced with this value.
#$CONFIG.text.support_place$ in lang files will be replaced with this value.
support_place = "#atm10-techsupport channel"
#$MODPACK_NAME$ in lang files will be replaced with this value.
#For example this placeHolder used in: "gui.title_crashed_with_report": "Oops, $MODPACK_NAME$ crashed!"
#$CONFIG.text.modpack_name$ in lang files will be replaced with this value.
#For example this placeHolder used in: "gui.title_crashed_with_report": "Oops, $CONFIG.text.modpack_name$ crashed!"
#Supports Better Compatibility Checker integration. You can use $BCC.modpackName$, $BCC.modpackVersion$, etc and it will be replaced with value from BCC config.
modpack_name = "$BCC.modpackName$ - $BCC.modpackVersion$"

Expand All @@ -49,7 +46,7 @@
#nicknames of players, who considered as modpack creator.
#Only this players can overwrite modlist.json
#If this feature is enabled and this array is empty, will be appended with nickname of current player.
modpack_creators = ["whatthedrunk","Uncandango]
modpack_creators = ["whatthedrunk","Uncandango"]
#If enabled, modlist.json will be overwritten on every launch(first tick of TitleScreen),
#then game is launched by modpack creator.
#So you won't forget to save it before publishing.
Expand All @@ -64,3 +61,20 @@
#Set to <= 0 to disable the confirmation.
seconds = 10

#Settings of message generated by Upload all button
[generated_message]
#This text will be under "$CONFIG.text.modpack_name$ crashed!" in generated message by Upload all button.
#You can include:
# * some form, which users should fill out.
# * additional information like Minecraft version, etc.
text_under_crashed = ""
#Warning: if "general.help_link" is default (equals https://discord.gg/moddedmc), this value will be ignored and custom hardcoded message used due to request of ModdedMC discord administration.
#Leave empty to prevent showing this warning message.
#With this option you can notify user about something related with posting generated message.
#For example if they need to fill some option from "generated_message.text_under_crashed", etc.
#Supports html formatting, placeholders.
warning_after_upload_all_button_press = ""
#Crash Assistant splits the log into a head and tail of 25,000 lines each if the log exceeds mclo.gs limits (10 MB or 25,000 lines).
#Add an explanation at the bottom of the generated message about why log was split.
generated_msg_includes_info_why_split = false

Loading

0 comments on commit 33d4c70

Please sign in to comment.