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

Turtle Statistics & Control System [v.3.4.1]

Started by RedCowboy, 10 January 2015 - 11:57 AM
RedCowboy #1
Posted 10 January 2015 - 12:57 PM
Turtle Statistics & Control System

Version 3.4.1



Pastebin
[indent=1]System: 9wSS6Xck[/indent]
[indent=1]Drone: NBEa8RVm[/indent]

Features
[indent=1]- System[/indent]
[indent=2]• Turtle swarm[/indent]
[indent=2]• Good looking GUI[/indent]
[indent=2]• Real-time Turtle control[/indent]
[indent=3]- Send home[/indent]
[indent=3]- Exit program[/indent]
[indent=3]- Shutdown[/indent]
[indent=2]• Real-time Turtle Information[/indent]
[indent=3]- Completion of job (All jobs)[/indent]
[indent=3]- Last known position[/indent]
[indent=3]- Inventory[/indent]
[indent=3]- Fuel[/indent]
[indent=2]• Queue based job assignment[/indent]
[indent=2]• Auto / manual job assign[/indent]
[indent=2]• Auto queue sorter[/indent]
[indent=2]• Adjustable quarry size, border, start-point and end-point[/indent]
[indent=2]• Variable saving[/indent]

[indent=1]- Drone[/indent]
[indent=2]• Proper coordinate system[/indent]
[indent=3]- One can use both relative and "real" coordinates[/indent]
[indent=3]- Coordinates are saved, no need to rewrite them[/indent]
[indent=3]- Set coordinates with GPS or manually[/indent]
[indent=2]• GUI[/indent]
[indent=2]• Lots of variables to edit to personal preference[/indent]
[indent=3]-Example: Drop dirt/gravel/cobble[/indent]
[indent=2]• World-unloading recovery[/indent]
[indent=2]• Unlimited fuel support[/indent]
[indent=2]• Quarrying[/indent]
[indent=2]• Item drop-off chest[/indent]
[indent=2]• Fuel drop-off chest[/indent]
[indent=2]• Bombing[/indent]
[indent=2]• Fuel limit, won't run out of fuel in middle of nowhere[/indent]

Screenshots
[indent=1]36 Turtles heading out for work[/indent]
[indent=1]
Spoiler
[/indent]

[indent=1]Main page[/indent]
[indent=1]
Spoiler
[/indent]

[indent=1]Assign Quarry page[/indent]
[indent=1]
Spoiler
[/indent]

[indent=1]Statistics page[/indent]
[indent=1]
Spoiler
[/indent]

[indent=1]Statistics page 2 (notice the cross in the top right corner)[/indent]
[indent=1]
Spoiler
[/indent]

[indent=1]Job queue page[/indent]
[indent=1]
Spoiler
[/indent]

How to use
[indent=1]-System[/indent]
[indent=2]- Set up:[/indent]
[indent=3]
Spoiler[/indent]
[indent=3]Craft yourself an advanced computer and a wireless modem, place the computer on the ground,[/indent]
[indent=3]and with 'shift' held down, place the modem on any side of the computer. Right-click computer and enter[/indent]
[indent=3]' pastebin get
 System '. (Replace ' [code] ' with the code found on top of this page)[/indent]
[indent=3]Enter ' System ' to run program. 
[/indent]
[indent=2]
- Good to know: [/indent]
[indent=3]Program only works on a advanced computer due to mouse navigation[/indent]
[indent=3]Program also works great with advanced monitors, make a 5x3 screen and press ' M '[/indent]

