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
 

Silent_007

New Member
Jul 29, 2019
302
0
0
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.
 

infernalinfernos

New Member
Jul 29, 2019
48
0
0
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 :/
 

valithor

New Member
Jul 29, 2019
3
0
0
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.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
Do you have a sleep(n) somewhere in the program? Cc will automatically stop a program that runs to long without it.
 

valithor

New Member
Jul 29, 2019
3
0
0
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.
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
my statement was because he said he wanted them running 24/7, which i assume means he is on a server.
 

infernalinfernos

New Member
Jul 29, 2019
48
0
0
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?
 

Silent_007

New Member
Jul 29, 2019
302
0
0
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.
 

tompy97

New Member
Jul 29, 2019
85
0
0
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.
 

infernalinfernos

New Member
Jul 29, 2019
48
0
0
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.
 

tompy97

New Member
Jul 29, 2019
85
0
0
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!
 

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
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.
 

Silent_007

New Member
Jul 29, 2019
302
0
0
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

Eyamaz

New Member
Jul 29, 2019
2,373
0
0
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

Silent_007

New Member
Jul 29, 2019
302
0
0
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