Wiremod Forums  

Go Back   Wiremod Forums > Wiremod Skills > Wiremod Addons

Wiremod Addons Have you created a wiremod addon? Post it here.

Reply
 
LinkBack (2) Thread Tools Display Modes
Old 09-11-2008   2 links from elsewhere to this Post. Click to view. #1 (permalink)
UWSVN Contributor
Points: 942, Level: 16 Points: 942, Level: 16 Points: 942, Level: 16
Activity: 0% Activity: 0% Activity: 0%
 
AlgorithmX2's Avatar
 
Join Date: Sep 2008
Posts: 35
AlgorithmX2 is on a distinguished road
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
File Type: jpg Wireless_Keyboard.jpg (371.9 KB, 171 views)
Attached Files
File Type: rar wire_wireless.rar (6.9 KB, 10 views)

Last edited by AlgorithmX2; 09-15-2008 at 11:15 AM. Reason: External Download Link Added
AlgorithmX2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-11-2008   #2 (permalink)
Official Bastard of Wire


Points: 4,146, Level: 40 Points: 4,146, Level: 40 Points: 4,146, Level: 40
Activity: 9% Activity: 9% Activity: 9%
 
Jat Goodwin's Avatar
 
Join Date: Aug 2008
Location: Las Vegas
Posts: 854
Jat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to all
Send a message via AIM to Jat Goodwin Send a message via Skype™ to Jat Goodwin
Default Re: Wire - Wireless

Yay! This is sweet, it should be in the UWSVN!
__________________
Jat Goodwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-12-2008   #3 (permalink)
Wire Amateur
Points: 1,298, Level: 19 Points: 1,298, Level: 19 Points: 1,298, Level: 19
Activity: 0% Activity: 0% Activity: 0%
 
Wodden's Avatar
 
Join Date: Sep 2007
Location: Leipzig, Germany
Posts: 59
Wodden is on a distinguished road
Send a message via ICQ to Wodden Send a message via MSN to Wodden Send a message via Skype™ to Wodden
Default Re: Wire - Wireless

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

Quote:
Originally Posted by l3ulletje View Post
Jeez you sure had fun with colours and fonts and underlines and bolds and aaarrgh eyes... the pain! the pain!
My IQ is 117
████████
████████
████
███
Wodden is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-14-2008   #4 (permalink)
UWSVN Contributor
Points: 942, Level: 16 Points: 942, Level: 16 Points: 942, Level: 16
Activity: 0% Activity: 0% Activity: 0%
 
AlgorithmX2's Avatar
 
Join Date: Sep 2008
Posts: 35
AlgorithmX2 is on a distinguished road
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.
AlgorithmX2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-14-2008   #5 (permalink)
Flux's Assistant


Points: 3,791, Level: 38 Points: 3,791, Level: 38 Points: 3,791, Level: 38
Activity: 6% Activity: 6% Activity: 6%
 
Anticept's Avatar
 
Join Date: Feb 2008
Location: Ohio, USA
Posts: 448
Anticept will become famous soon enough
Send a message via AIM to Anticept Send a message via Yahoo to Anticept Send a message via Skype™ to Anticept
Default Re: Wire - Wireless

Permission to UWSVN?
__________________
Quote:
Originally Posted by tad2020
TAD2ô2ô says: on the logical scale on 1 to 10
TAD2ô2ô says: it was a basket of napalm flavored kittens
Quote:
Originally Posted by tad2020
<@TAD2020> and flux has a kryptonite penis! my asbestos pants is no match to that monster!
Anticept: Flux, fix the attachments :P
Flux: wat
Flux: whats wrong with the attachments
Flux: WHY CANT YOU PEOPLE JUST POST A THREAD OR PM ME WHEN SOMETHING GOES WRONG
Flux: I MIGHT CURSE YOU OUT BUT AT LEAST I KNOW ABOUT IT
Anticept: Posting
Anticept: Flux, PAY ATTENTION TO YOUR OWN DAMN FORUM. http://www.wiremod.com/5142-attachments-help.html
Flux: ERAUHFSDHFUS
Anticept is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-14-2008   #6 (permalink)
UWSVN Contributor
Points: 942, Level: 16 Points: 942, Level: 16 Points: 942, Level: 16
Activity: 0% Activity: 0% Activity: 0%
 
