Custom level creation/Adding your level to the map

From Turing Complete
wip
wip

This page descibes the early access verion 2.1.190 alpha. 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.

At any time after your level directory is created, open up the game console and enter the command dev_mode on . This will enable the component menu on the level map, as well as enabling all available components including those normally hidden during gameplay.

Adding the component to the map[edit | edit source]

For our current purposes, we want the component called Level component:

Level component
The Level component

Place the component and rotate it until the lock icon is facing the correct direction, the pale pink pin is the input, the red one is the output:

Level component (locked)
The Level component (locked)

Setting the component's name[edit | edit source]

The component will now display its name as Level ' 'not found (alongside the level ID), similar to:

Level name not found
Level name not found

To fix this, select your new component edit the Level textbox in the bottom panel.

Setting level component name
Setting level component name

Attaching the component to the campaign[edit | edit source]

You can now connect your component to the rest of the level map by drawing wires as normal. The component will automatically update its state to yellow (available but not yet completed) as soon as it receives an signal from another component (a prior completed level, or any other component such as Constant ON). Of course, if you connect it to an incomplete level it will remain red (locked).

Saving your changes[edit | edit source]

Once you are satisfied with your level's position and connections, access the game console once more and run the command save_level . This command will overwrite the map's circuit.data.

It is recommended that you return to the game console and the command dev_mode off after you've completed your updates. You will not be able to load the level directly from the map while dev_mode is enabled (it selects the component instead but you can use the Load button on the bottom panel instead).
This is the most likely change to cause conflicts with either Steam updates or git updates. circuit.data is a binary file and automatic merging is generally not possible. You will have to choose between the convenience of simply clicking your level to load it and dealing with potential conflicts when they arise, or waiting until the last minute to add your level to the map and stick with using the load button.

Game Updates[edit | edit source]

Any game update (or Steam's Verify Files) will replace your custom level map with the default. It's recommended to make a backup copy of the campaign/main/ folder so you can recover your customizations after they get wiped.