451 posts
Location
The left part of this post
Posted 11 February 2013 - 09:40 AM
master computer with modem on back and monitor on top.
local modem1 = peripheral.wrap("back")
monitor = peripheral.wrap("top")
term.redirect(monitor)
while true do
local messageArguments = {os.pullEvent("modem_message")}
for i,v in pairs(messageArguments) do
print(v)
end
end
computers that receive the messages (needs to be configured):
sides = {"top", "back", "left", "right"}
channelfrom1 = 2
channelto1 = 129
channelfrom4 = 130
channelto4 = 258
channelfrom3 = 259
channelto3 = 387
channelfrom2 = 388
channelto2 = 516
local modem1 = peripheral.wrap("top")
local modem2 = peripheral.wrap("back")
local modem3 = peripheral.wrap("left")
local modem4 = peripheral.wrap("right")
local modemsend = peripheral.wrap("bottom")
for i=channelfrom1, channelto1 do
modem1.open(i)
end
for i=channelfrom2, channelto2 do
modem2.open(i)
end
for i=channelfrom3, channelto3 do
modem3.open(i)
end
for i=channelfrom4, channelto4 do
modem4.open(i)
end
modemsend.open(1)
while true do
local messageArguments = {os.pullEvent("modem_message")}
for i,v in pairs(messageArguments) do
modem.transmit(1, 1, v)
end
end
249 posts
Location
In the universe
Posted 11 February 2013 - 10:13 AM
Is this a hack? Is more kind of a repeater…
451 posts
Location
The left part of this post
Posted 11 February 2013 - 03:46 PM
Is this a hack? Is more kind of a repeater…
It search with multiples computers on every chanel and reply then to channel 1 so the master computer can display them, is more and interceptor
249 posts
Location
In the universe
Posted 11 February 2013 - 04:18 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
515 posts
Location
Australia
Posted 11 February 2013 - 04:39 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop:
modemsend.open(1)also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?
1619 posts
Posted 11 February 2013 - 05:06 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop:
modemsend.open(1)also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?
He's talking about the master computer (first code block)
515 posts
Location
Australia
Posted 11 February 2013 - 06:44 PM
Well, so many holes in it… The most important is in the main computer, you didn't open channel 1
He did open, near the end right before the while loop:
modemsend.open(1)also doesn't normal rednet commands work too in 1.5? Like rednet.send? Does this intercept rednet.send too?
He's talking about the master computer (first code block)
Ahhh right ok, I see.