![]() |
|
[MINOR BUG] E2 Cant get Wirelink from SF - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: [MINOR BUG] E2 Cant get Wirelink from SF (/thread-1669.html) |
[MINOR BUG] E2 Cant get Wirelink from SF - Nova Viper Dwagon - 25-03-2016 So this is a minor bug, but when I was converting my holographic turret over to SF and after 6h of painstaking errors I quickly relies E2's wirelink does NOT work with SF I am not sure if this can be fixed but its a minor bug, I only noticed it as my targeting system is e2 and im slowly converting to SF when i learn more and it stops being stuborn RE: [MINOR BUG] E2 Cant get Wirelink from SF - Person8880 - 25-03-2016 Works for me. Expression 2 code: Code: @name E2 wirelink test
@inputs Cake:wirelink
print( Cake[ "Cake", number ] )
On wiring the wirelink from the E2 to the SF chip, I get a print of 9001. RE: [MINOR BUG] E2 Cant get Wirelink from SF - Nova Viper Dwagon - 31-03-2016 Basicly: I put down holo turret Starfall I get my targeting E2 to pick up on it and wirelink it automaticly It works, on the debugger tool it shows its getting an input But turret does not move untill i manualy wire the turrets Ports to the e2 chip without useing wirelink It appears E2 Cannot update SF but SF can update an E2
Connected to the starfall
RE: [MINOR BUG] E2 Cant get Wirelink from SF - TheOneAndOnlyTee - 31-03-2016 lol it is setting it but you're only checking once in the SF RE: [MINOR BUG] E2 Cant get Wirelink from SF - Nova Viper Dwagon - 01-04-2016 (31-03-2016, 11:55 PM)T-17 Wrote: lol it is setting it but you're only checking once in the SF Kosmos found the issue I am talking about even his puzzled "[Admin] [THE BOX EMPIRE] Kosmos: writing to a wirelink does not change inputs [Admin] [THE BOX EMPIRE] Kosmos: it merely fires event hooks in the target" Kosmos knows Not really somthing that can be fixed RE: [MINOR BUG] E2 Cant get Wirelink from SF - TheOneAndOnlyTee - 01-04-2016 Code: wire.createInputs( { "Cake" }, { "normal" } )
wire.createOutputs( { "GotCake" }, { "normal" } )
timer.create("checkWirelink",1,0,function()
if wire.ports.Cake == 9001 then
wire.ports.GotCake = 1
print("Cookies would've been better but this cake will do.")
timer.remove("checkWirelink")
end
end)RE: [MINOR BUG] E2 Cant get Wirelink from SF - Person8880 - 01-04-2016 The wire.ports table only provides values for inputs that have been connected. Since wirelinks are a slight hack in Wiremod, and don't actually connect anything, wire.ports will not be able to provide values if they have been set by a wirelink. The input hook is the only way you can detect incoming changes from a wirelink. RE: [MINOR BUG] E2 Cant get Wirelink from SF - Nova Viper Dwagon - 01-04-2016 (01-04-2016, 11:55 AM)Person8880 Wrote: The wire.ports table only provides values for inputs that have been connected. Since wirelinks are a slight hack in Wiremod, and don't actually connect anything, wire.ports will not be able to provide values if they have been set by a wirelink. Yeah kosmos figerd it out last night, I was starting to think SF would not take orders from an E2 it only gives them XD Any way this is not a big issue as im slowly converting my stuff to SF but its good to know i have backwards compatibility if i need to debug issues in the future. RE: [MINOR BUG] E2 Cant get Wirelink from SF - Red The Blue Color - 01-04-2016 (01-04-2016, 04:26 PM)Nova Viper Dwagon Wrote:Starfall takes orders from noone...(01-04-2016, 11:55 AM)Person8880 Wrote: The wire.ports table only provides values for inputs that have been connected. Since wirelinks are a slight hack in Wiremod, and don't actually connect anything, wire.ports will not be able to provide values if they have been set by a wirelink. |