2 posts
Posted 29 August 2012 - 01:14 PM
Hi!
Would anyone be able to explain to me how this revolving light tower works in this video..
(Skip to 6:40)
[media]
http://www.youtube.com/watch?v=Py11cgh_r0M&feature=plcp[/media]
Thanks! :)/>/>
510 posts
Posted 29 August 2012 - 01:25 PM
I'd guess it's a rp sequencer in the middle. No big magic indeed.
2 posts
Posted 29 August 2012 - 01:32 PM
I'd guess it's a rp sequencer in the middle. No big magic indeed.
What exactly is an RP Sequencer? I'm new to ComputerCraft =/
16 posts
Location
somewhere in France
Posted 29 August 2012 - 02:24 PM
A RP sequencer is a redpower item.
"Alternates between each of four sides in sequence at a user-specified speed. Since it is synchronized to world time, it also makes a handy clock - simply set it to 300 seconds."Extract of redpower unoficial recipe list: http://nemesis.evalq...r2/recipes.htmldownload redpower here :
http://www.eloraam.com/
1548 posts
Location
That dark shadow under your bed...
Posted 29 August 2012 - 02:30 PM
you can just use the code:
local function loop(delay)
while true do
local sides={'left','back','right','front'}
for i=1,4 do
rs.setOutput(sides[i],true)
sleep(delay)
rs.setOutput(sides[i],false)
end
end
end
Then you call the function with the delay (in seconds) between each light change eg:
loop(0.25)
give it a try
6 posts
Posted 04 September 2012 - 11:55 PM
you can just use the code:
local function loop(delay)
while true do
local sides={'left','back','right','front'}
for i=1,4 do
rs.setOutput(sides[i],true)
sleep(delay)
rs.setOutput(sides[i],false)
end
end
end
Then you call the function with the delay (in seconds) between each light change eg:
loop(0.25)
give it a try
How do I code this in? I have transmitter chips and an RP2 chip in my sensor, it's already registered, how do I input the code?
1548 posts
Location
That dark shadow under your bed...
Posted 05 September 2012 - 07:02 AM
you enter it into a computer as the startup file….
start the computer up, type in 'edit startup' and type it is, then press:
ctrl
s
ctrl
e
6 posts
Posted 05 September 2012 - 11:04 PM
you enter it into a computer as the startup file….
start the computer up, type in 'edit startup' and type it is, then press:
ctrl
s
ctrl
e
Got it :D/>/>, Thanks man. It works really well.
839 posts
Location
England
Posted 06 September 2012 - 03:26 AM
you can just use the code:
local function loop(delay)
while true do
local sides={'left','back','right','front'}
for i=1,4 do
rs.setOutput(sides[i],true)
sleep(delay)
rs.setOutput(sides[i],false)
end
end
end
Then you call the function with the delay (in seconds) between each light change eg:
loop(0.25)
give it a try
How do I code this in? I have transmitter chips and an RP2 chip in my sensor, it's already registered, how do I input the code?
I think you've gone and got tekkit and have no clue which items are from which mods.
If you are using tekkit, there are two sets of computers, the CC ones(computer and turtle), and the redpower one(comes with cpu and ribbon cable and other strange stuff)
I suggest learning a bit about which items are from what mod before proceeding any further, just so you know where to go for help and which items are compatible. Also, pretty much all mods that are in tekkit have their own wiki, and computercraft and redpower both have quite good wikis, so if you want to know what their stuff does, check there, chances are you'll find something to answer your question. If you don't find what you are looking for, then go and ask the forums. It just makes things easier, especially since looking stuff up is faster than getting a reply on a forum generally.