+ Reply to Thread
Results 1 to 6 of 6

Thread: Wirelinks in exp2

  1. #1
    Wire Sofaking
    Hitman271 has a spectacular aura about Hitman271 has a spectacular aura about Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    705

    Default Wirelinks in exp2

    How does one appropriately use wirelinks?

    And for that matter, highspeed support with exp2.

    A connection between exp2 and a cpu system would yield very great things....
    Quote Originally Posted by Anticept View Post
    This is not some place where you can toss your dick around and expect people to suck it.
    Community Gpu Thread. Post Yours!

    Bouncy Ball

  2. #2
    Official Bastard of Wire



    Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,561

    Default Re: Wirelinks in exp2

    Quote Originally Posted by Egate2 wiki
    Wirelinks are an alternative to normal wires that offer a number of advantages. Any number of inputs or outputs on a component can be manipulated with one Wirelink, and you can also use it to retrieve the entity of a wirelinked component. Since all Wirelinks are capable of two-way communication, wirelinks are not clear-cut inputs or outputs. As such, to avoid ambiguity wirelinks which the expression should be able to manipulate are always declared in the @inputs of the expression. To connect this input to another component, you must use the Wirelink tool on the component to create a new output on it of the type Wirelink, then wire the input to the output as normal.
    That.

    Also this:
    XWL:isHiSpeed() N Returns true if the linked component is high-speed capable.

    makes me think that highspeed communication is allowed.


    I Require More Minions! Join us on the IRC and the /sekret/!
    List of Reasons to idle on the IRC: Wire QDB

  3. #3
    Wire Sofaking
    Hitman271 has a spectacular aura about Hitman271 has a spectacular aura about Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    705

    Default Re: Wirelinks in exp2

    Quote Originally Posted by Jat Goodwin View Post
    That.

    Also this:
    XWL:isHiSpeed() N Returns true if the linked component is high-speed capable.

    makes me think that highspeed communication is allowed.
    My question was how to use them.

    I read the wiki entry and went into gmod all happy, then was hit by the console spam.

    So I thought someone would iterate howto use it correctly a moi.
    Quote Originally Posted by Anticept View Post
    This is not some place where you can toss your dick around and expect people to suck it.
    Community Gpu Thread. Post Yours!

    Bouncy Ball

  4. #4
    Master of Mars


    Magos Mechanicus will become famous soon enough Magos Mechanicus will become famous soon enough Magos Mechanicus's Avatar
    Join Date
    May 2008
    Posts
    834

    Default Re: Wirelinks in exp2

    Basically, you find your component, for argument's sake let's say a vector thruster. You spawn it, place it, do whatever you need, then you take out the Wirelink tool and use leftclick on the thruster. It now has an output of [WIRELINK] type. Now you write an expression.
    Code:
    @inputs Thruster:wirelink Targetpos:vector
    @persist L
    Curpos=Thruster:entity():pos()
    Dir=Targetpos-Curpos
    Thruster:setNumber("X",Dir:x())
    Thruster:setNumber("Y",Dir:y())
    Thruster:setNumber("Z",Dir:z())
    L=Dir:length()
    Thruster:setNumber("Mul",L+5*$L)
    interval(20)
    
    This expression now has an input of [WIRELINK] type. Take your wiring tool of choice, and wire the expression's input to the thruster's output. The thruster should now try to move itself to the directed position. You can also retrieve ([NORMAL] type) outputs with XWL:number(), but vector thrusters don't have outputs. Switching to a hydraulic you can for instance use Hydraulic:number("Length") and it will get the output Length.
    Haven't tested the hi-speed functions, though.

    PS:Some more examples starting here.
    Last edited by Magos Mechanicus; 11-23-2008 at 03:08 AM.
    I can wire anything directly into anything! I'm the Professor!
    -Professor Hubert Farnsworth

  5. #5
    Official Bastard of Wire



    Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin has much to be proud of Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,561

    Default Re: Wirelinks in exp2

    The wirelinks are borked. I tried them, they work expression side, just the tool doesn't work.


    I Require More Minions! Join us on the IRC and the /sekret/!
    List of Reasons to idle on the IRC: Wire QDB

  6. #6
    Wire Sofaking
    Hitman271 has a spectacular aura about Hitman271 has a spectacular aura about Hitman271's Avatar
    Join Date
    Feb 2008
    Location
    Why? You looking for somebody?
    Posts
    705

    Default Re: Wirelinks in exp2

    Thanks Magos.
    Quote Originally Posted by Anticept View Post
    This is not some place where you can toss your dick around and expect people to suck it.
    Community Gpu Thread. Post Yours!

    Bouncy Ball

+ Reply to Thread

Similar Threads

  1. Calculations and Exp2 question
    By jayg20769 in forum Technical Support
    Replies: 9
    Last Post: 02-22-2009, 02:13 PM
  2. Where I have a mistake? [Exp2]
    By Klask in forum Technical Support
    Replies: 4
    Last Post: 02-21-2009, 04:58 PM
  3. need some help with EXP2
    By KustoM in forum Technical Support
    Replies: 3
    Last Post: 12-10-2008, 06:19 PM
  4. Questions about Exp2 (Functionality)
    By Pyro-Fire in forum Technical Support
    Replies: 1
    Last Post: 11-09-2008, 01:18 PM
  5. Expression 2, wirelinks and vectors
    By Captain Maim in forum Technical Support
    Replies: 3
    Last Post: 11-05-2008, 02:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots