Team Spartan Cookies & Milk Forums
Starfal bug x2 ! - 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: Starfal bug x2 ! (/thread-1418.html)



Starfal bug x2 ! - Yuri6037 - 21-10-2015

Hey all,

I again found 2 new bugs on starfall, however not sure if bug #2 is realy a bug.

So for bug #1, that's simple create a starfall processor and call wire.createInputs inside it. Then on another starfall processor get the instance of the firstly created starfall processor and do getWirelink()["NameOfInput"] = 1, you'll see that nothing is set on the first processor.

For bug #2 : simple to reproduce, create two starfall processors one with some inputs and the other with some outputs then call on the second one instanceToFirstProcessor:createWire(ents.self(), "InputOfFirstEntity", "OutputInEnts.Self()") and you'll constantly keep getting a false, "invalid self" error when calling the functions. This seams a bug for me because calling deleteWire works perfectly.

Don't know if you can do something thorugh Person, but I hope you can. I'm not the only one with bug #1, T-17 also get it.

Thanks by advance,
Yuri6037


RE: Starfal bug x2 ! - Person8880 - 21-10-2015

Cannot reproduce the first one. I spawned two chips with the following code:

Chip 1:
wire.createInputs( { "Bleh" }, { "normal" } )
hook( "input", "Bleh", print )
Chip 2:
local Other = find.byClass( "starfall_processor", function( Ent ) return Ent ~= ents.self() end )[ 1 ]
Other:getWirelink().Bleh = 1
When the second chip is run after placing the first I get a correct print of "Bleh 1".

As for the second issue, it should be fixed when the server(s) next restart.


RE: Starfal bug x2 ! - Yuri6037 - 21-10-2015

Thank you.

Also I have a question, not related to that. Anyways, I'm planing to make my own door button using a starfall emitter with 3D2D screen. I already succeeded rendering the 3D2D screen, however I'm facing some issues when trying to get the cursor position relative to this 3D2D screen in air.

Normaly on GMod you could do it using util.IntersectRayWithPlane. Is there any way you can add this function ?


RE: Starfal bug x2 ! - Garbius - 21-10-2015

That is easy to do with a Line-Plane intersection calculation. I did it a long time ago and it works really well.

I've also heard that T-17 is creating a framework for touch input on emitters using my code. Ask him if you want to walk the easy street.


RE: Starfal bug x2 ! - TheOneAndOnlyTee - 23-10-2015

This is what Garbius mentioned and it's more of a port to Link's screen button framework that most/some are currently using.

Although i believe his issue is now fixed.