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

Turtle Butler

Started by nitrogenfingers, 04 August 2012 - 02:38 PM
nitrogenfingers #1
Posted 04 August 2012 - 04:38 PM
I've never really understood forums.

Anyway, as a bit of a test of the new 1.4 features I developed a robot butler. The code for his movement is quite ad hoc so I've uploaded the world file (http://www.mediafire...t1ks256pd5rz12k) rather than the uselessly applied code for the system. In it, if you can find the villa, you'll find a robot butler you can command. He can:
- Store anything you put in the first 4 slots of his inventory
- Fetch items when commanded by the terminal in the bedroom
- Craft tools and bake bread, and deliver them to the bedroom
- Smelt iron and gold in the furnaces in the hypocaust- after putting stuff down there he'll check it back whenever he has free time
- Respond to storage mine carts arriving- take and store anything on them, optionally fill them with coal, and then send them the way they came.

Most operations can be done from the command terminal in the bedroom, except for context-sensitive ones like mine carts arriving- these are done automatically. I made a video of it in action- you can watch it here:
[media]http://youtu.be/PIwp8NTHpvs[/media]

The crafting approach is probably the most interesting, and ostentatious in the program. As I couldn't figure out how to have a turtle with both wireless and a crafting bench the turtles communicate rather how people in the academy in Gulliver's Travels did- they carry with them everything they need and point to what they mean for the other turtle to know. It's exceeding error prone and quite fiddly- certainly not a safe system, but in an enclosed environment and without intervention it does work.

That's sort of it. The code is pretty hideous so I don't know if it'll be of much help, but it's kind of cool requesting fresh bread be delivered to my bedchamber. Sort of a powertrip thing, I guess.
Cruor #2
Posted 04 August 2012 - 05:05 PM
Nice work ;)/>/> love your videos nitrogen, You should note that a computer -counts- as a bundledcable, meaning you can comunicate via the redstone API like that. Atleast you have inspired me to take my ideas to the next step, turtle buttlers is the future :P/>/>
max1220 #3
Posted 04 August 2012 - 05:13 PM
Coool. :P/>/>
nitrogenfingers #4
Posted 05 August 2012 - 01:01 AM
Yeah in hindsight I'd have used a different kind of communication than that. I suppose the reason I went with a inventory based approach was that was sort of the mindset I was already in- turtles need to keep inventory of what they're putting away on hand so it seemed logical to keep using inventory comparisons to identify objects throughout the system.

But using bundled cables or maybe a Morse code-style redstone system would certainly have been better. Hindsight is 20/20- I'll remember that next time I expect.
mtemple12 #5
Posted 15 August 2012 - 06:24 PM
If you download the world file and you have the turtles set to not need fuel, then you need to change line 630-something of the script in the butler turtle. And also, I found a bug where the butler gets stuck above the minecart when trying to fill/empty it. I made no modifications to the code other than commenting out the refuel part of the code (this would cause an error in the program since my turtles don't need fuel).
Steelsouls #6
Posted 04 September 2012 - 07:17 AM
Your turtle butler is so wonderful! I love the user interface on your command computer and the crafting turtle. Also as a side note, you have a great building style. I really like the hypocaust. Didn't know what it was so I looked them up and I'm going to start incorporating them into my builds.
chemboy11 #7
Posted 16 October 2012 - 10:32 PM
Could you please make a .zip file? thanks!
Ralnick #8
Posted 17 October 2012 - 01:39 AM
great Vid, thanks for that… I guess i have different IDs for the CC blocks. bother PCs and Turtles are not there.. and when I click on the space they should be the game crashes.

any chance of getting the programs? and how to install them (in what PC or turtle?) or how to get them from the world save?
ChunLing #9
Posted 17 October 2012 - 01:56 AM
Look under ".minecraftsavesWorld_namecomputerID" where World_name is the name of the world and ID is the numerical ID of the computer/turtle.
Ralnick #10
Posted 17 October 2012 - 02:40 AM
thanks, for the info. ChunLing :D/>/>
cheekycharlie101 #11
Posted 21 October 2012 - 05:55 PM
dude ive seen ur videos, there amazing. keep up the good work :)/>/>
raywave #12
Posted 06 January 2013 - 08:53 AM
how is it that you get turtles to put coal in a furnace?
Radsail #13
Posted 14 April 2013 - 11:46 PM
Hey cool video
My ids are conflicting so I dont have the cc and turtles. Is there a way how I can get the programs to put it on manually
Thanx
Popeye #14
Posted 15 April 2013 - 03:41 AM
This is Amazing!
LoneRangerGuy #15
Posted 17 April 2014 - 10:30 PM
I love the villa, very nice! Unfortunately, I don't get computers or turtles either. :(/> Perhaps you could edit your original post and give the specific version(s) of Minecraft it is known to work with and/or post the code to pastebin so they can be recreated in more modern versions.
Also, kudos for the Turtle Inventory Tutorial, so maybe I should work on my own version of a turtle butler.

Thanks :)/>