In KSP multiscript, “stop_wait” stops working— and $NI_CALLBACK_ID returns a negative number

I wrote a KSP multiscript for Kontakt which uses stop_wait to cut short the wait times I've applied to other events.
For the most part, the script works as I want it to. But every now and then, out of the blue, it stops working. (It ceases to stop the wait of the other events.) I was debugging it and noticed that while the script normally gives a positive number for for the $NI_CALLBACK_ID, when it stops functioning properly the script gives a negative number for the $NI_CALLBACK_ID-- (that is, a number with a hyphen in front of it.)
Right now, the only way I know to fix it is to quit VE Pro (unloading some 90 GB of ram in the process) and then reloading. This is rather time consuming. Any ideas what the problem might be and how to fix it?
(I tried a shot in the dark and tried storing the NI callback ID as its absolute value, but that didn't fix it.)
Categories
- All Categories
- 21 Welcome
- 747 Hangout
- 73 NI News
- 353 Tech Talks
- 1.6K Native Access
- 7.2K Komplete
- 937 Komplete General
- 1.7K Komplete Kontrol
- 2.6K Kontakt
- 660 Reaktor
- 229 Battery 4
- 395 Guitar Rig & FX
- 264 Massive X & Synths
- 390 Other Software & Hardware
- 3.1K Maschine
- 23 Sampling Room
- 3.8K Traktor
- 3.5K Traktor Software & Hardware
- Check out everything you can do
- Create an account
- See member benefits
- Answer questions
- Ask the community
- See product news
- Connect with creators