[indent=2]- All controls:[/indent]
[indent=3]
Spoiler[/indent]
[indent=3]• Left-click - Main action[/indent]
[indent=3]• Right-click - Secondary action[/indent]
[indent=3]• 'T' - Saves data and terminates program[/indent]
[indent=3]• 'M' - Enable/disable monitor view[/indent]
[indent=3]• 'U' - Updates screen [Debug]
[/indent]
[indent=1]- Quarry[/indent]
[indent=2]Set up:[/indent]
[indent=3]
Spoiler[/indent]
[indent=3]Go to ' Controls -> Assign Quarry' to begin setting up an area for your turtles to mine.[/indent]
[indent=3]The quarry area can be pictured as a square from above, with the upper two corners pointing north.[/indent]
[indent=3]Press ' ESC ' to get out of the computer and then ' F3 '. There you will see which direction you are facing behind the 'f: '[/indent]
[indent=3]Enter the coordinates of two of the diagonal cornes and let the program enter the otherones for you.[/indent]
[indent=3]Now enter at which height the turtles will start mining at and at stop at ('Quarry Start Y' and 'Quarry End Y')[/indent]
[indent=3]'Quarry Size' I usually set to 8 to make the effeciency/time higher. It determines how big an area one turtle should mine at a time.[/indent]
[indent=3]' Border Size ' determines how many blocks to skip between each of the turtles' mining areas. (Can be set to 0)[/indent]
[indent=3]' Auto Assign ' makes the program automaticly send the turtles out to mine when a request is received. (Current requests are not!)[/indent]
[indent=3]To dispatch already received requests go back to the main menu by pressing 'Back' and then go 'Job Queue'. Navigate to individual requests[/indent]
[indent=3]by pressing '<<', '>>'. '||' sets selection back to 1. Right-click for secondary aciton.[/indent]
[indent=3]To dispatch all requests set to automatic press 'Manage Queued Auto Jobs' and watch the magic happen[/indent]
[indent=3]The '[ ]' in the top right corner allows for auto sorting in the jobs queue.[/indent]
[indent=3]Go to 'Statistics' for all of the information and press the '[ ]' in the top right corner to control the turtles while working.
[/indent]

[indent=1]- Bombing[/indent]
[indent=2]Set up:[/indent]
[indent=3]Coming soon[/indent]

[indent=1]-Drone[/indent]
[indent=2]Set up: [/indent]
[indent=3]
Spoiler[/indent]
[indent=3]Craft a wireless mining turtle and then place it on the ground.[/indent]
[indent=3]Right-click the turtle and enter ' pastebin get
 Drone '[/indent]
[indent=3](Replace ' [code] ' with the code found on top of this page)[/indent]
[indent=3]Enter ' Drone ' to run program.[/indent]
[indent=3]Make sure you have a chest with some fuel (coal, wood etc) under the turtle when running it the first time.[/indent]
[indent=3]Next up is to give the turtle an ID, make sure to use and unique ID for each of your turtles.[/indent]
[indent=3]Press ' F3 ' and look at which y-coordinate your at and then decide at which height the turtle should travel at when going places in 'Travel height'[/indent]
[indent=3]Then go 'Next->'. Now you can enter at which direction the fuel-chest and drop-off-chest is located at.[/indent]
[indent=3]Go 'Next->' and now you get to choose whether to enter the coordinates of your turtle manually or with GPS (if you have one set-up nearby)[/indent]
[indent=3]Go 'Next->' again and enter the coordinates for the home of the turtle[/indent]
[indent=3]Once again go 'Next->' and now which coordinate the turtle should go to when entering and leaving the home[/indent]
[indent=3]Now go 'Continue' and set which job the turtle is looking for and if it should ask for a new one when done[/indent]
[indent=3]Congratulations![/indent]
[indent=3]You have just made your own drone to do your work for you. 
[/indent]

[indent=2]Good to know:[/indent]
[indent=3]Program works with both normal turtles and advanced turtles.[/indent]
[indent=3]Use the arrow keys, 'backspace' and 'Enter' to navigate the menus.[/indent]
[indent=3]Turtle does not resume working after world reload, they head back and ask for a new job.[/indent]

[indent=2]All controls:[/indent]
[indent=3]
Spoiler[/indent]
[indent=3]• Arrow up / 'W' - Go up[/indent]
[indent=3]• Arrow Down / 'S' - Go down[/indent]
[indent=3]• Enter / 'Space'- Main action[/indent]
[indent=3]• Backspace / 'Shift' - Secondary action[/indent]
[indent=3]• 'A' - Switch auto job request[/indent]
[indent=3]• 'C' - Change job[/indent]
[indent=3]• 'F' - Request job[/indent]
[indent=3]• 'R' - Clear log file (debug)[/indent]
[indent=3]• 'T' - Close program[/indent]
[indent=3]• 'V' - Skip variable set-up pages
[/indent]

In depth

[indent=1]Coming soon[/indent]

Help

[indent=1]- System[/indent]
[indent=2]Coming soon[/indent]

[indent=1]- Drone[/indent]
[indent=2]If the turtle just keep on searching through the inventory it got no fuel and looks for some in the chest designated.[/indent]
[indent=2](default under the turtle)[/indent]

Future features
[indent=1]Come with suggestions[/indent]

Changelog

