Skip to content

Controller activates on forming multiblock - #8

Merged
LunaSquee merged 3 commits into
LunaSquee:masterfrom
CodingMantisUA:active_controller
Jun 8, 2026
Merged

Controller activates on forming multiblock#8
LunaSquee merged 3 commits into
LunaSquee:masterfrom
CodingMantisUA:active_controller

Conversation

@CodingMantisUA

@CodingMantisUA CodingMantisUA commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Hi there! Not sure if you accept PR-s, so submitting this for review as proof of concept.
For me it's very annoying that meltern does not show at a glance when it is formed, decided to change it and boy-o-boy was it a rabbit hole.
Haven't done extensive testing yet. Works at a glance.
Didn't find a "tubelib" mod, only "tubelib2". Couldn't test those changes. Maybe that dependency should be removed altogether?
If concept is OK, can make any required changes, extensive testing and code clean-up.
Thanks!

@CodingMantisUA

CodingMantisUA commented Apr 26, 2026

Copy link
Copy Markdown
Contributor Author

Manual testing, that I've done.

  • Controller, placed on it's own stays inactive
  • Completed structure activates controller
  • Breaking the structure deactivates controller and removes formspec
  • If active controller is broken, it drops inactive controller

Still didn't find "tubelib", so can't test interaction.
I can add support for "tubelib2" in a separate PR.

@CodingMantisUA CodingMantisUA changed the title WIP: Controller activates on forming multiblock Controller activates on forming multiblock Apr 26, 2026
Comment thread multifurnace/api.lua Outdated

local volume = calculate_volume(dimensions)
swap_node(pos, node, "multifurnace:controller_active")
def = core.registered_nodes["multifurnace:controller_active"]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the API was supposed to be able to handle arbitrary multifurnace registrations, you should store the different states in the node definition and access them from there if possible.

@LunaSquee

Copy link
Copy Markdown
Owner

The tubelib mod is from techpack by joe7575

@CodingMantisUA

Copy link
Copy Markdown
Contributor Author

Made controller provide state definitions.
Tested with techpack.

@LunaSquee
LunaSquee merged commit 9698720 into LunaSquee:master Jun 8, 2026
@LunaSquee

Copy link
Copy Markdown
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants