Self-Replicating Turtle - Revisited
#41
Posted 24 May 2014 - 12:24 PM
Thanks for posting the seed. This is a great world for testing, as the turtle's first mining run starts on sand and exits in water, so some considerable re-coding is required here. I am getting past this and on the 3rd harvesting run, there is a wierd bug when refuelling, where the chest is placed, but not in front of the turtle as expected, but with a 1 block gap. I suspect this is a bug in cc 1.6.3, as the post regarding LavaLake 1.0 also refers to the same error when using buckets to get lava using turtle.place().
@mistamadd001
The seed you posted earlier would not reproduce the exact world if you are in a different version of Minecraft. The script was developed on Minecraft 1.6.4 with cc 1.5.8. Are you able to upgrade to the newer versions of both? I am testing with cc 1.6.3 to check everything is working. Could you check if the seed you posted earlier is correct?
#42
Posted 24 May 2014 - 08:30 PM
#43
Posted 24 May 2014 - 09:02 PM
On turtle error is at 6835: Slot number 0 out of range. Looking at that, whatever called the function is to blame for the failure...
#44
Posted 24 May 2014 - 10:30 PM
3 where the chest does not place correctly. I am trying to work round it.
#45
Posted 24 May 2014 - 10:38 PM
Or since he tried placing it in water and failed, test for the chest, if you can, and if it's not there or "bedrock" is then plug it and go down and try again
Edited by Dragon53535, 25 May 2014 - 01:08 AM.
#46
Posted 25 May 2014 - 10:02 AM
I have got round it by simply using turtle.detect() If nothing there, move forward, grab the chest, move back and try again
I have reported the bug (with video) along with a simple way to replicate it on this post
I am just re-testing your world from scratch then will re-upload with the version 1.1.0 as soon as I can
Edit
Your world is working now (screenshot attached)
Just a couple of minor tweaks and pastebin will be re-uploaded
Edited by Inksaver, 25 May 2014 - 03:22 PM.
#47
Posted 25 May 2014 - 12:05 PM
#48
Posted 25 May 2014 - 04:14 PM
I tried to see if it would spit extra items out as 'junk blocks' to no avail, it'll find certain items and crash thinking they are flint.
I understand if it won't be expanded to work in them, I was just curious. Great work on the program, I am in awe.
#49
Posted 25 May 2014 - 04:26 PM
It would not work with any modpacks, simply because of the large numbers of different blocks, and the difficulty identifying them.
Thanks for your comments!
#50
Posted 25 May 2014 - 04:27 PM
Inksaver, on 25 May 2014 - 04:26 PM, said:
Yeah that's what I figured, couldn't hurt to ask though.
Thanks for the answer and the program, again great work.
#51
Posted 25 May 2014 - 07:19 PM
#52
Posted 25 May 2014 - 08:17 PM
I would be glad to get to the bottom of any other problems you discover on other worlds, so please go ahead!
I am now wondering what next?
With some modification, it should be possible to increase the storage capacity on the surface, retain some of the flowers, seeds, cobble, dirt and gravel that was simply dropped, then build a house on the surface with doors and windows, complete with water and lava sources, fencing, gravel paths etc.
With the current version of CC, a diamond hoe can be constructed and swapped out for the pickaxe for creating a wheat farm.
Edit
Just had a thought...
If at least one turtle is reproduced, then each one could run separate programs to carry out tree and wheat farming, while the original could build the house and grounds. These would be additional scripts that would only run after the main script had completed. All coordinates of the position of the mineshafts, furnace, tree farm and storage chests would be known. If a chunk loader is installed, then we could even go deep mining in neighboring areas.
I've got a headache coming on....
Any volunteers to write continuing scripts to do the above tasks? All you need to do is run the current one, and use the changes made to the world to be taken into account
All this, of course, WITHOUT player intervention...
Edited by Inksaver, 25 May 2014 - 10:05 PM.
#53
Posted 26 May 2014 - 08:47 PM
You could probably change your first few menus so that it uses os.pullEvent() instead of typing. Not including the coordinates
Edited by Dragon53535, 27 May 2014 - 12:46 AM.
#54
Posted 17 June 2014 - 12:12 PM
#55
Posted 19 June 2014 - 03:36 PM
Beware of chunk loading issues causing the turtle to stop working.
#56
Posted 24 June 2014 - 07:47 AM
I love all the different stuff it does. I think time management is important for turtles too, you may want to have it use the first turtle it creates to do something useful while it continues the hunt for diamonds. It could even bring resources such as fuel to a standard spot for the second turtle so it can focus on it's task, as well as haul away the outputs. I like the challenge ideas from the original thread too. The ideas in this thread are good as well, something like a little house, and storing excess supplies for the player, even if it is just cobble and dirt to begin with.
In games I often use my first 3 diamonds for a mining turtle, even if I do just end up running excavate instead of something more clever, so things the script considers trash like flowers and seeds are still pretty valuable at that point.
I'm super tempted to try running it on my FTB Unleashed game.
#57
Posted 28 June 2014 - 07:35 PM
You can use turtle.refuel(0) and turtle.craft(0) to check whether it is possible without actually refueling/crafting it. That is quite useful^^
Can you please make an option to completly disable loggin (and optionally put a "pastebin get <program>" on the floppy instead of the start.lua), so the program can be used on a server where we cant change the configs?
Edited by Lion4ever, 28 June 2014 - 08:16 PM.
#58
Posted 29 June 2014 - 09:47 AM
I had not thought about playing this on a server before, so just thinking aloud:
1) you are not able to see any logfiles, which is essential in the debugging process, so if it crashes at some point, you would have very little clue as to the cause
2) I note there is a http.post(string url, string postData [, table headers]) which theoretically could allow the logs to be posted to your own pastebin account, but not sure about the logging in to pastebin. This is going to need some investigation.
3) Disabling logging entirely is easy as an interim measure.
4) Putting pastebin .get on the floppy is straightforward, and can be given as an option at the start. It was not part of the original challenge so I never even considered it
5) these measures mean there is no need to alter the config files.
Okay I will get onto that and update here when it is done.
#59
Posted 29 June 2014 - 08:32 PM
So far I just have identification info for copper and tin:
Notes for Self-Replicating Turtle
Mod detection and material identification
Common alternate metals are tin and copper.
Tin can be used to craft a bucket. Copper cannot.
Neither tin nor copper can make a vanilla hopper, or the computer/turtle objects that require iron.
Possible easy modpack detection: Try to smelt iron. - Or just ask the player if it is vanilla or a modpack during startup.
Vanilla allows placement of an iron ingot into a furnace inventory along with fuel in the bottom, but nothing happens, and no fuel is consumed.
Most IC2-based or similar themed modpacks have something happen when iron is smelted in a furnace, and it works in the stone furnaces. Usually this produces something like refined iron. This should work for most FTB and Tekkit packs.
#60
Posted 29 June 2014 - 08:36 PM
Could you try this thrown together pastebin test on the server you use:
http://pastebin.com/25xQ8LwT
When started it will create a dummy logfile, then ask you if you have a pastebin account.
If you have not, then get one!
It will then paste the logfile onto your account for you to view or delete at your leisure
If you are running your own server, or trust the owner, you can store your pastebin account details in the gamesave.
If this works, I can incorporate the code into the main script, to allow server users to run the program and still report any bugs with logfiles
I will now get on with using the .get function onto the floppy.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users