Cloudy, on 13 February 2013 - 01:16 AM, said:
Peripheral cables will be able to have more than one peripheral connected to them per side. Allowing computers to activate more than six.
Posted 13 February 2013 - 04:13 PM
ChunLing, on 12 February 2013 - 10:48 PM, said:
Posted 13 February 2013 - 09:13 PM
Posted 13 February 2013 - 10:00 PM
ChunLing, on 13 February 2013 - 09:13 PM, said:
-- this is polling
while true do
if stuffHasHappenedYet() then
respondToStuff()
end
sleep(1)
end
while true do
if fs.exists("disk/sharedDataFile") then
processRequest()
end
sleep(1)
end
-- this is not polling
while true do
waitForStuffToHappen()
processStuff()
end
while true do
local sender, message = rednet.receive()
processMessage(sender, message)
end
Quote
Posted 14 February 2013 - 12:32 AM
Posted 14 February 2013 - 12:53 AM
ChunLing, on 14 February 2013 - 12:32 AM, said:
ChunLing, on 14 February 2013 - 12:32 AM, said:
ChunLing, on 14 February 2013 - 12:32 AM, said:
Posted 14 February 2013 - 12:59 PM
Posted 14 February 2013 - 01:16 PM
--hold recieved rednet for main thread to process at liesure
local rednetQueue={}
local function rednetListener()
while true do
local message = {rednet.receive()}
rednetQueue[#rednetQueue+1]=message
end
end
local function mainRoutine()
while true do
--do turtle stuff
--just an example to demonstrate, this coroutine won't get rednet messages during the turn
turtle.turnLeft()
--check for rednet messages
while #rednetQueue>0 do
local nextMessage=table.remove(rednetQueue,1)
--handle the message
end
end
end
parallel.waitForAny(rednetListener, mainRoutine)
Posted 14 February 2013 - 02:17 PM
Posted 14 February 2013 - 02:55 PM
Posted 14 February 2013 - 05:41 PM
OmegaVest, on 14 February 2013 - 02:17 PM, said:
OmegaVest, on 14 February 2013 - 02:17 PM, said:
OmegaVest, on 14 February 2013 - 02:17 PM, said:
OmegaVest, on 14 February 2013 - 02:17 PM, said:
CoolisTheName007, on 14 February 2013 - 02:55 PM, said:
ChunLing, on 14 February 2013 - 12:59 PM, said:
ChunLing, on 14 February 2013 - 12:59 PM, said:
ChunLing, on 14 February 2013 - 12:59 PM, said:
Posted 14 February 2013 - 11:26 PM
Posted 15 February 2013 - 04:26 AM
immibis, on 14 February 2013 - 05:41 PM, said:
Posted 15 February 2013 - 04:59 AM
CoolisTheName007, on 15 February 2013 - 04:26 AM, said:
Posted 15 February 2013 - 06:16 AM
Sebra, on 15 February 2013 - 04:59 AM, said:
Posted 15 February 2013 - 06:42 AM
Posted 15 February 2013 - 11:50 PM
Posted 15 February 2013 - 11:56 PM
Pinkishu, on 15 February 2013 - 11:50 PM, said:
Posted 16 February 2013 - 12:00 AM
Posted 16 February 2013 - 02:29 AM
0 members, 2 guests, 0 anonymous users