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

CCTurtle Emulator

Started by shiryavsky, 04 December 2013 - 09:00 AM
shiryavsky #1
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.
Buho #2
Posted 04 December 2013 - 10:29 AM
WOW! This is AMAZING!!!
Buho #3
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:


turtle.select(16)
turtle.refuel(16)
print(turtle.getFuelLevel()) --Prints 1280
turtle.digDown()
print(turtle.getFuelLevel()) --Prints 1279

This is fantastic! Thanks again!
jamd315 #4
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 :)/>
Lyqyd #5
Posted 04 December 2013 - 02:30 PM
Moved to APIs and Utilities.
nutcase84 #6
Posted 04 December 2013 - 08:20 PM
Great emulator! Good job!
apemanzilla #7
Posted 04 December 2013 - 08:31 PM
Oh my god this is AMAZING….
And it works on my PHONE….
WHY DID THIS NOT EXIST EARLIER
awsmazinggenius #8
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)
psyestorm #9
Posted 23 January 2014 - 08:56 AM
Wow.

This is so useful.

Great work! Thanks!
LayZee #10
Posted 14 April 2014 - 12:02 AM
Any work being done on this?
Shivaess #11
Posted 20 April 2014 - 03: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