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
553 stars 332 forks source link

Wire tool CL errors #3057

Open wrefgtzweve opened 5 months ago

wrefgtzweve commented 5 months ago

Players have been getting these two wire adv tool errors for a while now, im not sure how to replicate them.

[wire] addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:444: attempt to index a nil value
  1. AutoWiringTypeLookup - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:444
   2. LeftClick - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:577
    3. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:228
[wire] addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:984: attempt to index local 'input' (a nil value)
  1. getName - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:984
   2. getWidthHeight - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:994
    3. DrawHUD - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:1178
     5. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/cl_init.lua:55
[wire] addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:1253: Tried to use a NULL entity!
  1. LocalToWorld - [C]:-1
   2. func - addons/wire/lua/weapons/gmod_tool/stools/wire_adv.lua:1253
    3. unknown - addons/ulib/lua/includes/modules/hook.lua:260
Denneisk commented 5 months ago

First two might be some sort of gaps or something in the inputs and outputs of entities?

Last error seems unrelated from the first two, and I could replicate it by trying to wire with multiple points and removing one of the entities.