![]() |
| |||||||
| Wiremod Addons Have you created a wiremod addon? Post it here. |
![]() |
| | LinkBack (2) | Thread Tools | Display Modes |
| |
#1 (permalink)
| ||||||||
| UWSVN Contributor ![]()
Join Date: Sep 2008
Posts: 35
![]() | 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...
}
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 ) Last edited by AlgorithmX2; 09-15-2008 at 11:15 AM. Reason: External Download Link Added | ||||||||
| | |
| | #3 (permalink) | |||||||||
| Wire Amateur ![]()
|
__________________ Quote:
████████ ████████ ████████ | |||||||||
| | |
| | #4 (permalink) | ||||||||
| UWSVN Contributor ![]()
Join Date: Sep 2008
Posts: 35
![]() | 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 (permalink) | ||||||||||
| Flux's Assistant ![]() ![]() ![]()
| Permission to UWSVN?
__________________ Quote:
Quote:
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 | ||||||||||
| | |
| | #7 (permalink) | ||||||||
| Wire Amateur ![]()
Join Date: Apr 2008
Posts: 55
![]() | 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 | ||||||||
| | |
| | #9 (permalink) | ||||||||||
| Flux's Assistant ![]() ![]() ![]()
| UWSVNed for those who didn't know
__________________ Quote:
Quote:
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 | ||||||||||
| | |
![]() |
| Bookmarks |
| Tags |
| addon, mod, wireless |
| Thread Tools | |
| Display Modes | |
| |
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 |