Jump to content




New method for turtle API - direction.


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

#21 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 09 December 2012 - 07:56 AM

View PostCoolisTheName007, on 09 December 2012 - 07:41 AM, said:

...If instead one saved part of the state, e.g. the turtle.native queue...

It already does.

#22 CoolisTheName007

  • Members
  • 304 posts

Posted 09 December 2012 - 08:08 AM

View PostCloudy, on 09 December 2012 - 07:56 AM, said:

snip
How is then that people were complaining about saving future position, calling turtle.forward and then chunk unload causing unsync between save and real position? Which is the same as calling turtle.native.forward(), if there's an unload.

#23 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 09 December 2012 - 08:09 AM

View PostCoolisTheName007, on 09 December 2012 - 08:08 AM, said:

View PostCloudy, on 09 December 2012 - 07:56 AM, said:

snip
How is then that people were complaining about saving future position, calling turtle.forward and then chunk unload causing unsync between save and real position? Which is the same as calling turtle.native.forward(), if there's an unload.

I'm not sure of the behaviour if it is in the middle of moving and then the server shuts down. Perhaps it will have moved, perhaps it won't - I'm leaning towards the former.

#24 CoolisTheName007

  • Members
  • 304 posts

Posted 09 December 2012 - 08:23 AM

View PostCloudy, on 09 December 2012 - 08:09 AM, said:

snip
By server shutdown, I assume we refer to an ordered shutdown, not a hurricane-was-in-a-hurry shutdown?
If it's uncertain if the turtle has moved, then the only logical alternative to get the right coords after chunk load is that:
-There is an output queue that only gets events in case of movement success;
-This queue is resumed and events are queued to the respective computers;
-The computer catches the events;
This happens right after the chunk loads, so I'm not certain event queues work like this.

If this is not the case, then there is no safe way to keep the position saved.

#25 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 09 December 2012 - 08:35 AM

As I'm sure I said before - when persistence comes, this shouldn't be a problem, since everything about the computer will be persisted. I'm not going to have this argument again for the umpteenth time.

#26 CoolisTheName007

  • Members
  • 304 posts

Posted 09 December 2012 - 08:38 AM

View PostCloudy, on 09 December 2012 - 08:35 AM, said:

snip
Sorry, assumed you had given up total persistence.

#27 Tiin57

    Java Lunatic

  • Members
  • 1,412 posts
  • LocationIndiana, United States

Posted 09 December 2012 - 01:43 PM

Snip.
Dammit, there was another page. :/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users