Page 1 of 1

[Lou][2.0.52] Super forced build from clipboard not generate enough events

Posted: Fri May 23, 2025 3:05 pm
by root
This is follow up on 128717

What did you do?
1. Build inserter in horizontal direction
2. Select and copy inserter with ctr+c
1.png
1.png (53.25 KiB) Viewed 1018 times
3. Rotate ghost in hand
4. Super forced build over inserter with ctrl+shift+click
1.5.png
1.5.png (58.63 KiB) Viewed 1018 times

What happened?
Only on_pre_build event emitted
2.png
2.png (96.66 KiB) Viewed 1018 times

What did you expect to happen instead?
I expect more events. At least on_player_rotated_entity or maybe even on_player_flipped_entity in case it was flipped

Re: [2.0.52] Super forced build from clipboard not generate enough events

Posted: Sat May 24, 2025 4:01 am
by Gweneph
Where'd you get that log? Is there a debug tool for events?

Re: [2.0.52] Super forced build from clipboard not generate enough events

Posted: Sat May 24, 2025 4:08 am
by eugenekay
Gweneph wrote: Sat May 24, 2025 4:01 am Where'd you get that log? Is there a debug tool for events?
Yes

Re: [Lou][2.0.52] Super forced build from clipboard not generate enough events

Posted: Wed Sep 03, 2025 9:02 pm
by Loup&Snoop
I’m still feeling side effects from workarounds to this bug. I’d like to link the accidental duplicate bug report that I made for this: viewtopic.php?p=674604#p674604

I hope the alternate account for the reproduction (with videos) helps find a solution.

Re: [Lou][2.0.52] Super forced build from clipboard not generate enough events

Posted: Mon Sep 22, 2025 1:16 pm
by oobanooba
I am suffering from this bug as well.

Building an entity with a different rotation on top of another via the clipboard (like one might do when pasting a recipe from one machine to another, or rotating many machines in bulk) doesn't raise on_player_rotated_entity, despite having rotated the entity.

This is a problem for me, since my mod has compound entities which need to support rotations. Right now, with this bug, I can't support those rotations without unacceptable levels of jank.
09-22-2025, 23-11-01.png
09-22-2025, 23-11-01.png (1.3 MiB) Viewed 75 times