this program IMO is way above my skill set and is likely why I have been having soo many issues during debugging.
in the state posted, I have fixed most of the issues, but have been stuck on a few…
Program Summery:
The idea behind the program is a hybrid between automation of mining, and maximizing gains (enchanted pickaxes for more loot, and XP gains)
the turtle itself builds a branch mine for the player after receiving a few details about what the player is after.
- the length of the branches out,
- how many branches there should be,
- if the player would like the mine lit,
- and if the turtle should prioritize completion or loot. IE bring loot back or not.
Issues I am stuck on:
- currently, at random it seems, there is a slight chance that the turtle will simply freeze up for no apparent reason. this almost always occurs on a return trip from one of the branches, but occasionally has happened during re positioning, and once while mining… I have been completely unable to reproduce it properly, even when running the same settings in the same spot. and have no idea what it could be.
- The turtle, despite trying many things does not correctly position and dig the proper number of tunnels. in the variation posted above, the turtle when asked to make 4 branches, that a 10 blocks long, this is what i get:
Spoiler
Iron Blocks: Expected Path
Red Wool: Actual Path
Lapis block: starting position
as a bonus, the turtle did its hang where it is sitting in the picture. (during the return to the trunk)
Code:
-Pastebin Code- (I suggest viewing in something like notepad++, as it looks like hell in paste bin, not to mention its over 700 lines long so collapsing trees help)
If you could help me figure this out, I would be grateful. I have invested a ton of time into this code and after hours trying to understand why its doing this, i feel it is time to ask the pro's.
Preemptive Thanks for the help
P.S. I apologize for the large post. there is a lot of code to the program so I figured giving an overview of what its purpose is may help understand whats what while reading it.
the only post on the page with no responses but still 33 views (more than quite a few of the front pagers with responses)
:(/> guess i will come back tomorrow to see if someone posted before it gets berried.