Jump to content

CCTurtle Emulator

utility turtle lua

10 replies to this topic

#1 shiryavsky

  • New Members
  • 1 posts

Posted 04 December 2013 - 10:00 AM

I do not have permissions to create a new topic, so I write in this thread.

Because programs for turtles little hard to debug...
I wrote a simple emulator for turtles, perhaps you'd be interested:

http://turtle.ryazanez.com/ *better in google chrome

If you found any bugs or have suggestions, please write them here.

#2 Buho

  • Members
  • 110 posts

Posted 04 December 2013 - 10:29 AM

WOW! This is AMAZING!!!

#3 Buho

  • Members
  • 110 posts

Posted 04 December 2013 - 11:24 AM

I'm absolutely impressed with this. It's an easy way to test out movement and mining algorithms!

Some suggestions:
  • Add a Terminate button
  • Have the text output pane scroll to the bottom automatically
  • Add the ability to pan around the map. The corners are a bit hard to see. But see next suggestion which may make this moot.
  • Redesign the page layout so it maximizes to the browser window. I see the code pane expands on long lines (nice) but why not expand everything to the max (like JSFiddle.net)? CCTurtle.emulator is a small interface on my 1920x1080 display.
  • The indenting in the code editor is wonky. Tab puts a real tab in there but you are inserting two-space indents automatically. It's a pain to manage a mix of both.
  • Where do the saved worlds go? Can you add some more, such as a cliff face (remove 10x10x10 blocks from the nearest corner) for tunnel algorithms?
  • Add an Immediate pane (like the lua prompt) for when the turtle isn't running. I'd like to be able to tweak the turtle without messing up the algorithm.
  • Add gravel, cobblestone, and dirt.
  • Convert grass to dirt, cleanstone to cobblestone, and coal ore to coal when dug. This better simulates the issues real turtles have to deal with. Actually, how can you refuel on-the-go if the coal ores don't change into coal items?
I think there's a bug with the fuel level. turtle.digDown() expends one fuel. See here:

print(turtle.getFuelLevel()) --Prints 1280
print(turtle.getFuelLevel()) --Prints 1279

This is fantastic! Thanks again!

#4 jamd315

  • Members
  • 24 posts
  • Location(Insert egocentric quote here)

Posted 04 December 2013 - 12:46 PM

Off-Topic: This should get moved somewhere besides the help page
On-Topic: Love the emulator it provides the function that CCDesk can't. Bookmark :)

#5 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,462 posts

Posted 04 December 2013 - 02:30 PM

Moved to APIs and Utilities.

#6 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 04 December 2013 - 08:20 PM

Great emulator! Good job!

#7 apemanzilla

  • Members
  • 1,421 posts

Posted 04 December 2013 - 08:31 PM

Oh my god this is AMAZING....
And it works on my PHONE....

#8 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 08 December 2013 - 05:26 PM

I love this ... it works on my iPad. (Though I have a tablet with Windows 8 Pro as well, so it wouldn't be a problem otherwise)

#9 psyestorm

  • Members
  • 15 posts

Posted 23 January 2014 - 08:56 AM


This is so useful.

Great work! Thanks!

#10 LayZee

  • Members
  • 15 posts

Posted 13 April 2014 - 11:02 PM

Any work being done on this?

#11 Shivaess

  • New Members
  • 1 posts

Posted 20 April 2014 - 02:45 AM

This is really something, I was thinking about writing a test harness in lua for it just to weed out bad calls etc... but wow

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users