Skip to content

added 2x2 and 3x3 control panels#6

Open
DTK-MrRaccoon wants to merge 5 commits intoGTNewHorizons:masterfrom
DTK-MrRaccoon:dev
Open

added 2x2 and 3x3 control panels#6
DTK-MrRaccoon wants to merge 5 commits intoGTNewHorizons:masterfrom
DTK-MrRaccoon:dev

Conversation

@DTK-MrRaccoon
Copy link
Copy Markdown

2025-12-22_10 12 41

@AnrDaemon
Copy link
Copy Markdown

Nice, but there's an immediate question: what lines the panel connects to?
The 4x4 panel connect all lines and you can use template[1] to choose the line you need.

I don't see a good way to connect the smaller panels. You either use a part of template and pre-limit the choice of lines, forcing the end user to wire their system to certain specific colors, make a cross joint somewhere, or make the panel itself configurable in some way, complicating the setup.

[1] Panel wiring template image


// Persistent
public int mounting; // 0 = flush, 1 = surface
public int gridSize = 4; // Default to 4x4
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reading through your code, it seems you could benefit from storing the number of cells as well, calculating it once when the object is initialized.

@DTK-MrRaccoon
Copy link
Copy Markdown
Author

Nice, but there's an immediate question: what lines the panel connects to? The 4x4 panel connect all lines and you can use template[1] to choose the line you need.

I don't see a good way to connect the smaller panels. You either use a part of template and pre-limit the choice of lines, forcing the end user to wire their system to certain specific colors, make a cross joint somewhere, or make the panel itself configurable in some way, complicating the setup.

[1] Panel wiring template

Hi I used the same wiring template the 2x2 uses the first 4 colors of it the 3x3 does first 9 colors. Maybe a good way to select the color would be just add ability to dye the spots on the back of the panel so it does interact with the color of the wire so it can be fully custom?

@AnrDaemon
Copy link
Copy Markdown

First four in a row or the top-left square of 2x2 ?

Do we really need 3x3 ?

Can you add a prefab cross panel to split 16 lines from the outside to 4 sides by 4 colors?
The panel should take bundled input from the front (outside block) and split each template row(each row looks distinct, while the first square contains y/o combination, which is harder to tell apart) to the first row's colors on each side. If a cable is connected to the panel inside, it should connect to the nearest side if possible. If that is not possible to detect, then connect it to the top row.
The outside texture should be the crafting material, the inside - spoil the wiring.

[image] image

That would reduce the need for custom fabrication panels.

Painting? We do have spray cans already, right? That could be an interesting option. Then how about adding a painting to the base panel? And allow painting multiple spots to the same color (will make "switch + feedback light" combinations easier to manage without using two panels side by side). Make the color template visible when holding a spray can against the panel.

Oh, and when you inside this, can we discuss an issue? Please ping me on discord (GTNH or direct).

@EnderProyects
Copy link
Copy Markdown

I guess is much harder to do, and has nothing to do with the pr, but you could use a cable to set what colour you want the "button" to be mached to, so the controll panel is just a default blank with no conections

@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Jan 2, 2026
… cans work the paint remover sets the cell back to default color now the backside is used to show what color does connect to that cell multiple cells can be colored with same color.
@DTK-MrRaccoon
Copy link
Copy Markdown
Author

2026-01-05_20 38 44 2026-01-05_20 39 40 2026-01-05_20 40 08 2026-01-05_20 40 18 2026-01-05_20 40 33

I made it so the backside can be colored now to set what wires it will use. It works with normal dyes or the spray cans.

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

Labels

🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants