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

CoDR (Chest on Demand revamp)

Started by CaptainSly, 03 July 2013 - 07:00 PM
CaptainSly #1
Posted 03 July 2013 - 09:00 PM
Version 0.4 is out!

NOTICE: I have been shelling out a lot of updates and that is because I'm trying to iron out a lot of bugs! I will be releasing a CoDRExtras which will give a lot of customization to the CoDR Program.


Ladies and people that aren't women. I've fooled around with Sethbling's Chest on Request
[media]http://www.youtube.com/watch?v=9Ibehp0-kso[/media]
and thought to my self: "How could i get this to work with computer craft?".
So I developed this code and it works as far as I tested it.

If you watch the video you can see what it's mostly for without computer craft.
i put computercraft in it so i can control it from there without the pressure plates.
Please do not say that's what Ender chest are for because i made for the sake of organization!

You can get it in game with pastebin get Q8Zq88ct CoDR (You can call it anything you want)

I have gotten rid of the code here and just put a link in the links spoiler

I GOT SCREENSHOTS!
Spoiler


^ This is me making the program as i go! It could and can be made different!

You may give me suggestion on what to be added! I'm all up for anything!
I changed the name to Chest on Demand (I thought it was demand instead of request)

If you find any bugs please tell me.

Derps
Spoiler
 Some how skipped version 0.1 and 0.3 in change log 
-

Links
SpoilerPastebin
Sublime Text 2

Planned Features
SpoilerPurple Planned
Red Working On
Green Already Implemented

Configurable GUI
CoDRExtras


changelog
Spoiler

-- Version 0.2 --
Changed Font of Logo.
Added a loop so you don't have to keep restarting the program
Added a loop to the sendback.
-- Version 0.4 --
Fixed the logo

Bugs list
Spoiler
 You have to restart the computer if you select sendback and select a choice.
Encreedem #2
Posted 05 July 2013 - 11:14 AM
The fact that you would have to run back to your computer every single time you want to send the minecart somewhere else, doesn't make too much sense for me. I also think that you should put the "Code" part into a loop otherwise it looks like you would have to start the program every single time you enter something.
Besides that, I don't think that the idea is bad.
CaptainSly #3
Posted 05 July 2013 - 11:29 AM
The fact that you would have to run back to your computer every single time you want to send the minecart somewhere else, doesn't make too much sense for me. I also think that you should put the "Code" part into a loop otherwise it looks like you would have to start the program every single time you enter something.
Besides that, I don't think that the idea is bad.

I tried to do that but it seemed to derp out on me. I will put a loop in the next update though! I'm coming out with something extra too! (that is if it works)
Encreedem #4
Posted 05 July 2013 - 12:51 PM
It looks better now but i think there are still 2 mistakes:
1)
You shouldn't use "while true do" in your sendBack() function.
I would recommend to use something like this:


local finished = false
while not finished do
  input = read()

  --here goes your code.

  if (input == "quit") then
	finished = true
  end
end

2)
Your main code is longer than it needs to be. Put printBox() and input = read() at the start of your loop:

sleep(1)
print("Welcome to CoDR or Chest on Demand Revamped")
sleep(2)
term.clear()
while true do
  sleep(0)
  printBox()
  input = read()
  if input == "1" then
    roomFront()
  elseif input == "2" then
    roomBack()  
  elseif input == "3" then
    roomStorage()  
  elseif input == "4" then
    sendBack()
    break
  end
end
CaptainSly #5
Posted 05 July 2013 - 07:59 PM
For somewho's clueless you sure ain't clue less thanks! I think i'll release version 0.3 now