Posted 29 October 2012 - 07:33 PM
Hey there,
I've been working on this project since I started with Tekkit.
To start of simple. These programs are basically used to control where and how you want your Mining Turtles to work.
Update: Updated to include "Rail" as a 3rd job option. The Rail job can still make errors when Terminated. Cant seem to figure out why,
so if anyone takes a look at the code and finds out, please tell me !
Turtle: http://pastebin.com/yNjRQrFK
This program is used for the Mining Turtles.
It provides basic movement functions, mining functions and communication with the Manager.
It also keeps track of the Turtles coordinates, so it always knows exately where it is in the world.
A lot of this information is stored in a text file on the Turtle, so when it is woken, it still remembers what it was doing.
Manager: http://pastebin.com/0dD3Guw4
This program is run on a Computer with a Modem, and it will be running constantly.
This is basically the program that keeps track of what jobs you want your Turtles to do.
It receives job information from the AddJob program, stores it in a text file job by job.
When a Turtle asks for a job, the Manager gives the first job to this Turtle and sends the job details to it.
It then orders the jobs, so we once again have a first job.
AddJob: http://pastebin.com/eMNWGe9E
This program is run on a 2nd Computer with a Modem.
It will accept inputs through the addJob command, and will only accept the input if typed correctly.
When it gets a correctly typed input, it will send these job details to the Manager, which will then add it to the joblist.
All in all, these programs together gives you the ability to type in where you want to dig.
Once you have typed in your locations, you can walk to your turtles and start them up.
When they start, they will ask for a job, and will automatically start mining one of your locations.
Hope someone finds this usefull
And thanks to BSG Samuel for his From noob to pro ComputerCraft guide, what inspired me to make this.
Regards
Groomtar
I've been working on this project since I started with Tekkit.
To start of simple. These programs are basically used to control where and how you want your Mining Turtles to work.
Update: Updated to include "Rail" as a 3rd job option. The Rail job can still make errors when Terminated. Cant seem to figure out why,
so if anyone takes a look at the code and finds out, please tell me !
Turtle: http://pastebin.com/yNjRQrFK
This program is used for the Mining Turtles.
It provides basic movement functions, mining functions and communication with the Manager.
It also keeps track of the Turtles coordinates, so it always knows exately where it is in the world.
A lot of this information is stored in a text file on the Turtle, so when it is woken, it still remembers what it was doing.
Manager: http://pastebin.com/0dD3Guw4
This program is run on a Computer with a Modem, and it will be running constantly.
This is basically the program that keeps track of what jobs you want your Turtles to do.
It receives job information from the AddJob program, stores it in a text file job by job.
When a Turtle asks for a job, the Manager gives the first job to this Turtle and sends the job details to it.
It then orders the jobs, so we once again have a first job.
AddJob: http://pastebin.com/eMNWGe9E
This program is run on a 2nd Computer with a Modem.
It will accept inputs through the addJob command, and will only accept the input if typed correctly.
When it gets a correctly typed input, it will send these job details to the Manager, which will then add it to the joblist.
All in all, these programs together gives you the ability to type in where you want to dig.
Once you have typed in your locations, you can walk to your turtles and start them up.
When they start, they will ask for a job, and will automatically start mining one of your locations.
Hope someone finds this usefull
And thanks to BSG Samuel for his From noob to pro ComputerCraft guide, what inspired me to make this.
Regards
Groomtar