Posted 04 September 2015 - 01:23 AM
Hello, so this might be a bit big considering what it does…
I've been playing abit around for a few days now with another project of mine which reached a state where GPS would simply make it much easier, i tried http://www.computerc...dated-04012014/ however it seems a bit buggy, and i couldn't get it to work at all unless specifying a height.
So i was heck, i'll just convert a bit of the code and make one of these, how hard would that be!…
it can remove blocks and it moves, and replace them after itself, in the order as it found them in, everywhere possible it will try to place them, if it cant place them, it will just drop the item, this requires a mining turtle.
Items
Needed to start
1 Floppy disk
4 Computers/Advanced Computers
4 Wireless modems
1 or 4 Disk Drive, depending on type of turtle used.
if there's diamond pickaxe in the inventory when it starts and it determines itself not to be a mining turtle, it will try and equip this pickaxe, it rather wants to be a mining turtle.
If you do not use a mining turtle, it will simply say that you need 4 disk drives instead of 1, it will however not handle the well if there's blocks in the way of where it wants to go, so please ensure a clear path if restricting it by taking away its mining pick :(/>
You are not required to place items in any sort of special spots, it accepts advanced computers aswell as normal ones, should support both types of floppy disks aswell as any color used on them
Satellites
As with the script written by neonerz, the gps computers being setup are just using the builtin gps hosting program, however if you place a file named custom on the floppy disk, it will copy this onto the computer and try to execute it with the same params as the default gps program takes. You can if this should be needed, label the computers this way, i suppose.
Pastebin
pastebin run QEqyfgRR
or
pastebin get QEqyfgRR gps-build
Usage
gps-build
This command will open the menu where you set the varies variables needed
There are an option Dig if needed if set to false, this will cause a mining turtle to not removing any blocks besides if there should be a block in the same spot as either the disk drive or the computer, any blocks besides those 2 will cause the program to uhmm… not actually sure, so again, make sure it got a clear path if using this, it is to true by default
Menu option types
Number: left, right arrow keys increase and decrease the value, pressing shift adds a multiplier of 10, so it will increase/decrease in steps of 10, ctrl adds a multiplier of 100, so it will increase/decrease in steps of 100, if both are pressed, it will increase/decrease in steps of 1000
Bool: left, right arrow keys switches between false and true, left being false, right being true.
There are other option types but these shouldn't be needed or operating this.
Other information
It tries to gps.locate itself, and will change the X,Y,Z in the menu if it gets a response
it uses 3 files for various settings
.menu
.turtle
.settings
.settings is a todo, the information currently saved there should go in .menu instead
Todo
Menu enabled computer labeling capablities ?, label dem computers though the menu
Better max height handling, currently it simply goes to max height, until it either cant break its way futher up, or when it cant move futher up, then it steps down 1 step. While this works, currently… it might not continue to do so.
Some error handling/control in case of turtle isn't a mining turtle or is unfairly being restricted and there's suddenly blocks in the way… Possiblity check the locations before placing any of the computers?, that way a clean abort can be done
Screenshot
Cluster after being placed
Example of placing cluster while blocks in the way
Before
After
Have i overdone this? -.-'
Updated
7/9/15 - Fixed turtles x,y,z tracking as it was horrible and didn't reflect actually ingame x,y,z, also some other changes, not entirely sure what those are though, but wooh, more than 3.1k lines now -.-'
8/9/15 - Fixed stupid help being opened when bool menu option is being selected when its starting to place the computers, removed the help completely from bool on the pastebin version, fastest fix -.-'
I've been playing abit around for a few days now with another project of mine which reached a state where GPS would simply make it much easier, i tried http://www.computerc...dated-04012014/ however it seems a bit buggy, and i couldn't get it to work at all unless specifying a height.
So i was heck, i'll just convert a bit of the code and make one of these, how hard would that be!…
it can remove blocks and it moves, and replace them after itself, in the order as it found them in, everywhere possible it will try to place them, if it cant place them, it will just drop the item, this requires a mining turtle.
Items
Needed to start
1 Floppy disk
4 Computers/Advanced Computers
4 Wireless modems
1 or 4 Disk Drive, depending on type of turtle used.
if there's diamond pickaxe in the inventory when it starts and it determines itself not to be a mining turtle, it will try and equip this pickaxe, it rather wants to be a mining turtle.
If you do not use a mining turtle, it will simply say that you need 4 disk drives instead of 1, it will however not handle the well if there's blocks in the way of where it wants to go, so please ensure a clear path if restricting it by taking away its mining pick :(/>
You are not required to place items in any sort of special spots, it accepts advanced computers aswell as normal ones, should support both types of floppy disks aswell as any color used on them
Satellites
As with the script written by neonerz, the gps computers being setup are just using the builtin gps hosting program, however if you place a file named custom on the floppy disk, it will copy this onto the computer and try to execute it with the same params as the default gps program takes. You can if this should be needed, label the computers this way, i suppose.
Pastebin
pastebin run QEqyfgRR
or
pastebin get QEqyfgRR gps-build
Usage
gps-build
This command will open the menu where you set the varies variables needed
There are an option Dig if needed if set to false, this will cause a mining turtle to not removing any blocks besides if there should be a block in the same spot as either the disk drive or the computer, any blocks besides those 2 will cause the program to uhmm… not actually sure, so again, make sure it got a clear path if using this, it is to true by default
Menu option types
Number: left, right arrow keys increase and decrease the value, pressing shift adds a multiplier of 10, so it will increase/decrease in steps of 10, ctrl adds a multiplier of 100, so it will increase/decrease in steps of 100, if both are pressed, it will increase/decrease in steps of 1000
Bool: left, right arrow keys switches between false and true, left being false, right being true.
There are other option types but these shouldn't be needed or operating this.
Other information
It tries to gps.locate itself, and will change the X,Y,Z in the menu if it gets a response
it uses 3 files for various settings
.menu
.turtle
.settings
.settings is a todo, the information currently saved there should go in .menu instead
Todo
Menu enabled computer labeling capablities ?, label dem computers though the menu
Better max height handling, currently it simply goes to max height, until it either cant break its way futher up, or when it cant move futher up, then it steps down 1 step. While this works, currently… it might not continue to do so.
Some error handling/control in case of turtle isn't a mining turtle or is unfairly being restricted and there's suddenly blocks in the way… Possiblity check the locations before placing any of the computers?, that way a clean abort can be done
Screenshot
Cluster after being placed
Example of placing cluster while blocks in the way
Before
After
Have i overdone this? -.-'
Updated
7/9/15 - Fixed turtles x,y,z tracking as it was horrible and didn't reflect actually ingame x,y,z, also some other changes, not entirely sure what those are though, but wooh, more than 3.1k lines now -.-'
8/9/15 - Fixed stupid help being opened when bool menu option is being selected when its starting to place the computers, removed the help completely from bool on the pastebin version, fastest fix -.-'
Edited on 08 September 2015 - 09:26 AM