Skip to content

Conversation

@Alecsioo
Copy link

@Alecsioo Alecsioo commented Jul 20, 2025

In some scenarios, machinery hatches stop working and require manual intervention to re-enable them (for example, fluid inputs stop providing the configured fluids). From debugging, it appears that all hatches are sleeping on startup, and in certain cases, they are never woken up.

There are multiple layers of complexity here, from MMCE’s TileEntitySynchronized implementation to AE2’s tick rate manager, which I didn’t fully investigate. However, I had a world where I could consistently reproduce the issue with some fluid machinery inputs by simply leaving and rejoining the world. Applying the changes in this PR resolved the issue in that scenario.

I assume the device needs to be alerted at least once to exit sleep mode, after which AE2’s tick rate manager handles it.

While I’m sure there are more refined solutions (and this one might not fix every edge case, since technically alertDevice will fail if the grid is null), this could be a good first step toward making machinery hatches more reliable.

Anyone familiar with either MMCE or AE2’s tick rate manager is welcome to provide feedback.

…me scenarios, causing them to not work anymore unless manually alerted
@Alecsioo Alecsioo closed this Jul 20, 2025
@Alecsioo
Copy link
Author

Closing this as I opened it by mistake. The fix is not yet tested enough for an actual PR here.

@Alecsioo Alecsioo changed the title Potential fix to machinery hatches sometimes failing to wake up in so… Potential fix to machinery hatches Jul 21, 2025
@Alecsioo Alecsioo reopened this Jul 21, 2025
@KasumiNova KasumiNova merged commit 3acb30a into NovaEngineering-Source:master Aug 30, 2025
2 checks passed
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