+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 10 of 14

Thread: Wire - Wireless

  1. #1
    UWSVN Contributor AlgorithmX2 is on a distinguished road AlgorithmX2's Avatar
    Join Date
    Sep 2008
    Posts
    35

    Post Wire - Wireless

    Hello Everyone, I didn't see anything quite similar to this floating around, so I spent a few hours and threw this together, its my first gmod / wire, Mod I've made so hopefully I didn't screw up anything.

    The Mod Contains two new Entities and the Tools to create them.

    Wireless Hub
    The Wireless Hub acts as a Wireless router, it automatically connects to Receivers and can send and receive data from them. The Hub can connect to any number of Receivers.

    Wireless Receiver
    The Wireless Receiver automatically connects to the nearest Hub and can send and receive data with it.

    Both Entities Maintain an Internal 'buffer' of data that has been received and acts as a Queue which you can pop and view the first element of.

    here is some simple logic to see how to read from the queues on the Devices.

    Code:
    While ( Count > 0 )
    {
      Out=Message;
      Pop();
      ...Message Processing...
    }
    
    Shared Inputs
    Key - This lets you limit which Hubs can communicate with Which Receivers, a Hub with a Key of 1 cannot connect to a Receiver with a Key of 2, 0 is the default.
    Reset - When True will trigger a disconnect, this is useful if you need to connect to a different Hub, or reset the connections with the Receivers.
    Pop - Lets you Pop the first value off the Input Queue.
    Message - Lets you specify the Value are are preparing to Send.
    Send - Sends the Current 'Message' to the Other end of the connection.

    Hub Input
    Next - This cycles to the next connected Receiver.

    Shared Outputs
    Connected - 1 or 0
    Count - Number of Messages in Queue
    Message - Current Message on Front of Queue

    Hub Outputs
    Clients - The Number of Clients currently connected.
    ID - Unique ID that identifies a specific Connection, will not change unless connection is lost with this receiver.

    See thumbnails for a screen shot of a Wireless Keyboard, I made as one of my tests.

    This should be usable to create anything from a simple system with 1 client to a much more advanced system, where a server can manage many clients all connecting to a central hub.

    I've tested in in Single-Player, Multi-Player and with the Adv-Duplicator and I haven't seen any issues.

    Let me know what you think, and/or if you find any problems.

    Heres an External Download Link Too, ( also available in the UWSVN )
    Attached Images
    Attached Files
    Last edited by AlgorithmX2; 09-15-2008 at 11:15 AM. Reason: External Download Link Added

  2. #2
    Official Bastard of Wire



    Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin is a splendid one to behold Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    1,188

    Default Re: Wire - Wireless

    Yay! This is sweet, it should be in the UWSVN!


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

  3. #3
    Wirererer Wodden is on a distinguished road Wodden's Avatar
    Join Date
    Sep 2007
    Location
    Leipzig, Germany
    Posts
    195

    Default Re: Wire - Wireless

    Quote Originally Posted by Jat Goodwin View Post
    Yay! This is sweet, it should be in the UWSVN!
    /agree


  4. #4
    UWSVN Contributor AlgorithmX2 is on a distinguished road AlgorithmX2's Avatar
    Join Date
    Sep 2008
    Posts
    35

    Default Re: Wire - Wireless

    Thanks for the positive feed back.

    Has anyone made anything cool with it?

    I've been messing around with my 'field generators' that I just posted, so I have not really had time to use this one that much yet.

  5. #5
    Faron's Assistant


    Anticept will become famous soon enough Anticept will become famous soon enough Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    845

    Default Re: Wire - Wireless

    Permission to UWSVN?
    Signature.

  6. #6
    UWSVN Contributor AlgorithmX2 is on a distinguished road AlgorithmX2's Avatar
    Join Date
    Sep 2008
    Posts
    35

    Default Re: Wire - Wireless

    Sure, UWSVN it.

  7. #7
    Wire Amateur Syncaidius is on a distinguished road Syncaidius's Avatar
    Join Date
    Apr 2008
    Posts
    57

    Default Re: Wire - Wireless

    Nice work Algorithm. I've had a quick mess about with it and its really really nice.

    EDIT:
    Thanks Anticept for putting in UWSVN also.
    Last edited by Syncaidius; 09-14-2008 at 04:14 PM. Reason: Thanked anticept :p

  8. #8
    <3
    IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,047

    Default Re: Wire - Wireless

    Hurray! I've always wanted something like this! Almost like the Wire Socket, but smaller and Cordless!
    "It's my favourite country song. And I hate it."

  9. #9
    Faron's Assistant


    Anticept will become famous soon enough Anticept will become famous soon enough Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    845

    Default Re: Wire - Wireless

    UWSVNed for those who didn't know
    Signature.

  10. #10
    ebs
    ebs is offline
    Wire Amateur ebs is on a distinguished road ebs's Avatar
    Join Date
    Apr 2007
    Location
    Denmark
    Posts
    55

    Default Re: Wire - Wireless

    You should add hi-speed support for this.

+ Reply to Thread
Page 1 of 2
1 2 LastLast

LinkBacks (?)

  1. 4 Weeks Ago, 11:01 PM
  2. 01-27-2010, 12:11 PM

Similar Threads

  1. Wire - Wireless links aren't working for me anymore!
    By sk8erace1 in forum Help & Support
    Replies: 6
    Last Post: 02-13-2009, 03:45 AM
  2. Wireless Networking
    By Chezzestix in forum CPU Tutorials & Programs
    Replies: 4
    Last Post: 07-06-2007, 08:01 AM

Tags for this Thread

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