Author Topic: Script Time Out Error  (Read 3059 times)

Dr Obvious

  • Regular
  • **
  • Posts: 53
    • View Profile
    • http://www.drobvious.net
Script Time Out Error
« on: 2005-09-20, 11:55:42 PM »
So I have my game finished and all, but every now and then I get a random error that I cannot reproduce on will: Script timeout error.

It happens at random places in my game and always in places in the script that have nothing to do with where my game crashed.  Any idea what this error is?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Timeout
« Reply #1 on: 2005-09-21, 05:04:00 AM »
A script timeout error occurs if your script ever takes more than 2 seconds to do something (because it's supposed to come back about 60 times a second, GameDev figures if it's taken 2 whole seconds, somethings gone wrong).  If your script legitimately takes more than 2 seconds to do some things, you can increase the timeout by setting HostObj.ScriptTimeOutSeconds to a value greater than 2, or you can set it to 0 to disable script timeout.

Dr Obvious

  • Regular
  • **
  • Posts: 53
    • View Profile
    • http://www.drobvious.net
Script Time Out Error
« Reply #2 on: 2005-09-21, 03:00:05 PM »
where in my script would I set that?

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Script Time Out Error
« Reply #3 on: 2005-09-22, 05:38:32 AM »
Anywhere before the timeout happens.  You could set it at the top of the file or right before the call to ProjectObj.GamePlayer.Play or in Player_OnPlayInit.