-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any Machine base containing a control logic unit ejects items randomly from the left or right #336
Comments
Machines do not eject randomly, direction depends on machine orientation and probably wont be changed anytime soon because doing that would break a lot of stuff. |
This should be like this, but it's not, that's why I'm reporting this bug, because it's random. My machine was ejecting from the right, so I set up my tubes, after exiting the game and re-entering, now my machine is ejecting from the left, and my entire construction has been broken |
Machines do not eject randomly, direction depends on machine orientation and probably wont be changed anytime soon because doing that would break a lot of stuff. It is bit complicated and confusing at first but still it is 100% predictable. It is true it changes relative direction but that does not make it random, it is 100% predictable even while a bit annoying. It would be nice to improve this behavior but I don't think separate configuration for direction really makes sense (even while it could be a tiny bit better in some edge cases). But then also if it would get fixed then probably explicit direction configuration for machines or different behavior for newly placed machines would be required. Different behavior for newly placed machines however makes it confusing for players who do know how it works and know how to calculate output direction based on orientation. For this it would probably help if there would be explicit machine specific configuration. There's many ways to make it better but current behavior is not random and cannot be blindly updated because doing so would break a lot of existing factories, some backwards compatible way to make it simpler would be needed. |
We could fairly easily add metadata direction setting for new machines and make output relative to machine orientation without doing confusing relative direction swap when machine is rotated, best case it would also add support for upward + downward directions while at it, meta value check and output direction selection should then be done here: technic/technic/machines/register/common.lua Lines 87 to 117 in f1b9928
Machines would also require one time metadata write when placed, that way old machines would keep swapping relative direction of output and keep old factories running but newly placed machines would get new behavior. On top of that, if needed, it would be fairly easy to later add an configuration input for machine formspec to actually allow selecting output direction. There it should allow at most 5 directions: left, right, back, top, bottom but not front. |
These should always eject items from the right side.
The machine that contains the control logic unit, ejects on the right side, if you close the game and enter again, it now ejects on the left, or not, it is random.
It is a problem for the construction of pipeworks tube systems, which fail when the side from which the items are ejected is reversed.
The text was updated successfully, but these errors were encountered: