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

Schematic builder for CC 1.7+

Started by Kepler, 06 September 2017 - 05:24 AM
Kepler #1
Posted 06 September 2017 - 07:24 AM
Schematic builder for CC 1.7+



Builds structures using schematic files with a turtle or a command computer. Schematics can be downloaded from sites such as http://www.planetminecraft.com.

Requires openperipherals in CC 1.7 - 1.79. Plethora in later versions. Other combinations might work,

If interrupted, you can resume by placing the turtle back in the original location and restarting the program.

[media]http://www.youtube.com/watch?v=GosR_oKfjfY[/media]

Quick setup
Copy a schematic file to the turtle/command computer (see downloading instructions if on a server)

Turtles must be placed on top of a chest (any type).
Command computers require a chest on any side.

pastebin run Fm3xf6Z9 builder.lua <filename>
–or if using Opus OS, just type
builder.lua <filename>

The first time you run the program, you must select a wrench. Place a wrench into the chest. Go to the supplies list and double-click the SelectAWrench item. Select the wrench and apply. EnderIO, Thermal Expansion, and Applied Energistics wrenches will work (only wrenches that can spin pistons will work).

Downloading schematics
Option 1: Use wget if the schematic is available for download.

Option 2: Transferring via pastebin
To create a base64 file from a command line, do:

linux / max:
base64 -w0 NAME.schematic > NAME.schematic.base64

