-
Notifications
You must be signed in to change notification settings - Fork 6
Creating Parts
Tatjam edited this page Jul 30, 2021
·
1 revision
A part is composed of a model, metadata, and many machines. This tutorial will guide the creation of a part from scratch.
(TODO)
Remember that TOML doesn't really read indentation. For example, this TOML fragment:
[[machine]]
id = "oxidizer_tank"
script = "core:machines/fuel_tank/machine.lua"
[[machine.fluid_port]]
id = "outlet"
marker = "m_attach_bottom"
__editor_marker = "m_attach_bottom"
Is actually incorrect! You may have spotted the mistake, __editor_marker
is meant to be a member of machine
, but here it's actually inside of machine.fluid_port
. The correct code would be:
[[machine]]
id = "oxidizer_tank"
script = "core:machines/fuel_tank/machine.lua"
__editor_marker = "m_attach_bottom"
[[machine.fluid_port]]
id = "outlet"
marker = "m_attach_bottom"
As a reminder, always have your lone values near the top of the entry, and leave tables for the bottom. You may also want to remove indentation to avoid errors like this, although that may damage readability.