Script names ending in "iss" fail to exit

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
Scoops
GamingTools Subscriber
Posts: 1
Joined: Fri Feb 13, 2009 9:44 pm

Script names ending in "iss" fail to exit

Post by Scoops » Tue Jul 08, 2014 12:05 pm

FYI -- if the script name ends in "iss" then Script:End and "endscript <scriptname>" cannot end the script (no error message, it just says "Ending <scriptname> failed" in the console. Consider this simplified example (save it as "bliss.iss"):

Code: Select all

function main&#40;&#41;
&#123;
	echo $&#123;Time&#125;&#58; Starting
	do
	&#123;
		echo $&#123;Time&#125;&#58;  Waiting 2 seconds, then ending...
		wait 20
		Script&#58;End
	&#125;
	while 1	
&#125;

function atexit&#40;&#41;
&#123;
	echo $&#123;Time&#125;&#58; Ending
&#125;
It will run forever, never reaching atexit(). Attempting to use "endscript bliss" results in the message "Ending bliss failed" in the console.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Tue Jul 08, 2014 2:22 pm

Thanks for the simple sample. :)

Inner Space build 6017, now the development build of Inner Space, corrects this issue. Right click IS, select Patcher, tick "Download development (test) patches" and then close and restart Inner Space to let it patch up.

Post Reply