EGP/wiring Errors
nonstopjoker opened this issue · 0 comments
Describe the bug
I've been working on an EGP screen, it has text, boxes, and buttons. When I spawned it today (with adv dupe 2), the screen showed the EGP logo with the red cogwheel, normally it shows the EGP right away, so I refreshed it and it was showing the EGP objects, but it didn't look right so I tried egpClear, and it looked more messed up (positioning and scaling was off) even after removing egpClear. Then I spawned a new screen entity and it wasn't working at all. I'm getting two different script errors, I know at least one is from when I select the EGP:wirelink input on the E2.
Script errors I'm getting (couldn't get the formatting to work, sorry):
[wire-master] addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:252: attempt to index a nil value
- CachePorts - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:252
- GetPorts - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:291
3. LoadMemorizedIndex - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:817
4. Think - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:839
5. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:167 (x7)
and
[wire-master] addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:252: attempt to index a nil value
- CachePorts - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:252
- GetPorts - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:291
3. DrawHUD - addons/wire-master/lua/weapons/gmod_tool/stools/wire_adv.lua:1112
4. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/cl_init.lua:54 (x4)
To Reproduce
Steps to reproduce the behavior:
- Spawn E2 and a EGP screen
- Wire E2 to screen with the wirelink input
- maybe egpClear and refresh?
Expected behavior
The EGP objects should be shown on the screen it's wired to. Sometimes I have to refresh it for it to scale to the screen properly (probably the way I've made it), and it shouldn't give errors.