This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
TristanTroll's profile picture

NBS Converter Help

Started by TristanTroll, 18 August 2012 - 03:57 PM
TristanTroll #1
Posted 18 August 2012 - 05:57 PM
So I tried using the converter but I always get (nil?) or some error, even though the name is all one word and I filled the format Casper said to use in one of his post. Youtube as always has no tutorials on pretty much anything Computercraft, which includes this. There's just some douchebag showing off his converter, with no download link. So I was wondering if any of you could convert the nyan cat song from NBS studio into a txt for Computercraft, because every response I get would be spanish to me.

Heres the nyan cat song http://www.mediafire...2hn4a18sxa04fsh
Noodle #2
Posted 19 August 2012 - 04:54 AM
douchebag
Why such harsh language?

If you want the code, make it yourself.
hFile = fs.open("nyancat.txt", "r")
notes = {}
i = 1
repeat
  notes[i] = hFile.readLine()
  i = i + 1
until i == (MAXLINENUMBERINNYANFILE)
hFile.close()
for k,v in pairs(notes) do
  if notes[v] == 1 then
    rs.setBundledOutput("back", colors.white)
  elseif notes[v] == 2 then
    rs.setBundledOutput("back", colors.red)
  end
end
This is example code
And so on..
Or use the API that MysticT made
http://www.computercraft.info/forums2/index.php?/topic/2384-noteblock-api-noteblock-player/