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

X*X Bridge builder / X*X Brückenbauer [Eng/Ger]

Started by vantheman1wald, 13 January 2013 - 03:24 AM
vantheman1wald #1
Posted 13 January 2013 - 04:24 AM
Hello everyone!
Here I show you my Bridge builder.
Features:
- Version 1.0:
•Choose length and width of the bridge
•Choose if you want a fence left and right at the end of the bridge or not
•Choose in what direction the turtle should build
- Version 1.1:
•Automatic refuelling if the fuel level is less than 10
•The turtle changes 'building slot' if the slot is empty
•better behavior with obstackles
•Fixed fence question in English version
- Version 1.2:
•Changed menu
•Added new mode: indoor - makes a roof
Downloads:
- Version 1.2:
English or if http api is enabled "pastebin get FdMKH9qr (name)"
German or if http api is enabled "pastebin get EZk62U2d (name)"
- Version 1.1:
English or if http api is enabled "pastebin get kLhLMZ3X (name)"
German or if http api is enabled "pastebin get nvjsueb9 (name)"
- Version 1.0:
•English or if http api is enabled "pastebin get hDnRWzLG (name)"
•German or if http api is enabled "pastebin get VWAtTHhr (name)"
Please leave a comment below to support me!
Sorry for my bad English :)/>

Hallo Leute!
Hier möchte ich euch meinen Brückenbauer vorstellen.
Features:
- Version 1.0:
•Wähle,wie lang und breit die Brücke sein soll
•Wähle,ob du an den Enden links und rechts einen Zaun haben willst
•Wähle,in welche Richtung die Turtle bauen soll
- Version 1.1:
•Automatisches Auftanken,wenn das Treibstofflevel weniger als 10 beträgt
•Die Turtle wechselt ihren "Bauslot" wenn der Slot leer ist
•Besseres Verhalten mit Hindernissen
•Zaunfrage in der englischen Version repariert
- Version 1.2:
•Menü geändert
•Neuer Modus hinzugefügt: überdacht - macht ein Dach
Downloads:
- Version 1.2:
Englisch oder wenn http api auf true ist "pastebin get FdMKH9qr (Name)
Deutsch oder wenn http api auf true ist "pastebin get EZk62U2d (Name)"
- Version 1.1:
English oder wenn http api auf true ist "pastebin get kLhLMZ3X (Name)"
Deutsch oder wenn http api auf true ist "pastebin get nvjsueb9 (Name)"
- Version 1.0:
•Englisch oder wenn http api auf true ist "pastebin get hDnRWzLG (Name)"
•Deutsch oder wenn http api auf true ist "pastebin get VWAtTHhr (Name)"
Bitte hinterlasst unten ein Kommentar,um mich zu unterstützen!
Edited on 22 February 2013 - 05:53 AM
Ulthean #2
Posted 16 January 2013 - 05:41 AM
Your english is just fine! :)/> I haven't actually tested the program since I don't need any bridges built, but I did take a look at the code:
  • For the english version you still have to replace 'ja' and 'nein' in the "if-then"s with yes and no, otherwise users will get pretty confused why their input isn't being accepted :)/>
  • Next is a thing you have to decide for yourself, though it is more appealing to have the turtle build it one length at a time (so starting from the player and moving away) it is probably a whole lot faster to do it the other way around. Let me clarify:
    • Suppose you have a bridge that is 64 squares long and 3 wide (and you want fences), at the moment you place the 5 blocks, place two fences and move to the next 'slice': this takes 7 moves and 4 turns. Assume a move and a turn each take 0.4 seconds, then 1 slice would take about 4.4 seconds to build.
    • Instead of this you can first place a length of 64 blocks, turn around, place another 64, turn another time and place the last 64 blocks completing the floor. Then you move to the correct position and have it place 64 fences at one side, then move to the other side and place another 64 fences. In this case after each move the turtle is able to place a block, so you only have 5 moves and no turns (except at the end of the 64 blocks, but the longer the bridge the less this matters). So a slice (3 blocks and 2 fences) only takes 5x0.4=2 seconds to build.
    • Basically this doubles the speed and halves the fuel usage, but like I said, it's cooler to see it build an entire slice and then move to the next one, so I understand why you did it that way.
  • Of course there is still plenty of room for improvement, since at this moment I don't think it will 'restock', so it can only build 4x16 bridges for example (=64 blocks in 1 slot). I guess it all depends on how much time you want to put into this program.
I do think you did a great job so far, and I think it's cool you have an english and german version.
Keep it up!
vantheman1wald #3
Posted 22 January 2013 - 05:39 AM
version 1.1 ist out!
Deor #4
Posted 21 February 2013 - 01:59 AM
Have been using this to build bridges and platforms in the Nether for a lava pumping system. Works really well and has saved me countless fiery deaths! Thanks for posting!
vantheman1wald #5
Posted 21 February 2013 - 06:41 AM
thanks for commenting ;)/>
vantheman1wald #6
Posted 22 February 2013 - 02:30 AM
thanks to the community for 1000 views and working on version 1.2
vantheman1wald #7
Posted 22 February 2013 - 06:54 AM
version 1.2 is out!