AlgorithmX2's Avatar
 
Join Date: Sep 2008
Posts: 35
AlgorithmX2 is on a distinguished road
Default Re: Wire - Wireless

Sure, UWSVN it.
AlgorithmX2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-14-2008   #7 (permalink)
Wire Amateur
Points: 872, Level: 15 Points: 872, Level: 15 Points: 872, Level: 15
Activity: 2% Activity: 2% Activity: 2%
 
Syncaidius's Avatar
 
Join Date: Apr 2008
Posts: 55
Syncaidius is on a distinguished road
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
Syncaidius is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-14-2008   #8 (permalink)
WireriW GururuG

Points: 3,984, Level: 40 Points: 3,984, Level: 40 Points: 3,984, Level: 40
Activity: 29% Activity: 29% Activity: 29%
 
IEF015's Avatar
 
Join Date: Feb 2008
Location: London, ON (Canada, eh?)
Posts: 955
IEF015 has a spectacular aura aboutIEF015 has a spectacular aura about
Send a message via AIM to IEF015 Send a message via Skype™ to IEF015
Default Re: Wire - Wireless

Hurray! I've always wanted something like this! Almost like the Wire Socket, but smaller and Cordless!
__________________
Signature:
"It's my favourite country song. And I hate it."
WIREMOD WILL NOT WORK ON A PIRATED GMOD!

IEF015 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-15-2008   #9 (permalink)
Flux's Assistant


Points: 3,791, Level: 38 Points: 3,791, Level: 38 Points: 3,791, Level: 38
Activity: 6% Activity: 6% Activity: 6%
 
Anticept's Avatar
 
Join Date: Feb 2008
Location: Ohio, USA
Posts: 448
Anticept will become famous soon enough
Send a message via AIM to Anticept Send a message via Yahoo to Anticept Send a message via Skype™ to Anticept
Default Re: Wire - Wireless

UWSVNed for those who didn't know
__________________
Quote:
Originally Posted by tad2020
TAD2ô2ô says: on the logical scale on 1 to 10
TAD2ô2ô says: it was a basket of napalm flavored kittens
Quote:
Originally Posted by tad2020
<@TAD2020> and flux has a kryptonite penis! my asbestos pants is no match to that monster!
Anticept: Flux, fix the attachments :P
Flux: wat
Flux: whats wrong with the attachments
Flux: WHY CANT YOU PEOPLE JUST POST A THREAD OR PM ME WHEN SOMETHING GOES WRONG
Flux: I MIGHT CURSE YOU OUT BUT AT LEAST I KNOW ABOUT IT
Anticept: Posting
Anticept: Flux, PAY ATTENTION TO YOUR OWN DAMN FORUM. http://www.wiremod.com/5142-attachments-help.html
Flux: ERAUHFSDHFUS
Anticept is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-01-2008   #10 (permalink)
ebs
Wire Amateur
Points: 1,597, Level: 22 Points: 1,597, Level: 22 Points: 1,597, Level: 22
Activity: 0% Activity: 0% Activity: 0%
 
ebs's Avatar
 
Join Date: Apr 2007
Location: Denmark
Posts: 55
ebs is on a distinguished road
Default Re: Wire - Wireless

You should add hi-speed support for this.
ebs is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
addon, mod, wireless

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://www.wiremod.com/forum/wiremod-addons/6471-wire-wireless.html
Posted By For Type Date
User:AlgorithmX2 - GMod Wiki This thread Refback 12-22-2008 08:29 AM
Wire - Wireless Download! This thread Refback 09-11-2008 11:36 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Networking Chezzestix CPU Tutorials & Programs 4 07-06-2007 08:01 AM


All times are GMT -7. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0
Ad Management plugin by RedTyger
adjunct
adjunct
adjunct
adjunct
gilt
gilt
gilt
gilt
gallery
gallery
gallery
gallery