-
Notifications
You must be signed in to change notification settings - Fork 2
CCTweaks command
CCTweaks provides a /cctweaks
command for server owners to manage computers running on the server. This section
details the various sub-commands provided by the mod. The commands are relatively well documented in game too, this is a
more comprehensive description of their purpose.
Several commands allow selecting one or more computers. You can either specify an instance id: a unique number allocated
by ComputerCraft, or a computer id which is generally unique but not always. The former is just given by a number
(such as 12
for the computer with instance id of 12) and the latter by a hash then a number (#12
for a computer
with an id of 12).
When given no arguments, the dump
command will list all computers which are active on the server, and provide a link
to teleport there. If given one argument, it will display a more detailed description of the computer, such as its kind
and attached peripherals.
The /cctweaks view <computer>
allows you to view and interact with the specified computer. This may prove useful if you
need to observe from afar, or just offer a helping hand.
This command allows teleporting to the specified computer.
When given no arguments, /cctweaks shutdown
will shutdown all computers on the server. This is mainly designed for
massive lag issued which may be caused by computers. You can also specify a list of instance or computer ids to
selectively shutdown.
The give
command allows spawning in any computer item. This includes computers, turtles and pocket computers. It
requires the name of the item to spawn in as well as a computer ID to allocate to it. You can also specify a label to
give the computer and a "family" (such as normal, advanced or command) the item should belong to.
The profile command allows monitoring computers for a period, counting how long they execute for, as well as the number of events they receive. You'll need to enable Multi-threading in order for this to work.
The profile start
command starts monitoring computers. You will probably want to wait a short time period (10-30 seconds)
and run profile stop
. This will display a list of all computers which executed in that period, sorted by their total
execution time.