wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
551 stars 331 forks source link

wirelink:egpAngle(index,number) behaving unexpectedly when used on wirelink:egpLine(index,vector2,vector2) #3008

Closed dstmnaki closed 5 months ago

dstmnaki commented 6 months ago

Describe the bug When the function wirelink:egpAngle(index,number) is used on an egpLine it gives lua errors

[EGP] Umsg error. It seems another umsg is already sending, but it occured over 1 second ago. Ending umsg.Tried to end EGP net message outside of net context? [wire-master] Warning! A net message (EGP_Transmit_Data) is already started! Discarding in favor of the new message! (wire_clienterror)

  1. ClientError - addons/wire-master/lua/wire/wireshared.lua:303
    1. Error - addons/wire-master/lua/entities/gmod_wire_expression2/init.lua:305
    2. PCallHook - addons/wire-master/lua/entities/gmod_wire_expression2/init.lua:294
      1. Execute - addons/wire-master/lua/entities/gmod_wire_expression2/init.lua:154
      2. Setup - addons/wire-master/lua/entities/gmod_wire_expression2/init.lua:541
      3. func - addons/wire-master/lua/wire/stools/expression2.lua:441
      4. unknown - lua/includes/extensions/net.lua:38

addons/wire-master/lua/entities/gmod_wire_egp/lib/egplib/usefulfunctions.lua:193: bad argument #1 to 'WriteInt' (number expected, got nil)

To Reproduce Just use the function on an egp line

Expected behavior Line to rotate said amount

Screenshots The issue should be explained clearly enough