by _mental_ » Sat Sep 07, 2019 1:54 am
I didn't fix it myself because the problem seems to be a bit wider. Consider the following script.
Code: Select all
script 42 open
{
Log(s:"Script 42");
ACS_Execute(43, 0, 0, 0, 0);
ACS_Execute(44, 0, 0, 0, 0);
ScriptWait(43);
ScriptWait(44);
ACS_Execute(45, 0, 0, 0, 0);
}
script 43 (void)
{
Log(s:"Script 43");
}
script 44 (void)
{
Log(s:"Script 44");
}
script 45 (void)
{
Log(s:"Script 45");
}
I assume that all messages should be printed. Although, scripts 43 and 44 were executed as expected, script 45 didn't run at all, and script 42 remains in pre-wait state indefinitely.
Is this a know issue or limitation?
BTW the output is a bit weird too.
Also, changing this code like the following fixes the problem.
Code: Select all
[code]script 42 open
{
Log(s:"Script 42");
ACS_Execute(43, 0, 0, 0, 0);
ScriptWait(43); // these lines...
ACS_Execute(44, 0, 0, 0, 0); // ... were swapped
ScriptWait(44);
ACS_Execute(45, 0, 0, 0, 0);
}
- Attachments
-
acs_exec_wait.pk3
- (1.04 KiB) Downloaded 22 times
I didn't fix it myself because the problem seems to be a bit wider. Consider the following script.[code]script 42 open
{
Log(s:"Script 42");
ACS_Execute(43, 0, 0, 0, 0);
ACS_Execute(44, 0, 0, 0, 0);
ScriptWait(43);
ScriptWait(44);
ACS_Execute(45, 0, 0, 0, 0);
}
script 43 (void)
{
Log(s:"Script 43");
}
script 44 (void)
{
Log(s:"Script 44");
}
script 45 (void)
{
Log(s:"Script 45");
}
[/code]
I assume that all messages should be printed. Although, scripts 43 and 44 were executed as expected, script 45 didn't run at all, and script 42 remains in pre-wait state indefinitely.
Is this a know issue or limitation?
BTW the output is a bit weird too.
[code]Script 42
Script 44
Script 43[/code]
Also, changing this code like the following fixes the problem.[code][code]script 42 open
{
Log(s:"Script 42");
ACS_Execute(43, 0, 0, 0, 0);
ScriptWait(43); // these lines...
ACS_Execute(44, 0, 0, 0, 0); // ... were swapped
ScriptWait(44);
ACS_Execute(45, 0, 0, 0, 0);
}[/code]