Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 2 3 4 5 … 8 Next »
[MINOR BUG] E2 Cant get Wirelink from SF
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
[MINOR BUG] E2 Cant get Wirelink from SF
25-03-2016, 02:14 AM,
#1
Nova Viper Dwagon Away
The Pink Furball
****
Posts: 348
Threads: 36
Joined: Sep 2013
[MINOR BUG] E2 Cant get Wirelink from SF
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

I'm fluffy and pink. Get over it!
Find
Reply
25-03-2016, 05:20 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
Works for me.

Expression 2 code:
Code:
@name E2 wirelink test @inputs Cake:wirelink print( Cake[ "Cake", number ] )
Starfall code:
wire.createOutputs( { "Cake" }, { "normal" } )
wire.ports.Cake = 9001

On wiring the wirelink from the E2 to the SF chip, I get a print of 9001.
Find
Reply
31-03-2016, 11:44 PM, (This post was last modified: 31-03-2016, 11:51 PM by Nova Viper Dwagon.)
#3
Nova Viper Dwagon Away
The Pink Furball
****
Posts: 348
Threads: 36
Joined: Sep 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
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


@inputs Cake:wirelink
interval(100)
Cake["Cake",number] = 9001)
Connected to the starfall
    wire.createInputs( { "Cake" }, { "normal" } )
wire.createOutputs( { "GotCake" }, { "normal" } )

if wire.ports.Cake == 9001 then wire.ports.GotCake = 1
end

I'm fluffy and pink. Get over it!
Find
Reply
31-03-2016, 11:55 PM,
#4
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
lol it is setting it but you're only checking once in the SF

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
01-04-2016, 12:24 AM, (This post was last modified: 01-04-2016, 12:42 AM by Nova Viper Dwagon.)
#5
Nova Viper Dwagon Away
The Pink Furball
****
Posts: 348
Threads: 36
Joined: Sep 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
(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

I'm fluffy and pink. Get over it!
Find
Reply
01-04-2016, 12:29 AM,
#6
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
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)
So this probably didn't work either i guess

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
01-04-2016, 11:55 AM,
#7
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
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.
Find
Reply
01-04-2016, 04:26 PM,
#8
Nova Viper Dwagon Away
The Pink Furball
****
Posts: 348
Threads: 36
Joined: Sep 2013
RE: [MINOR BUG] E2 Cant get Wirelink from SF
(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.

The input hook is the only way you can detect incoming changes from 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.

I'm fluffy and pink. Get over it!
Find
Reply
01-04-2016, 05:59 PM, (This post was last modified: 01-04-2016, 06:00 PM by Red The Blue Color.)
#9
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: [MINOR BUG] E2 Cant get Wirelink from SF
(01-04-2016, 04:26 PM)Nova Viper Dwagon Wrote:
(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.

The input hook is the only way you can detect incoming changes from 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.
Starfall takes orders from noone...

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.