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

Thread: Wire - Wireless

  1. #1
    Wire Amateur 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 Thumbnails Attached Thumbnails Wire - Wireless-wireless_keyboard.jpg  
    Attached Files Attached Files
    Last edited by AlgorithmX2; 09-15-2008 at 12:15 PM. Reason: External Download Link Added

  2. #2
    Official Bastard of Wire Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,771

    Default Re: Wire - Wireless

    Yay! This is sweet, it should be in the UWSVN!
    Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ

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

  3. #3
    Wire Sofaking Wodden's Avatar
    Join Date
    Sep 2007
    Location
    location.sh &> /dev/null
    Posts
    446

    Default Re: Wire - Wireless

    Quote Originally Posted by Jat Goodwin View Post
    Yay! This is sweet, it should be in the UWSVN!
    /agree :agree:
    “Saying Java is good because it works on all operating systems is like saying anal sex is good because it works on all genders.”

  4. #4
    Wire Amateur 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
    Have plane will travel Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,503

    Default Re: Wire - Wireless

    Permission to UWSVN?
    "You can only tie the record for flying low."

  6. #6
    Wire Amateur AlgorithmX2's Avatar
    Join Date
    Sep 2008
    Posts
    35

    Default Re: Wire - Wireless

    Sure, UWSVN it.

  7. #7
    Wire Amateur Syncaidius's Avatar
    Join Date
    Apr 2008
    Posts
    55

    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 05:14 PM. Reason: Thanked anticept :p

  8. #8
    Wire Sofaking IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,640

    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
    Have plane will travel Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,503

    Default Re: Wire - Wireless

    UWSVNed for those who didn't know
    "You can only tie the record for flying low."

  10. #10
    ebs
    ebs is offline
    Wire Amateur ebs's Avatar
    Join Date
    Apr 2007
    Location
    Denmark
    Posts
    61

    Default Re: Wire - Wireless

    You should add hi-speed support for this.

+ Reply to Thread
Page 1 of 2 12 LastLast

LinkBacks (?)

  1. 02-14-2010, 12:01 AM
  2. 01-27-2010, 01:11 PM

Similar Threads

  1. Wire - Wireless links aren't working for me anymore!
    By sk8erace1 in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 02-13-2009, 04:45 AM
  2. Wireless Networking
    By Chezzestix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 4
    Last Post: 07-06-2007, 09: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
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots