Skip to content

better formspecs - #447

Open
The4codeblocks wants to merge 18 commits into
mt-mods:masterfrom
The4codeblocks:betterbatteryboxgui
Open

better formspecs#447
The4codeblocks wants to merge 18 commits into
mt-mods:masterfrom
The4codeblocks:betterbatteryboxgui

Conversation

@The4codeblocks

@The4codeblocks The4codeblocks commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

migrates machines to real coördinates and touches them up with a few refinements

  • battery box
  • generic (base) machines
  • fuelfired generators
  • mcl compat
  • (?) self-contained injectors

@The4codeblocks

The4codeblocks commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

machines/register/machine_base.lua:214: attempt to index field 'button_base' (a function value)

huhh?
explain (it's a string on my copy)

@OgelGames

Copy link
Copy Markdown
Contributor

I have no clue, but it seems like a mineunit issue, because it works locally.

@The4codeblocks
The4codeblocks marked this pull request as ready for review June 18, 2026 08:25
@S-S-X

S-S-X commented Jul 24, 2026

Copy link
Copy Markdown
Member

machines/register/machine_base.lua:214: attempt to index field 'button_base' (a function value)

huhh? explain (it's a string on my copy)

Instead of actually syncing and loading complete mod dependencies Technic tests are using minimal fixtures for mod dependencies. For tests button_base should be added as a mock value/function that provides either static or predictable output.

mineunit:set_modpath("pipeworks", "spec/fixtures")
_G.pipeworks = {}
_G.pipeworks.button_label = ""
_G.pipeworks.fs_helpers = {}
_G.pipeworks.fs_helpers.cycling_button = function(...) return "" end
_G.pipeworks = setmetatable(_G.pipeworks, {
__call = function(self,...) return self end,
__index = function(...) return function(...)end end,
})

@The4codeblocks

Copy link
Copy Markdown
Contributor Author

machines/register/machine_base.lua:214: attempt to index field 'button_base' (a function value)

huhh? explain (it's a string on my copy)

Instead of actually syncing and loading complete mod dependencies Technic tests are using minimal fixtures for mod dependencies. For tests button_base should be added as a mock value/function that provides either static or predictable output.

mineunit:set_modpath("pipeworks", "spec/fixtures")
_G.pipeworks = {}
_G.pipeworks.button_label = ""
_G.pipeworks.fs_helpers = {}
_G.pipeworks.fs_helpers.cycling_button = function(...) return "" end
_G.pipeworks = setmetatable(_G.pipeworks, {
__call = function(self,...) return self end,
__index = function(...) return function(...)end end,
})

applied in d6f6977

@The4codeblocks

Copy link
Copy Markdown
Contributor Author

so do I upgrade chest and cnc forms too?

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.

3 participants