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

CCTweaks command

SquidDev edited this page Jan 24, 2017 · 1 revision

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.

A note on selecting computers

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).

dump [computer]

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.

view <computer>

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.

tp <computer>

This command allows teleporting to the specified computer.

shutdown [computers...]

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.

give <item> <id> [label] [family]

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.

profile

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.