SRL Archive - Help

Proggress report problem


xlawlerx

2009-11-18 10:34:27

Maybe it's silly question but how can I stop script and still get proggy ? I only receive reports when bot finishes task set up in script (like 200 kills, 40 loads etc.) If I stop SCAR manually proggy is gone and I don't have a chance to look at interesting numbers :D

Wanted

2009-11-18 17:04:39

There isn't a way when manually stopping a script, you could just wait until the progress report is printed tho.

MylesMadness

2009-11-18 17:06:13

The scripter has to do it with ScriptTerminate;

Baked0420

2009-11-18 17:41:53

yea, just add this into the program:


procedure ScriptTerminate;
begin
Proggy; //or whatever the procedure is called for printing out the progress report
end;


then whenever the script stops, whether manually from the user, or it just ending, it'll always print out the progress report last.

Wanted

2009-11-18 18:03:28

From: Baked0420
yea, just add this into the program:


procedure ScriptTerminate;
begin
Proggy; //or whatever the procedure is called for printing out the progress report
end;


then whenever the script stops, whether manually from the user, or it just ending, it'll always print out the progress report last.


Manually wont do it.

IwriteCode

2009-11-18 21:42:33

I'amhaving the same problem is it possible to display the proggy when the user manually stops it? Any way around if if not?

MylesMadness

2009-11-19 18:40:23

From: IceFire908
Manually wont do it.
Yes it will…
program New;
Procedure ScriptTerminate;
begin
Writeln('HA!');
end;

begin
repeat
wait(1);
until false
end.

Wanted

2009-11-19 21:45:40

From: MylesMadness
Yes it will…
program New;
Procedure ScriptTerminate;
begin
Writeln('HA!');
end;

begin
repeat
wait(1);
until false
end.


Not always…

program New;
Procedure ScriptTerminate;
begin
Writeln('HA!');
end;

begin
Sleep(10000);
end.

MylesMadness

2009-11-20 15:36:06

It will after it finishes the current procedure, and most wont take ten seconds