Jump to content




Logout -> Login, Programm stops


  • You cannot reply to this topic
9 replies to this topic

#1 skycraft1811

  • New Members
  • 3 posts

Posted 15 October 2012 - 12:48 PM

Hey everyone, hope somebody can help me :D/>

Everytime I log out and later back in my turtle stops right were he was.
Is there a way, that the turtle can continue to mine for me?

I wrote a simple program which works fine, but it is bad, if I have to bring him back up and let him start again "mining air".

Is there a way to prevent that? If not, any other suggestions, on how to make him work correctly


Thanks :P/>

#2 JoshhT

  • New Members
  • 64 posts
  • LocationAustralia

Posted 15 October 2012 - 12:50 PM

I hope you're not talking about single player right? Lol.
You mean you start your turtle then log out of the server yes?

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 15 October 2012 - 01:00 PM

Single player: no

Multiplayer: Yes, I hear world anchors will prevent this? I've heard that turtles need users around them for them to work. Not sure if I'm right.

#4 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 October 2012 - 01:03 PM

View PostsIdEkIcK_, on 15 October 2012 - 01:00 PM, said:

Single player: no

Multiplayer: Yes, I hear world anchors will prevent this? I've heard that turtles need users around them for them to work. Not sure if I'm right.
yes, yes they do
confirmed in smp

#5 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 15 October 2012 - 01:08 PM

View PostPixelToast, on 15 October 2012 - 01:03 PM, said:

View PostsIdEkIcK_, on 15 October 2012 - 01:00 PM, said:

Single player: no

Multiplayer: Yes, I hear world anchors will prevent this? I've heard that turtles need users around them for them to work. Not sure if I'm right.
yes, yes they do
confirmed in smp

My mistake, how does it work?

#6 skycraft1811

  • New Members
  • 3 posts

Posted 15 October 2012 - 01:11 PM

View PostJoshhT, on 15 October 2012 - 12:50 PM, said:

I hope you're not talking about single player right? Lol.
You mean you start your turtle then log out of the server yes?

xD No, I mean: I start my turtle, record some lps and then(!) log out after 1hour or so ...

Ok, then I will program a strip mine turtle :D/>

thanks

#7 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 15 October 2012 - 01:13 PM

View PostsIdEkIcK_, on 15 October 2012 - 01:08 PM, said:

My mistake, how does it work?
it loads the chunks in a 16 (i think) block radius allowing for things to run as if there is a player by it

#8 I_IblackI_I

  • Members
  • 7 posts

Posted 16 October 2012 - 01:11 PM

edit the startup of ur turtle and make it
shell.run("program")
this should run ur mining program again when u login

#9 ChunLing

  • Members
  • 2,027 posts

Posted 17 October 2012 - 12:42 AM

You can also use the fs API to make sure that your turtle remembers where it was in the task. This is harder to do with turtles than with computers, since they move about and change direction and all, but it is certainly possible. Though my suggestion is to have a computer remote control the turtles and do all the remembering, rather than having the turtles do it.

#10 Sammich Lord

    IRC Addict

  • Members
  • 1,212 posts
  • LocationThe Sammich Kingdom

Posted 17 October 2012 - 03:04 AM

What you want to do is in the loop that mines have it save the status to a file. Then when you run the program it checks the file for the status, but if there is no status file it creates one and starts mining. That is the basics, check the wiki for more help.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users