windows (I haven't tried this - but google said this will work):
certutil -encode NAME.schematic NAME.schematic.base64

Upload the base64 file to pastebin.

To download and convert the base64 file back into a schematic file, do:
pastebin run Fm3xf6Z9 base64dl.lua <filename> <url> 

You can download a simple test schematic using:
pastebin run Fm3xf6Z9 base64dl.lua chicken.schematic https://pastebin.com/raw/vxpHBUky
Edited on 26 September 2017 - 09:56 PM
marv21222324 #2
Posted 03 October 2017 - 12:05 AM
I have a problem your with your program since I made the day of the Turkish program no longer takes anything in a me go I put it on an interface and on the server its worst I do not like suplie an object help me please



j'ais un probleme votre avec votre programme depuis que j'ais fais le jour du programme de la turque ne prend plus rien dans un moi allors que je la pose sur une interface et sur le serveur ses pire je n'arive maime pas a suplie un objet aider moi svp
Kepler #3
Posted 04 October 2017 - 06:31 AM
I have a problem your with your program since I made the day of the Turkish program no longer takes anything in a me go I put it on an interface and on the server its worst I do not like suplie an object help me please

If anyone can help with the translation, it would be appreciated.

In order to use the Applied Energistics interface, you need to have the open peripherals mod.

If you don't have open peripherals, you can only use a chest - this requires the plethora mod.

Try using a chest instead of an interface to see if this works or not.

Can you supply:

Minecraftt version = ?
Computercraft version = ?
Open peripherals installed (Y/N) ?
Plethora installed (Y/N) ?
marv21222324 #4
Posted 04 October 2017 - 08:51 PM
help me https://www.youtube.com/watch?v=h9s4gPkQPho
Kepler #5
Posted 05 October 2017 - 10:53 PM
This should fix the 1.7 issues:

pastebin run sj4VMVJj automatic

Then re-run the program. Let me know if you still have problems.
chumprock #6
Posted 15 December 2017 - 08:01 PM
Downloading schematics
Option 1: Use wget if the schematic is available for download.

I'm familiar with wget and other file transfer techniques outside of minecraft, but have no idea how to use it with cc? Is it a downloadable program, or added in a specific version?

Gonna give the conversion a try on windows..
KingofGamesYami #7
Posted 16 December 2017 - 02:41 AM
wget was added in ComputerCraft 1.77.
Bomb Bloke #8
Posted 16 December 2017 - 08:58 AM
… but for the purposes of schematic files, quite useless prior to CC1.80, as that's where binary-mode web handles become available. Prior to that, if you want to transfer non-ASCII data to a CC system using the internet, you'll need to re-encode to something like base64.
chumprock #9
Posted 16 December 2017 - 02:22 PM
… but for the purposes of schematic files, quite useless prior to CC1.80, as that's where binary-mode web handles become available. Prior to that, if you want to transfer non-ASCII data to a CC system using the internet, you'll need to re-encode to something like base64.

Yeah.. I'm running 1.75 and there's no wget to use. Tried a few workarounds like std and every schematic I get I can view in mcedit, but not open with builder.
My attempts at encoding throw an error as well, so I think I'll just go build the damn thing by hand and re-visit this when the server finally moves to a newer version.

Also, the biggest online collection of schematics is behind a login, so you cant wget those anyway without re-uploading them somewhere else first.

Love the idea though, hope I can try it someday.
Bomb Bloke #10
Posted 17 December 2017 - 12:34 AM
Another method of transferring the files is to manually copy them into the world save of a single-player world (which is a good opportunity to make sure they work the way you want them to), then use BBPack to upload them to pastebin, from which they can then be downloaded to whatever server it is you want to use them on.
Kepler #11
Posted 17 December 2017 - 02:09 AM
I usually use the base64 + pastebin method described in the OP. If you are downloading from planetmincraft, you can find the direct link in the html source (view source). Just search for 'schematic' in the page source to find the URL.
chumprock #12
Posted 18 December 2017 - 02:29 PM
Thanks for the suggestions.. my base64 conversions didnt work either. As someone who is used to "just figuring it out", this has become something of a puzzle I need to solve at this point.

so first… I guess I'll see if I can get the suggested steps working with the Base64 encode/decode. I've tried it with the windows example above, as well as a couple third-party encoders. The encoded file looks fine and there were no errors generated.
I uploaded the contents to pastebin, then tried to run it and receive the following:



base64.lua:65: Expected number, number




But I can download and build the chicken example in the original post. Please let me know if I'm making any obvious mistakes, or if there's any logging or info I can look at to decipher what isn't working.

Thanks for the help!
Bomb Bloke #13
Posted 18 December 2017 - 10:36 PM
I suspect it'd be a lot easier to comment on what might be going wrong if you provided the link to your uploaded base64 data.
Kepler #14
Posted 19 December 2017 - 05:22 AM
Can you provide the URL of the source schematic you are trying to build? I can convert and upload the pastebin for you.
Backspace #15
Posted 26 January 2018 - 04:04 AM
Hey everyone, so i love this mod and i was able to get the chicken to work. But im haveing a lot of trouble creating my own .schematics.

Im running CC1.7.5 and minecraft 1.7.10

My biggest issue is how do i create a file that the schematic builder will accept? I have been trying now for the past 3 hours to figure it out. I downloaded and made a simple cube in MCEdit, which saves as an NBT file but then i cant seem to get it into the format the program likes.

Right now i have a file called TestBuild.nbt, what do i need to do from here to get my little turtle building.

Thank you again, this is an awesome program an i really hope i can get it to work, thank you.
ole22143 #16
Posted 15 February 2018 - 11:59 AM
you have to remove all enter keys in the base64 otherwhise it will not work
atithaoss #17
Posted 09 March 2018 - 06:48 AM
Hello I am wondering if this works on MC 1.12 and the latest plethora peripherals.
I tried it with a chest below a turtle but when I run builder with the chicken schematic i receive this
Loading schematic
Substituting blocks
builder.lua:1933: attempt to compare number with string

Can I fix it?
Thanks in advance
Edited on 09 March 2018 - 05:54 AM
Kepler #18
Posted 09 March 2018 - 05:17 PM
Hello I am wondering if this works on MC 1.12 and the latest plethora peripherals.
I tried it with a chest below a turtle but when I run builder with the chicken schematic i receive this
Loading schematic
Substituting blocks
builder.lua:1933: attempt to compare number with string

Can I fix it?
Thanks in advance

I believe you have fuel disabled on your server which I've not supported yet. Can you try with setting fuel back to the standard setting? Thanks - I'll add unlimited fuel in future versions.
atithaoss #19
Posted 09 March 2018 - 08:42 PM
You have absolutely right.
Now it is working perfectly.
JacobF #20
Posted 01 April 2018 - 07:37 PM
So I tried using the program through a opus install and the turtle goes out places one block and errors out. With this message on the screen:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event. lua :47:
util.lua:384: Unable to open
usr/builder/pantheon.progress

The turtle has fuel, a crescent hammer, and a piston and blocks to begin and a chest below his starting position. Here is the schematic in that I am trying to build.
https://www.planetminecraft.com/project/pantheon-rome/#tab_schemagic
Kepler #21
Posted 01 April 2018 - 07:55 PM
So I tried using the program through a opus install and the turtle goes out places one block and errors out. With this message on the screen:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event. lua :47:
util.lua:384: Unable to open
usr/builder/pantheon.progress

The turtle has fuel, a crescent hammer, and a piston and blocks to begin and a chest below his starting position. Here is the schematic in that I am trying to build.
https://www.planetmi.&#46;&#46;/#tab_schemagic

Are you able to create that file manually? It looks like a file permission issue with the file system.
JacobF #22
Posted 01 April 2018 - 08:59 PM
So I tried using the program through a opus install and the turtle goes out places one block and errors out. With this message on the screen:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event. lua :47:
util.lua:384: Unable to open
usr/builder/pantheon.progress

The turtle has fuel, a crescent hammer, and a piston and blocks to begin and a chest below his starting position. Here is the schematic in that I am trying to build.
https://www.planetmi.&#46;&#46;/#tab_schemagic

Are you able to create that file manually? It looks like a file permission issue with the file system.

File permisions were indeed spotty on the computer folder on my server. I have set them to be all writable. The turtle goes out places one block and gives me a new error:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event.lua:47:
chestAdapter18.lua:77: bad argument :
table expected, got nil
Kepler #23
Posted 03 April 2018 - 06:03 PM
So I tried using the program through a opus install and the turtle goes out places one block and errors out. With this message on the screen:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event. lua :47:
util.lua:384: Unable to open
usr/builder/pantheon.progress

The turtle has fuel, a crescent hammer, and a piston and blocks to begin and a chest below his starting position. Here is the schematic in that I am trying to build.
https://www.planetmi.&#46;&#46;/#tab_schemagic

Are you able to create that file manually? It looks like a file permission issue with the file system.

File permisions were indeed spotty on the computer folder on my server. I have set them to be all writable. The turtle goes out places one block and gives me a new error:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event.lua:47:
chestAdapter18.lua:77: bad argument :
table expected, got nil

Although I cannot exactly reproduce this issue, I believe I have fixed the root cause (was trying to refresh inventory even after the turtle had left the chest). Give this another try and let me know if there are still issues.

I have updated both develop-1.8 and master-1.8 with these changes.
JacobF #24
Posted 04 April 2018 - 04:13 AM
So I tried using the program through a opus install and the turtle goes out places one block and errors out. With this message on the screen:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event. lua :47:
util.lua:384: Unable to open
usr/builder/pantheon.progress

The turtle has fuel, a crescent hammer, and a piston and blocks to begin and a chest below his starting position. Here is the schematic in that I am trying to build.
https://www.planetmi.&#46;&#46;/#tab_schemagic

Are you able to create that file manually? It looks like a file permission issue with the file system.

File permisions were indeed spotty on the computer folder on my server. I have set them to be all writable. The turtle goes out places one block and gives me a new error:

1 minecraft:concrete:15 (x:0,z:1:y:0)
event.lua:47:
chestAdapter18.lua:77: bad argument :
table expected, got nil

Although I cannot exactly reproduce this issue, I believe I have fixed the root cause (was trying to refresh inventory even after the turtle had left the chest). Give this another try and let me know if there are still issues.

I have updated both develop-1.8 and master-1.8 with these changes.

That did it! Turtle is off to the races! Thank you so much for all your help!
marv21222324 #25
Posted 11 December 2018 - 09:50 PM
j'ai un problème le programme me dit sa quand j'essaye de l'ancer mon shematic que j'ais t'elecharger


I have a problem the program tells me it when I try to anchor my shematic I'm downloading you


marv21222324 #26
Posted 11 December 2018 - 10:29 PM
a
marv21222324 #27
Posted 12 December 2018 - 01:23 AM
j'essaie de lancer mon schematica mais sa me dit unknown file type help plese


i'm trying to run my schematica but it tells me unknown file type help plese


Kepler #28
Posted 12 December 2018 - 09:56 AM
j'essaie de lancer mon schematica mais sa me dit unknown file type help plese

i'm trying to run my schematica but it tells me unknown file type help plese

If you are in single player, simply copy the schematic file into the computer's directory in your world save.
If you are on a server, wget does not seem to work for binary files. Use base64 and pastebin to download schematics.

Instructions are located here: https://github.com/k...hematic-Builder
SquidDev #29
Posted 12 December 2018 - 11:25 AM
If you are on a server, wget does not seem to work for binary files. Use base64 and pastebin to download schematics.
It should on Minecraft 1.10+, though I'm not sure what version they're on.
marv21222324 #30
Posted 12 December 2018 - 09:28 PM
j'ais essayer avec le chicken;schematique ça marche mais quand j'essaille de faire la même chose pour mon schematique sa me dit unable to open url


I tried with the chicken schematically it works but when I try to do the same for my schematic it tells me unable to open url


marv21222324 #31
Posted 12 December 2018 - 10:50 PM
voici une vidéo de mes bug: https://www.youtube.com/watch?v=YTRjBdlXGz8&feature=youtu.be

here is a video of my bug : https://www.youtube.com/watch?v=YTRjBdlXGz8&feature=youtu.be


marv21222324 #32
Posted 14 December 2018 - 10:20 PM
help me please
Kepler #33
Posted 16 December 2018 - 07:05 PM
voici une vidéo de mes bug: https://www.youtube....eature=youtu.be

here is a video of my bug : https://www.youtube....eature=youtu.be

From what I saw in the video, I believe you had spaces in the file name.

Good: base64dl test.schematic http://pastebin.com/raw/xxxxxxx
Bad: base64dl this is a test.schematic http://pastebin.com/raw/xxxxxxx

Can you upload the schematic to pastebin and provide the URL. I can test with that.
Bomb Bloke #34
Posted 16 December 2018 - 10:58 PM
You should be able to wrap quotes around filenames, these days. The shell'll filter them out into single arguments.
marv21222324 #35
Posted 05 January 2019 - 03:04 PM
hello Kepler I have a question is that it is possible to put more turtul to build the same schematics to several turtul and for info I sui in mincraft 1.7.10
Edited on 05 January 2019 - 02:05 PM
marv21222324 #36
Posted 15 January 2019 - 12:37 PM
kelper
Kepler #37
Posted 15 January 2019 - 07:09 PM
hello Kepler I have a question is that it is possible to put more turtul to build the same schematics to several turtul and for info I sui in mincraft 1.7.10

No, only 1 turtle can build…
marv21222324 #38
Posted 19 January 2019 - 12:13 PM
thx merci