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

Redstone Engine

Started by HPWebcamAble, 11 January 2015 - 12:43 AM
HPWebcamAble #1
Posted 11 January 2015 - 01:43 AM
Almost powerpoint!

Description
This program lets you control Bundled Cable, with a computer. But unlike having to code everything, this makes it really simple!

You use this to add 'events' to a list (called a 'config'). Then you run the config (with this program), and each event is executed in order.

The Bundled Cable can be touching any side of the computer

If you don't know how Bundled Cable works, I'd recommend Google. It really is helpful (both google and the cable)


NOTE: CC 1.6 doesn't work with some versions of Project Red/Minefactory Reloaded. Click here to see the required version of both.

Download
Run 'pastebin get eMCqJEBs installer'

Then run 'installer'

It hopefully isn't hard to use but here is a Youtube Video I made if you need help:



Please comment with any questions or bug reports!
Edited on 19 July 2015 - 05:18 AM
Waitdev_ #2
Posted 18 July 2015 - 08:46 AM
nice!
ebernerd #3
Posted 18 July 2015 - 05:50 PM
Before I ask the question Imma ask, this is awesome. Totally awesome. Wish I could do stuff like that. :)/>

Did you use my color picking function? I built it for my OS, but it looks exactly like the one you're using. Same color layout, same usage… everything. xD
I don't mind, I just thought it was funny that we had the same thing.

EDIT: I think the reason we have the same color layout is because mine does multiplication to get the color, and just places them in the center. I dunno if that's what you did.
Edited on 18 July 2015 - 03:55 PM
HPWebcamAble #4
Posted 18 July 2015 - 06:09 PM
Before I ask the question Imma ask, this is awesome. Totally awesome. Wish I could do stuff like that. :)/>
nice!

Thanks! I was worried that no one was using this.

I'm working on version 2 which supports regular redstone, and analog redstone output!
Also, it stores files as regular Lua, so you just run the files that it makes.



Did you use my color picking function? I built it for my OS, but it looks exactly like the one you're using. Same color layout, same usage… everything. xD
I don't mind, I just thought it was funny that we had the same thing.

EDIT: I think the reason we have the same color layout is because mine does multiplication to get the color, and just places them in the center. I dunno if that's what you did.

No I didn't use yours, but like you said, it multiplys 2 several times until it hits black (32000 something)

Spoiler

function selectColor()
  local cColor = 1
  local colorPos = {}  --# Stores the x position of each colored pixel
  local lastColor = 32768 --# the color black
  local xpos = 17
  local ypos = 5
  cp(xpos,ypos)
  tc(colors.black)
  bc(colors.white)
  tw("[")
  for i = 1, 20 do
	bc(cColor)
	tw(" ")
	colorPos[i] = cColor
	if cColor == lastColor then break end
	cColor = cColor*2
  end
  tc(colors.black)
  bc(colors.white)
  tw("]")
  while true do
	event,p1,p2,p3 = os.pullEvent("mouse_click")
	if p3 == ypos and p2 > xpos and p2 < xpos+17 then
	  return colorPos[p2-xpos]  --# Simply returns when the y pos is correct, and the x is inside the colorPos table.
	end
  end
end
Edited on 18 July 2015 - 04:10 PM
ebernerd #5
Posted 19 July 2015 - 12:11 AM
My function does the same thing as yours, crazy coincidence. :)/>

This is seriously so cool though.
PixelFox #6
Posted 01 September 2015 - 12:52 AM
Here's a better algorithm: bit.brshift(color, 1) / bit.blshift(color, 1) works for colors.