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

single program controlling multi-turtle Maze dig

Started by Dragonlordhavoc, 14 July 2014 - 08:25 PM
Dragonlordhavoc #1
Posted 14 July 2014 - 10:25 PM
Ok I First I need to say this I suck at lua, I can do some basic stuff but not much.

This is what I have tried failed, got friends who said they where good at computercraft they failed so I am here.

I need a program where I can either run a single computer with rednet wireless system with around 8 turtle runing the modified version of the Maze Program ( which I like a lot produced by JPiolHo ). The Maze is a huge area and our sever has the bug to where after sever restart we lose the program being it is Direwolf 20 sever. The plan is to 321 x 321 multilevel maze. I was going to do each floor at a time to allow me to make and set traps, spawners and such. build the ceiling and make the next floor. and so on. but given I have only 5 hours before the sever resets I need to do floors in a hurry and not lose program. I to do this in a set world since our sever can not hold any more maps.

If you have a better Idea of how to do this large of a area really quick please post.
Bomb Bloke #2
Posted 15 July 2014 - 05:45 AM
I guess my first recommendation is "find a server which isn't rebooted every five hours". Why would anyone want to restart it that often? What's the point?

Are you talking about a script which builds the maze, or tries to move through it?
zacekjakub #3
Posted 15 July 2014 - 05:57 AM
Really bad idea to restart the server so often… Can't see any legitimate reason for doing it… But if it's necessary, tell your administrator about your problem, for example, if I am going to restart the server, I save restartplanned=true on public webserver, which my users can see with their turtles at least 10 mins before the restart, so every user can automatically dock all turtles and they continue after the restart. :)/>
Dragonlordhavoc #4
Posted 15 July 2014 - 11:16 AM
1: I am a admin on the sever and the owner has the sever restart every 5 hours to keep players from afk chunkload since we have banned chunkloaders.

2: I need a script that either builds or digs the maze I was looking around and saw the swarm quarry mining program I need something like it but running the Maze Program that JPiolHo made since it seems to not have any issues on the sever.

3: The restart fix in the sever command line is already been done but the direwolf 20 pack still has the computercraft mod that had that issue in the code the update that fixes the issue has not been put in the pack and our players have had issues with adding in modifactions to the packs when we tried to add a pack that was update in direwolf awhile back.
hilburn #5
Posted 15 July 2014 - 02:13 PM
Honestly I think your best bet would be to pre-generate the maze, break it up into 8 equal parts, give each part to one of 8 turtles, set them loose. However I am not familiar with the maze program and couldn't tell you if this is actually possible without a major rewrite

I've played on servers that boot you after being afk for 10 minutes, not sure what plugin they used but it defeated my attempts at bypassing it (and I am very thorough when it comes to trying to break that kind of thing). Looking into that might be worthwhile as it will prevent the need for your restarts
Dragonlordhavoc #6
Posted 15 July 2014 - 03:03 PM
Honestly I think your best bet would be to pre-generate the maze, break it up into 8 equal parts, give each part to one of 8 turtles, set them loose. However I am not familiar with the maze program and couldn't tell you if this is actually possible without a major rewrite

I've played on servers that boot you after being afk for 10 minutes, not sure what plugin they used but it defeated my attempts at bypassing it (and I am very thorough when it comes to trying to break that kind of thing). Looking into that might be worthwhile as it will prevent the need for your restarts


Hmm that might work, but I planning multiple levels so that would only work for the first floor. this is to be a event that will always be running in our sever as for the the restart our owner believe's the restart is the best option even thou me and the rest of the admin and mod tell him their is alternatives.
zacekjakub #7
Posted 15 July 2014 - 03:04 PM
offtopic: Is not better to play on server with enabled anchors? :)/>
Bomb Bloke #8
Posted 15 July 2014 - 05:05 PM
Simply put, ComputerCraft doesn't sound suitable for the environment you're working within. Heck, lots of mods aren't - automation is a huge theme in the modding scene, but your server owner appears to be very much against it. Maybe tell him that if he really wants to waste his processor cycles on idle loops, he can set up a server white list with no names on it. That'll solve his problems.

While you could get the job done with turtles, I suspect that in the time you spent trying to convey the specifics of what you need done to someone who could guide you through the process of doing it, you could've dug the maze yourself multiple times over.

It sorta sounds like you want a maze for players to navigate their way through, but looking at jpiolho's thread it appears that his script is geared at making mazes only for other turtles.

3: The restart fix in the sever command line is already been done but the direwolf 20 pack still has the computercraft mod that had that issue in the code the update that fixes the issue has not been put in the pack and our players have had issues with adding in modifactions to the packs when we tried to add a pack that was update in direwolf awhile back.

What "issue" are you talking about? Please be specific about what you think's wrong. There isn't any version of ComputerCraft that automagically allows turtles to carry on from where they left off after a server reboot, if that's what you're suggesting - any "resume" functions have to be manually coded into their scripts (which, at best, start over from scratch when the turtles are next chunk loaded).
Dragonlordhavoc #9
Posted 15 July 2014 - 06:49 PM
The issue I was talking about has already been fixed in the 1.6 update I believe but has not made it to the direwolf 20 pack as of yet. To clarify it was the computers and turtles not running or have the the programs assign as Startup.

As for the Maze in jpiolho's thread it works out great for what I had planed I just use the builders wand and raise it up or I modify the code for it to dig down after it digs forward. either way works I just run in to at time issue or that the turtle arent running on the same maze scheme that they randomly produced.

As for the owner I cant say what his issue are and where he stands on mods.
Edited on 15 July 2014 - 04:54 PM
KingofGamesYami #10
Posted 15 July 2014 - 06:55 PM
The issue I was talking about has already been fixed in the 1.6 update I believe but has not made it to the direwolf 20 pack as of yet. To clarify it was the computers and turtles not running or have the the programs assign as Startup.

Ah, you are talking about the "startup script not running when chunk is loaded" issue.
Dragonlordhavoc #11
Posted 15 July 2014 - 07:12 PM
Oh so you know, since I am a admin I can still place chunkloaders down I just can leave them for to long since it lags our server with them on.
Dragonlordhavoc #12
Posted 16 July 2014 - 11:21 AM
ok update after a year of complaining about the restart time and the owner in need of this event to happen he reluctantly has increased the restart time to every 10 hours.