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

Generic Builder

Started by UpZone, 28 June 2016 - 06:53 AM
UpZone #1
Posted 28 June 2016 - 08:53 AM
Hello :)/>

Did you ever come across the problem where you had to build something over and over again? .. something like a farm pitch? .. or a 9x9?

Well with this program I got the solution for you!

The Generic Builder

It comes in two parts - a templater and a builder.

Templater
SpoilerThe Templater is designed for Advanced Computers !

Setup
Spoiler

pastebin get ZcffhsFX setup_templater
setup_templater
rm setup_templater


This will create a directory "builder" where all the files are.

Usage
SpoilerTo start the program, execute


builder/Templater

It comes with a pretty interface where you can draw your template. It should be pretty self-explanatory. You just pick a color ("Current") and start drawing within the right field. For every color you can assign as many inventory slots as you'd like.

Note: Some colors are handled specifically.


Builder -help

.. for this overview

Example
SpoilerLets make a template for a farming pitch

1. Layer
Spoiler

2. Layer
Spoiler

3. Layer
Spoiler

Save
Spoiler

Well now you have a template for a farm pitch! it is saved in …


builder/templates/farm

… from there you can copy it to your builder turtles as needed

Builder
SpoilerThe Builder is designed for Advanced Mining Turtles!

Setup
Spoiler

pastebin get MmJwcLT9 setup_builder
setup_builder
rm setup_builder


This will create a directory "builder" where all the files are.

Usage
SpoilerTo start the program, execute


builder/Builder <path to template>

It will look for a given template starting at its root directory. To run our farm pitch template from the Templater we could copy it to the …


builder/templates/

… directory and execute it like so


builder/Builder builder/templates/farm

Example
SpoilerThe usage given above will start the program like so



You just put all the items in the given slots like defined and press enter to start the script. The turtle then will start building.

Note: When the script starts, the turtle is at layer 1 in the corner. Consider this when placing the turtle.

Don't wait any longer! Start building your empire using templates and turtles!



Features
  • Supports an area up to 23x15 blocks
  • Supports up to 99 layers
  • Runs with a highly optimized path finding algorithm for building
  • Fail prove if mobs/blocks/players are in the way
  • It will do anything to fulfill its task
  • Supports an unlimited amount of templates
LinksDirect Links
You are more than welcome to share you templates in this topic! ^_^/>


TODO:
  • Fuel calculation for Builder
  • GUI for Builder
  • Enough-blocks-to-build detection for Builder
Edited on 29 June 2016 - 11:01 AM
UpZone #2
Posted 29 June 2016 - 08:13 AM
Feedback, new ideas and improvements are also highly appreciated! ^_^/>
totalstaples #3
Posted 05 July 2016 - 11:52 PM
I can't get the turtle to actually build from the template. I am a total noob at computer craft but i did get the template built. I successfully got builder to start and loaded materials. When i click start it turns green says starting layer 1 and nothing happens.
Mike_Wazowski00 #4
Posted 06 July 2016 - 08:27 PM
I can't get the turtle to actually build from the template. I am a total noob at computer craft but i did get the template built. I successfully got builder to start and loaded materials. When i click start it turns green says starting layer 1 and nothing happens.

Does your turtle have fuel?
Edited on 06 July 2016 - 06:27 PM
meathead #5
Posted 05 September 2016 - 02:02 PM
Does this work with 1.7.10 ? :)/> Cant seem to find the program when I type in Builder -help
Bomb Bloke #6
Posted 06 September 2016 - 04:39 AM
Go back and read the setup / usage instructions in the first post.
Lupus590 #7
Posted 06 September 2016 - 02:06 PM
Does this work with 1.7.10 ? :)/> Cant seem to find the program when I type in Builder -help
the setup / usage instructions are in the spoilers
Edited on 06 September 2016 - 12:08 PM