Skip to content
This repository has been archived by the owner on Jul 1, 2018. It is now read-only.

Configuring computers

SquidDev edited this page Oct 24, 2016 · 7 revisions

Computer timeout

ComputerCraft will try to terminate code which has been running for more than 7 seconds. However there may be occasions where you want to tweak this value (such as developing a program, or limiting resources that can be used).

This value can be changed through the Computer.computerThreadTimeout configuration option.

Warning: Making this value too small may result in computers being terminated when they first turn on.

File limits

It is possible to overload the system with file handles through ComputerCraft. To prevent that CCTweaks provides the Computer.maxFilesHandles option to limit the number of open file handles a computer can have. This is set to 1024.

Custom bios

CCTweaks provides an option to specify a custom bios path, making it easier to use a custom bios. The path must start with a leading /: if this is not the case or the file cannot be found then the default will be used.

This is configured through the Computer.biosPath option.

Multi-threading

CCTweaks allows executing multiple computers at once, so long running tasks don't block other computers.

Note: This does not work under the LuaJ runtime. Use Cobalt or Rembulam instead.

Warning: This feature is still experimental and so may exhibit different behaviour to vanilla ComputerCraft's handling.

  • Computer.MultiThreading.enabled: Enable the custom threading system.
  • Computer.MultiThreading.threads: The number of threads on which execute computers. More threads means more computers can execute at once, at the expense of performance. This requires enabled to be true.
Clone this wiki locally