[indent=1]3.4.1 : Bug fixes[/indent]
[indent=1]3.4 : Added world-unloading recovery (configurable), disabled-fuel support. As suggested by micmou.[/indent]
[indent=1]The program now also creates a startup program, if missing one.[/indent]
[indent=1]3.3 : Posted on forum[/indent]

Old stable versions
Spoiler[indent=1]3.3 : System: qZitPbav , Drone: 98WGM0xZ[/indent]

Credits
[indent=1]Computercraft wiki - For teaching me how to code lua ^^[/indent]
[indent=1]Some youtube video for help with the coordinate system (Cant remember the name)[/indent]


Created by: RedCowboy
Edited on 23 January 2015 - 11:17 AM
ByteMe #2
Posted 10 January 2015 - 10:21 PM
this is among the few good releases in the past couple days. I don't know about other people but it really shows the effort when someone takes the time to write out that many instructions and documentation. I will test it, I can also see the usefulness unlike some projects in the last couple days.
InDieTasten #3
Posted 19 January 2015 - 08:57 PM
Oh my… this looks incrdibly awesome(although I won't try it myself) I think it's a masterpiece. Really nice, deserves more attention ;)/>
There are several swarming management systems out there, but none of them are as easy to set up and have all those stats'stuff (which I have a fetish on xD)

+1
micmou #4
Posted 20 January 2015 - 04:16 AM
I really Like it. It looks really good haven't tested it yet although here comes my usual suggestion swarm really should just start my own thread and manage all the programs suggestions I use regularly there Hmm now that's an idea any who

If all of these are implemented we would never need many other turtle programs One turtle program to rule them all Mwuah hahaha

Server restart persistence (Usually A must for any turtle unfortunately).

I do not see any mention of dealing with server with fuel disabled does it handle it properly?

3D Printer System??? Extremley Hard

Different types of integration maybe include some farming things trees/crops

Ore Quarry type system with a block placing thing

Maybe integrating a blacklist/whitelist system so that we can exclude certain blocks to mine
RedCowboy #5
Posted 21 January 2015 - 09:24 PM
I'm glad you guys appreciate my work, so far ;)/>

Server restart persistence (Usually A must for any turtle unfortunately).

It's already partly implemented (mostly change a boolean to activate) but due to the unpredictability of server shutdowns the program might exit before updating position and then go crazy back at home - therefore I disabled the feature. But if you got an idea please share.
Edit: Added

I do not see any mention of dealing with server with fuel disabled does it handle it properly?

Oh, I've never played with disabled fuel, got to look that one up.
Edit: Fixed

Maybe integrating a blacklist/whitelist system so that we can exclude certain blocks to mine

Great idea! I'll do some testing with this :)/>
Edit: Added blacklist for dirt/gravel/cobblestone. Might change later on


Feel free to come with more suggestions !

@RedCowboy
Edited on 22 January 2015 - 03:28 PM
micmou #6
Posted 28 January 2015 - 06:16 AM
Maybe finish the documentation

add a mobile chunk loading system maybe with spot loaders

an auto gps setter flies up in the sky makes a gps
micmou #7
Posted 11 February 2015 - 06:37 AM
Sorry for the Douple Post but here is a free bump and check to see how it is going and any updates?
merpelicous #8
Posted 21 February 2015 - 10:20 PM
I have two requests. One where the turtle finds and collects liquids with buckets (and maybe support for storage in portable tanks)
and one where the turtle breeds and kills animals in a pen.
Edited on 21 February 2015 - 09:47 PM
micmou #9
Posted 28 February 2015 - 05:22 AM
Any news on this like interesting progress report also free bump for you.

Still very useful and good for mining
Krutoy242 #10
Posted 15 March 2015 - 11:23 AM
Just beautiful interface and very user-friendly. All controls are easy to manipulate and change. Very good job.

But, why so many pre-options… Make please auto-set for swarm. For example, i want to set turtles in line and program will automatically set them right ID and all other options like position by communications with system computer. This would be more userful then jump to every turtle in line and set their coords and other options manually.

Also, after i tryed to set quarry with this options, screen just turn black and program reloaded.
TVdata #11
Posted 30 December 2015 - 11:05 PM
Drone controls are broken. Opening statistics causes it to crash.
ego003 #12
Posted 03 January 2016 - 11:30 AM
Drone controls are broken. Opening statistics causes it to crash.

using the newist tekkit Legnds version I aggree to this error:
- statistics cannot be opened
- not every drone starts to work
- often when I do "request a job" the computer crashes


It seems to be a very good program, when it woud work. Maybe, there is just a simple error?

Greets
Marc