infinite loop detection

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

n0tsane
Posts: 327
Joined: Tue, 9. Dec 03, 00:44
x3tc

infinite loop detection

Post by n0tsane »

i just want to say thanks again to Egosoft, you guys are great!

now that that is out of the way, i noticed the news release stated the newly updated script editor will have an "infinite loop detection". well i went into the editor and havn't found that option. i like several others installed the Station Accountant script that is stuck in an infinite loop and would like a way to turn it off without having to start a new game.
Last edited by n0tsane on Sat, 17. Jan 04, 23:57, edited 1 time in total.
User avatar
BurnIt!
EGOSOFT
EGOSOFT
Posts: 5116
Joined: Wed, 6. Nov 02, 20:31
x4

Post by BurnIt! »

General Commands -> bottom of the list.
BurnIt!
In der Ruhe liegt die Kraft. / In peace lies strength.
n0tsane
Posts: 327
Joined: Tue, 9. Dec 03, 00:44
x3tc

Post by n0tsane »

at the bottom of that list i get the Help command, it dosn't got any further down than that.
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

Umm... Try enabling the script editor again? Just a wild guess.
User avatar
BurnIt!
EGOSOFT
EGOSOFT
Posts: 5116
Joined: Wed, 6. Nov 02, 20:31
x4

Post by BurnIt! »

You need to activate this loop detection in the script you want to be monitored.
Select it like any other script command.
BurnIt!
In der Ruhe liegt die Kraft. / In peace lies strength.
n0tsane
Posts: 327
Joined: Tue, 9. Dec 03, 00:44
x3tc

Post by n0tsane »

well... you see... in an attempt to get rid of the script i was able to delete it from the list of scripts, but its still running. i was told that if i reinstalled the script it would have 2 of them running. i'm worried that if i do install a second one i'll only be able to remove that second one and still have my problem with the first one.
User avatar
BurnIt!
EGOSOFT
EGOSOFT
Posts: 5116
Joined: Wed, 6. Nov 02, 20:31
x4

Post by BurnIt! »

That's the danger of using unsupported features...
if the script runs on a ship then you can stop it by giving this ship a new command - if it does not I fear your game is screwed - that's unless someone else has a working workaround for this problem...
BurnIt!
In der Ruhe liegt die Kraft. / In peace lies strength.
n0tsane
Posts: 327
Joined: Tue, 9. Dec 03, 00:44
x3tc

Post by n0tsane »

well i did reinstall the script and i still dont see anything of what your discribing. and it dosn't apear to be running two scripts from what i can see.

thanks for your help. hopefully someone can find a way to stop this script.
again its the StationAccountant v2 found at http://xscripting.com/
n0tsane
Posts: 327
Joined: Tue, 9. Dec 03, 00:44
x3tc

Post by n0tsane »

i've decided to just restart the game. i know this will sovle all my problems. i know the script editor wasn't supported when i installed the script that caused all this and will live with my mistake. but for those who wish to wait around for a way to stop this script, i wish you luck.
BradThorn
Posts: 671
Joined: Mon, 3. Nov 03, 23:07
x2

Re: infinite loop detection

Post by BradThorn »

n0tsane wrote: i like several others installed the Station Accountant script that is stuck in an infinite loop and would like a way to turn it off without having to start a new game.
Thats why I was hesitant to try such an invasive script, especially when so little is known about the editors capabilities.
Maybe theres a way to write a "kill script" command that disables a selected running script? run it -> select script/process -> terminated.

I believe there is now a version of the script that runs just once which might be a better option, but for now I'm just going to stick to fine-tuning my factories economy buy/sell prices. Set it up so all the money eventually finds their way into the hands of the Power Plants or something like that. Unfortunatly so far the Crystal Fabs still make a profit as well, due to costing 1200 to make, but a minimum sell of 1432.
Mehrunes
Posts: 645
Joined: Wed, 3. Dec 03, 03:10
x4

Post by Mehrunes »

To be safe, always run a script on an object that you can safely destroy. I believe there is a script wrapper that uses asteroids for this purpose at www.xscripting.com .
Sire404
Posts: 17
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by Sire404 »

Mehrunes wrote:To be safe, always run a script on an object that you can safely destroy. I believe there is a script wrapper that uses asteroids for this purpose at www.xscripting.com .
Yes that reminds me to try and destoy the ships that I suspect are running crappy code (causing my game to a crawl of around 10 fps).

Return to “X²: The Threat - Scripts and Modding”