Team Spartan Cookies & Milk Forums
Sorry Person, I found another SF bug... - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Sorry Person, I found another SF bug... (/thread-1427.html)



Sorry Person, I found another SF bug... - Yuri6037 - 25-10-2015

Hey Person,

I'm sorry if I annoy you by making as much topics on SF bugs, but again I found a bug...

Steps to reproduce :
- spawn an entity compatible with the bug (ex gate iris, SBEP door, I believe there are more).
- Spawn a starfall chip and server side do : get the entity's wirelink and call addOutputCallback on it (don't forget print(Output) inside the callback), you'll see some outputs does not fire the callback.

Right now the only entity that seams working with it is Stargate.

I don't know why it's causing that...

Thanks by advance,
Yuri6037


RE: Sorry Person, I found another SF bug... - Person8880 - 25-10-2015

Can't reproduce. I spawn a chip with the following code:
local Ent = ents.self():isWeldedTo()
Ent:getWirelink():addOutputCallback( "Bleh", function( Wirelink, Name, Value )
print( Wirelink, Name, Value )
end )
on an SBEP door and an iris and both print every time an output changes.


RE: Sorry Person, I found another SF bug... - Yuri6037 - 25-10-2015

I use that :
Also note that I'm changing inputs of Stargate and Iris and also of SBEP doors at runtime on net receive.
Code:
--@name Test --@author Yuri6037 --@sharedscreen if (SERVER) then local Stargate = nil local Iris = nil local Test = nil wire.createInputs({"Stargate", "Iris", "TestSBEP"}, {"Wirelink", "Wirelink", "Wirelink"}) if (not(wire.ports["Stargate"] == nil)) then Stargate = wire.ports["Stargate"] Stargate:addOutputCallback("SGCTRL", function(w, out, var) print(out) --so far no problems it prints all different output changes when dialing/being dialed. end) end if (not(wire.ports["Iris"] == nil)) then Iris = wire.ports["Iris"] Iris:addOutputCallback("SGCTRL1", function(w, out, var) print(out) --Not working at all no print thrown end) end if (not(wire.ports["TestSBEP"] == nil)) then Test = wire.ports["TestSBEP"] Test:addOutputCallback("TestSBEP", function(w, out, var) print(out) --When open/close by SF will print, but when lock by SF then no print at all end) end end

I wrote that from my iPad so this can sometimes be strangely formed...


RE: Sorry Person, I found another SF bug... - Person8880 - 25-10-2015

I've found the problem now and it should be fixed after the next server restart.


RE: Sorry Person, I found another SF bug... - Yuri6037 - 26-10-2015

Thank you, I saw that works now.