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

Dirwolf20 Quarry

Started by blackarchan, 03 April 2013 - 10:16 PM
blackarchan #1
Posted 04 April 2013 - 12:16 AM
I've set up everything exactly, but when I try to run the dig command only one turtle on the line run the cycle command.I labeld all my turtles from qt1 to qt9 its possible this to cause anny problems??
I used os.getComputerID() in lua to get the computers id so i can change them in the dig program on the main programm.

Im using FTB Ultimate.

Any suggestions???And btw at first it worked ok for some time but after a while from 3 turtles only one it was working then i added the extra 6 and labeled them
Bubba #2
Posted 04 April 2013 - 12:36 AM
You need to post the code you are using for us to be of any help to you (please put it on pastebin, not just pasted directly into the forum). Although it is my personal opinion that you shouldn't use Direwolf20 as a good example of coding, and honestly you would be better off starting out with smaller projects and working up towards your own quarry program.
blackarchan #3
Posted 04 April 2013 - 12:43 AM
Turtles Programs:
awaitCommand: http://pastebin.com/6RUB2fav
cycle: http://pastebin.com/BD4dVuv5
startup: http://pastebin.com/h2aBCf9N

MainComputer Programs:
autocycle: http://pastebin.com/fZPZYub0
cycle: http://pastebin.com/VG0eFdXH
dig: http://pastebin.com/bMRwFg5J
frameMove: http://pastebin.com/rzHaJqWr
startup: http://pastebin.com/Rd3AK1Ak

I dont think the code is the problem…for lets say 20-50 digs it worked perfectly… but after that instead mining a 3wide it only mined the middle one….
Bubba #4
Posted 04 April 2013 - 12:46 AM
Yikes. I really don't agree with the way Direwolf codes. That much shell.run should be avoided. I'll take a look at it, but you would probably be better off just rewriting the thing.

Edit: Take a look at this. Much more versatile, much more stable. 1700+ lines of code all devoted to a quarry program that excavates as much area in as little time as possible.
blackarchan #5
Posted 04 April 2013 - 12:49 AM
How can be something wrong with the code when it run flawles at first???more likely its a bug with rednet
Bubba #6
Posted 04 April 2013 - 12:51 AM
How can be something wrong with the code when it run flawles at first???more likely its a bug with rednet

More likely it's a bug with his program. Either that or your turtles are out of fuel, but seeing as how you didn't mention anything about them not moving I'm assuming that it's not that.

It is also possible that for some reason this code no longer applies to CC 1.52, as I assume it's fairly outdated.
blackarchan #7
Posted 04 April 2013 - 12:53 AM
they just place the mining well in front of them pick the items put them in the ender chests pick the mining well and redo the same thing all over again after the frame moves 1 block in frond

The problem is when i give the redstone signal to the main computer only the turtle with id 35 receives it and starts the cycle others nothing
PonyKuu #8
Posted 04 April 2013 - 04:03 AM
*sigh* Direwolf's code… It is a good concept, but a bad code.
Try to add some debug output… Look what do turtles recieve (Even now they should print a message) Check the IDs of the turtles again.
Check the inventories - maybe there are no mining wells anymore… Try to add a bit of a delay between frameMove and dig calls…
Can you answer me, why do you check only first ten slots when you dump stuff to the chest? What if some precious diamonds land in slot 11?
It is better to use modem directly rather than rednet API to send a command to all the turtles - that way you will send only one message instead of 16 or so on

Bubba, it is VERY hard to find something faster than this thing. It's like 16x1x64 in 30 seconds. The problem is that the code is not very good.

Edit: Well, actually, my swarm can mine something like 100 blocks/second, but you need 64 turtles to do that, and I haven't release the improved version yet, there are some bugs that I want to fix first.
And that's peak speed, there are also deployment stage (to place 64 modules it needs about 2 minutes) and finishing stage when it obviously doesn't run at it's maximum speed. Something like this thing can mine even faster - just use more mining wells, turtles and power.
PixelToast #9
Posted 04 April 2013 - 04:47 AM
Well, actually, my swarm can mine something like 100 blocks/second, but you need 64 turtles to do that, and I haven't release the improved version yet, there are some bugs that I want to fix first.
And that's peak speed, there are also deployment stage (to place 64 modules it needs about 2 minutes) and finishing stage when it obviously doesn't run at it's maximum speed. Something like this thing can mine even faster - just use more mining wells, turtles and power.
o.o kinda like my turtle swarm?
it can pretty much run whatever you want after its formed
it also has data on its exact position in the swarm, making it easy to program complex swarm movements

PM if your interested in the source

i wouldnt use direwolf code.-. its bad
PonyKuu #10
Posted 04 April 2013 - 04:53 AM
Like Eloraam's turtle swarm. Here is my thread: http://www.computerc...arm-quarry-v01/
The quarry program posted there is much slower than 100 blocks/sec, but I'm working on a faster version
There are also APIs that allow you make other swarm programs…
Engineer #11
Posted 04 April 2013 - 12:22 PM
Im assuming you dont knowCC Lua that well. Take a look at the tutorial section and read the the Lua Pil. Just read it so you have an idea what you are doing.

Off topic:
I hate quarries. Especially in vanilla mc with some kind of quarry. I mean just look at the name:MineCraft.
You are using ultimate pack, so its kinda reasonable. Just my thoughts
encore493 #12
Posted 06 April 2013 - 01:25 PM
Is there any chance one of u can take a look at the concept of his programs and make it better?
Dlcruz129 #13
Posted 06 April 2013 - 06:06 PM
Is there any chance one of u can take a look at the concept of his programs and make it better?

See my signature. Or just learn Lua yourself, or just get Buildcraft, or use one of the programs already suggested.