Custom level creation/circuit.data

From Turing Complete
Revision as of 00:45, 15 January 2025 by Altrag (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
wip
wip

This page descibes the early access verion 0.1346 Beta. It may not be completely correct for the the current stable version, nor the latest unstable version. Help us update it, and you get a cookie.

The circuit.data file contains the default layout of the level. It is the same file format as the circuit.data associated with player schematics, and is created and modified in-game in much the same way as regular play. The two biggest differences are that we want to allow and utilize indelible (red) components to pre-defined required components (currently only the various styles of input and output pins, delay lines and registers are available as indelible components), and that we need to use a command to write our changes back to the level directory.

To do that, first create your level directory as described under Getting Started. Once you have level directory, you can load your level by opening the game console and running the load my_level command (if your new level directory is named my_level).

The load command performs a normal game level load, including the last opened schematic. Make sure to create a new schematic before proceeding, if necessary.

After your level is loaded, open the game console again and run the dev_mode on command to enable the DEV component menu where the indelible components are located. Place and adjust components as necessary. You can include pre-defined bit (blue) and word (green) components as well as wiring if you desire, but keep in mind the player will be able to modify or delete such components and wiring. Only the indelible (red) components are locked and cannot be removed during normal gameplay.

Once you are satisfied with your level layout, open the game console once more and run the save_level command to store your changes in the level's circuit.data.

As with above, the game will treat your level as a normal schematic and will update the circuit.data in your save directory, and it will load and save as normal. However, that will not update the circuit.data in the game directory, so be sure to run the save_level command separately.