Computercraft: Are startup on turtles unreliable?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

infernalinfernos

New Member
Jul 29, 2019
48
0
0
So for a mob farm I have I have multiple turtles with the same code as the startup that makes them attack the mobs. I would like them to be run 24/7, but it seems like sometimes I find that some of them are notattacking, making me right click ones that don't work to make them startup. I thought that startup is always ran 24/7 unless you terminate it, but something makes some of them stop (relogging? unloading chunk? idk). Is this because the turtles are unreliable, or am I doing/understanding something wrong?

P.S. I'm really bad with computercraft, so excuse my bad computer terminology
 
Startup will run whenever a turtle is rebooted or reloaded. But if the chunk that it's in isn't loaded, then the turtle will not run - just like any other device. Try adding a chunkloader and see if you still have issues.

I have a number of turtles running Startup programs within chunkloaded areas, and I have never once had to restart them.
 
Hmm. I guess I'll try that the next time I see my turtles not attacking. Thanks for the suggestion!

Edit: Well, it just did it again when I relogged. I don't think chunk loaders can help with this problem :/
 
This is a bug that the creator of the mod is attempting to work out he worked it out before this update of mine craft but apparently it is back. He is currently working on it again for the next release of Computer Craft.[DOUBLEPOST=1368937127][/DOUBLEPOST]I just thought of this but have not tested it if you have a redstone current run by the turtle / computer it should cause a block update and might make the turtle do its startup command.
 
Do you have a sleep(n) somewhere in the program? Cc will automatically stop a program that runs to long without it.
 
He is trying to get a startup command to work. Startup commands run the second a computer turns on but his computers are just not turning on until he right clicks them. He needs to find a way to turn his turtles on automatically.
 
my statement was because he said he wanted them running 24/7, which i assume means he is on a server.
 
No, I do not have sleep in my program, I'll add that and see if that helps
No, this is not a server, just some classic SSP.
Thanks for the help guys :)
P.S. Anyone have a good idea how long the sleep should be to make it attack at maximum speed?
 
No, I do not have sleep in my program, I'll add that and see if that helps
No, this is not a server, just some classic SSP.
Thanks for the help guys :)
P.S. Anyone have a good idea how long the sleep should be to make it attack at maximum speed?
Well, for "maximum speed" you wouldn't use any sleep at all. ;)
That would also potentially be laggy.

You said this was for a mob farm, yes? The turtles on my mob farm have sleep(1) built in and it runs fine. You could probably get away with less if you wanted to.
 
a good script for mob farm turtles is to have water drop the mods onto pressure plates, then use the Redstone.getinput() command to only make the turtles attack when there's a mob in front of them, and sleep while there isn't any.
 
Well, my mob farm is kinda wacky: because it has quite a few soul shard spawners, I need them to fall onto a floor of melee turtles to kill them asap, so I need them to be attacking all the time. I think i'll put the sleep to 0.5 and see how it goes.
 
you're better off dropping then onto a floor of flowing water that Wil funnel then into a single turtle or two, it'll be far far less laggy, more reliable, and just as fast!
 
Well, for "maximum speed" you wouldn't use any sleep at all. ;)
That would also potentially be laggy.

.

Cc also has it built in now that if you don't have a sleep(n) somewhere in a continuous program it will eventually pause the program.
 
Cc also has it built in now that if you don't have a sleep(n) somewhere in a continuous program it will eventually pause the program.
Right right - I didn't mean to imply that he should actually go without the sleep command. I was just trying to comment on the irony of asking for "maximum speed" when discussing a command whose sole purpose is to introduce a delay. Obviously my attempt at humor failed. :rolleyes:
 
  • Like
Reactions: Eyamaz
Right right - I didn't mean to imply that he should actually go without the sleep command. I was just trying to comment on the irony of asking for "maximum speed" when discussing a command whose sole purpose is to introduce a delay. Obviously my attempt at humor failed. :rolleyes:

Oh, humor...

Ha.

Sorry, it's been a very long day :(
 
  • Like
Reactions: Silent_007
Sorry, it's been a very long day :(
Ah no worries, I can relate. I wrote almost an entire chapter of my master's thesis today. :eek:
(Perhaps that's why my humor was so hopeless... someone needs to give my brain a whack with a crescent hammer...)
 
  • Like
Reactions: Eyamaz