AppliedEnergistics / Applied-Energistics-2

A Minecraft Mod about Matter, Energy and using them to conquer the world..
https://appliedenergistics.github.io/
Other
1.45k stars 669 forks source link

Memory Card not setting frequency on new ME P2P Tunnel #8221

Open jeffgentry opened 1 month ago

jeffgentry commented 1 month ago

WORKAROUND: Do not use the Memory Card with an item held in the off hand.

Describe the bug

When attempting to shift-right-click a new ME P2P Tunnel on controller side with a clear card, the shift-right-click generates message "Memory card cleared" instead of setting a new frequency. Frequency remains 0000 on Tunnel.

How to reproduce the bug

1 - Place ME P2P Tunnel on facing of a powered ME Controller. 2 - Attach White ME Smart Cable to back of Tunnel. 3 - Attach Fluix ME Smart Cable, run to different side of Controller 4 - Extend Fluix ME Smart Cable several blocks away from Controller an attach 2nd ME P2P Tunnel 5 - Confirm the Fluix ME Smart Cable carries 2 channels into the Controller 6 - Confirm both Tunnels installed and two Channels active by right clicking Controller 7 - Shift-right-click back (or side facing) of ME P2P Tunnel

After Step 7, message "Memory card cleared" appears even though the click was on the Tunnel at close range. Tool tip for ME P2P Tunnel reads as follows:

ME P2P Tunnel Device Online Unlinked Frequency: 0000 Carried Channels: 0 Applied Energistics 2

Afterward, a right-click on second tunnel, not attached to ME Controller, results in message "Could not load configuration from an incompatible device."

Expected behavior

Expected behavior is an random frequency assignment stored in the Memory Card and visible in ME P2P Tunnel that was target of shift+right click, after which a right-click of the Memory Card on the second Tunnel (not attached to Controller) links the two Tunnels.

Additional details

Issue experienced in Minecraft 1.21.1, Craftoria 1.5, NeoForge - 21.1.66, appliedenergistics2-19.0.23-beta.

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://gist.github.com/jeffgentry/1ee0e8681aeedc3e0ca24b6bfce09c6f

jeffgentry commented 1 month ago

2024-10-20_00 14 44

jeffgentry commented 1 month ago

Another person on the Craftoria Discord experienced the same issue, described as "weird, memory card just clears instead of linking when shift right clicky p2p"

michaelbaecker commented 1 month ago

Same here. But, it works correct in single player, not in multiplayer (on a server).

jeffgentry commented 1 month ago

Same here. But, it works correct in single player, not in multiplayer (on a server).

Interesting. I'm in single player mode (not on a server). I wonder if it is some other factor that we have in common that triggers the issue.

jeffgentry commented 1 month ago

I believe I have found the cause of the bug. The Memory Card does not function is an item is held in the off hand. When I attempted this again without no item in my off hand it worked. Since this is not consistent with past behavior, I assume the this is still a bug. That's a dev call.

WORKAROUND: Remove any items from the off hand when using a Memory Card.