The 2014 version has been moved to https://pastebin.com/JVD1RPfg
Hi All
My first post here, so treat me gently.
In sept 2012 this post: http://www.computerc...62-competition/ launched a competition to create a self-replicating turtle.
It appears nobody ever completed it, but it caught my interest, as I run a computer club at my son's school, and looked to be a topic worth investigating.
I started 6 months ago, having never even heard of Lua, let alone used it, but I am fairly proficient with VB6
I finally have a Lua script working. It is >11,500 lines long, uses classes, objects, functions (and recursive functions) and follows most of the rules in the original post:
Brief description: the first tree is harvested, a cobble base camp is constructed with a furnace in the centre, then the trees in a 33 X 33 area are harvested, with mineshafts dug down to level 40 at the end of each run to get coal and ironore only.
When enough saplings are available (min 5) a treefarm is constructed to provide fuel or wood in the future.
When complete a single deep mineshaft goes down to level 14 and 2 corridors are dug in a cross shape centred on the original tree. (2 blocks high to allow player to explore). This is repeated on level 10 and level 7.
Each quarter of the cross shape is mined in two halves, by completely removing all blocks, and placing cobble on the ceiling to create 3 chambers 33 x 33 x 2. This method is faster than strip mining, where the constant turtle rotation to check walls takes longer than simply removing it. The final layer to bedrock is mined vertically.
For anybody who wants to get started, here is an easy method:
First VERY IMPORTANT!
Open this file in notepad:
"%appdata%\.minecraft\config\ComputerCraft.cfg"
in 'general' section find:
"# The disk space limit for computers and turtles, in bytes"
Change the following line to:
"I:computerSpaceLimit=10000000"
That is a tenfold increase in size.
find:
"# The disk space limit for floppy disks, in bytes"
Change the following line to:
"I:floppySpaceLimit=500000"
Save and re-start Minecraft
if you do not do this, the file start.lua is too big to copy to a floppy disk, and the logFiles produced by the script to debug can run to 6MB or more in the computerSpaceLimit. This will cause the script to fail.
I have tested a number of worlds to try out the script:
IMPORTANT - Choose or create a tree with a minimum of 6 logs, otherwise you are likely to run out of fuel!
Current Pastebin updated to Version 1.1.1
Jul 17 2014 12:18 GMT
As updates are put on Pastebin, I will post again in this thread
Edited by Inksaver, 09 December 2018 - 06:13 PM.