Reika_Mods_Issues icon indicating copy to clipboard operation
Reika_Mods_Issues copied to clipboard

Angular transducer readouts use int-casted power and have overflow

Open MachiavelliSeraphim opened this issue 2 years ago • 2 comments

Version Info RotaryCraft+1.7.10+V31b ReactorCraft+1.7.10+V31b ElectriCraft+1.7.10+V31a DragonAPI+1.7.10+V31b

The angular transducer is showing extremely buggy readings on shafts and shaft junctions.

I was building a creative HP Turbine dummy to test some machinery layouts and this is what I found.

Power is moving according to the Dynamometer, but the transducer does not show the same on the junctions and shafts, sometimes showing negative numbers.

Layout 1st Junction 2nd Junction 3rd Junction End Bevel 8GW Shaft after Bevel Second String Input Bevel

Also on a side note, what is the power limit on the induction generator now if you don't mind me asking? They definitely explode at 1 GW. Its nothing I cant plan around, I just used to use them to segregate my power grid into sub-grids before.

Thank you.

MachiavelliSeraphim avatar Mar 21 '22 15:03 MachiavelliSeraphim

It looks like you hit the integer limits and are experiencing overflow. Power is a long internally, so the right amount is being transmitted, but something is casting it to int in the rendering here.

ReikaKalseki avatar May 14 '22 19:05 ReikaKalseki

Whats odd is that I havent had a problem on a multiplayer world that I can think of.
This only happened in a single player world.

Just realized it. Dont know if it helps.

MachiavelliSeraphim avatar May 14 '22 20:05 MachiavelliSeraphim

Turns out it was not a display bug - the power value actually did overflow because of all TE types shafts forgot to cast omega and torque to long before multiplying them.

ReikaKalseki avatar Jul 04 '23 21:07 ReikaKalseki