24 posts
Posted 30 December 2013 - 09:42 PM
This is the thread I will upload all future programs to. Currently I have 2:
JyNet API:
Spoiler
JyNet is an API for sending messages over modems. The benefit of using this over the modem or rednet API is that this allows for multiple "frequencies" inside of a single channel, and also sends the ID in the reply channel (you can give it a specific ID but it is recommended that you use os.getComputerID(). It also allows you to change the default channel of JyNet without editing any code. I will be updating this in the future to include more content, and also writing some documentations. most of the methods should be fairly straightforward though.JyNet Repeater
Spoiler
This is a simple program that will basically just repeat any message it gets to all of the other modems. There is a cooldown time of .01 seconds to prevent a weird bug where it receives its own messages and creates an infinite loop.Downloads:
Spoiler
JyNet API: http://pastebin.com/1CzvB0mS
JyNet Repeater: http://pastebin.com/QRF2Wc9J
128 posts
Location
Poland
Posted 31 December 2013 - 07:12 AM
I don't think so JyNet Repeater will work, probably JyNet API, also wouldn't work.
24 posts
Posted 31 December 2013 - 07:45 AM
I don't think so JyNet Repeater will work, probably JyNet API, also wouldn't work.
I wouldn't be surprised if there were some bugs but it worked pretty well when I was testing. Please report bugs if you find them though.
128 posts
Location
Poland
Posted 31 December 2013 - 10:59 AM
I don't think so rs.getSides()[1], will work …
24 posts
Posted 31 December 2013 - 02:31 PM
I don't think so rs.getSides()[1], will work …
It does work actually, like I said I tested this quite a bit. rs.getSides() returns an array so I am just calling the first element of it.
128 posts
Location
Poland
Posted 31 December 2013 - 06:26 PM
LoL
1114 posts
Location
UK
Posted 01 January 2014 - 08:06 AM
128 posts
Location
Poland
Posted 01 January 2014 - 08:58 AM
Edited on 01 January 2014 - 07:58 AM
175 posts
Posted 03 January 2014 - 04:29 AM
If you resort to a "cooldown", what happens if you make a largish ring of repeaters? :P/>