Had some trouble with what I thought was an infinite loop. After 20 minutes of trying to debug my script, I realized scriptDone never returns true anymore. {F18977} {F18978}
Description
Details
- Legacy ID
- 3086902641
- Severity
- Feature
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Feature Request
Run attached mission.
0.55.104268 Dev
Expected:
Hint showing "BEFORE SCRIPT".
Hint showing "IN SCRIPT.
Hint showing "AFTER SCRIPT".
Actual:
Hint showing "BEFORE SCRIPT".
Hint showing "IN SCRIPT".
Event Timeline
I think the problem is in the script itself, I've fiddled with it a bit and it works as you described it should. Try correcting your script in way i did in updated mission file attached.
P.S. Didn't change the name of the mission.
Hmm. Actually, nothing was wrong with the script.
I just realized that I had passed an invalid value (8) for exThreads on the command line.
It seems that setting exThreads to anything above 7 causes this issue.
Setting exThreads to 7 instead fixed it.
Perhaps add validation on the exThreads argument?
Thanks.
There were made some changes and I am not able to reproduce it on my computer anymore. Could you please check it and let me know? Thanks
Just checked on latest dev build. Still present. If exThreads is anything above 7, "AFTER SCRIPT" will not be shown.