Difference between revisions of "Talk:Redstone (API)"

From ComputerCraft Wiki
Jump to: navigation, search
((no title))
Line 1: Line 1:
 
The redstone API is badly named.
 
The redstone API is badly named.
It should be renamed RedPower_Mod_API.
+
There is NO API that works with default redstone.
 +
This API should be renamed RedPowerAPI.
 
This would let users know that they need to install the Red Power Mod before the rs.something() or redstone.something() functions will work.
 
This would let users know that they need to install the Red Power Mod before the rs.something() or redstone.something() functions will work.
 
+
Without red power the system finds nil.
  
 
==(no title)==
 
==(no title)==

Revision as of 20:41, 18 July 2012

The redstone API is badly named. There is NO API that works with default redstone. This API should be renamed RedPowerAPI. This would let users know that they need to install the Red Power Mod before the rs.something() or redstone.something() functions will work. Without red power the system finds nil.

(no title)

i tried to do it but for some reason it didnt work, i tried:

sleep(5)
setBundledOutput(orange,back,magenta)
sleep(0.5)
setBundledOutput(orange,back,magenta)

and after the 5 seconds, it puts: "redtest:2: attempt to call nil"

how the heck does it work? how can i get it to work? someone plez reply lol, im new to lua so i know very little about lua... — Preceding unsigned comment added by 98.127.192.199 (talkcontribs)

First of all, where's the function declaration? You call redtest(), but the error tells that it doesn't exist. Second, use redstone.setBundledOutput() or rs.setBundledOutput(). Wukl 09:12, 9 April 2012 (UTC)