Jump to content




Startup Script Freezes On Turtle.select()


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

#1 Cjreek

  • Members
  • 3 posts

Posted 12 September 2013 - 12:24 PM

Hi,

In my startup script for a turtle sometimes after loading the world (SP) the turtle freezes at a turtle.select() command.
I'm using Direwolf 20 1.5 v2 v1.1.3 FTB modpack (if this matters). it's quite annoying because I've to terminate and restart the program
manually sometimes which kinda destroys the advantage of startup scripts :-(

Edit: It's this script: http://pastebin.com/xch4dzMJ (line 34)

It also happens sometimes if I set a "turtle.select(1)" before the main while-true-do-loop

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 12 September 2013 - 01:44 PM

Split into new topic.

#3 immibis

    Lua God

  • Members
  • 1,033 posts
  • LocationWellington, New Zealand

Posted 12 September 2013 - 05:29 PM

Try calling sleep at the start. I've heard that some APIs have problems if you call them before pulling any other events (which sleep does internally)

#4 Cjreek

  • Members
  • 3 posts

Posted 13 September 2013 - 06:49 AM

Thanks Lua God,immibis I think this works :) (After restarting the world about 1246 times it never froze again so I think this fixed it)

#5 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 13 September 2013 - 02:21 PM

View PostCjreek, on 13 September 2013 - 06:49 AM, said:

Thanks Lua God, I think this works :) (After restarting the world about 1246 times it never froze again so I think this fixed it)

A quick off-topic note:
The username of people is written on that blue line, above the reply. Lua God, Clueless are just "ranks", they depend on post count, they're not representing what a user is and are not usernames.

#6 Cjreek

  • Members
  • 3 posts

Posted 14 September 2013 - 07:30 AM

Oh thanks^^ I must have missed that :rolleyes:





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users