You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is difficult to explain, so here's what I'd like to point out
Begin ScriptEffectUpdate
PrintD "ScriptEffectUpdate1"
; This script effect can be interrupted by a Quest Script here
PrintD "ScriptEffectUpdate2"
; Or here...
PrintD "ScriptEffectUpdate3"
; Or here...
; etc.
End
I don't know if this is the expected behaviour, but I find it abnormal for a script to be interrupted in the middle of execution by something other than Events. The problem occurs randomly but is obviously much easier to reproduce with Low Processing Delay.
One of the other disadvantages of the problem I'm describing is that when the console logs are saved, there's a good chance that the data in the Log file will be erased. Using ‘PrintD’ deletes the logs whereas ‘WriteStringToFile’ keeps them.
I therefore created a very simple mod ‘TestLog.esp’ in order to isolate the problem and reproduce it easily. TestLog.zip
Here are the logs I get when I use WriteStringToFile (cause PrintD deletes the contents of the log file when the problem occurs):
Note : This result was generated with NVSE 6.3.5b and only FalloutNV.esm and TestLog.esp loaded.
The text was updated successfully, but these errors were encountered:
What is likely happening here (as you may have presumed) is that the script effect script is running on a different thread.
Unfortunately this means that nothing will happen in a predictable order and the logging functionality has not taken any of this into account. This of means your script is not getting 'interrupted' but instead they are running at the same time as each other.
We can fix the log output being clobbered though.
If you have any other questions feel free to join the discord and ping me '@confused'. I appreciate the report!
You would be nice if you could fix the log output being clobbered though. I'd really appreciate it. It would make debugging easier while using PrintD. Having the scripts effects running on a different thread is not a problem as long as you are aware of it (maybe the information is on the geck wiki and I just missed it).
The problem is difficult to explain, so here's what I'd like to point out
I don't know if this is the expected behaviour, but I find it abnormal for a script to be interrupted in the middle of execution by something other than Events. The problem occurs randomly but is obviously much easier to reproduce with Low Processing Delay.
One of the other disadvantages of the problem I'm describing is that when the console logs are saved, there's a good chance that the data in the Log file will be erased. Using ‘PrintD’ deletes the logs whereas ‘WriteStringToFile’ keeps them.
I therefore created a very simple mod ‘TestLog.esp’ in order to isolate the problem and reproduce it easily.
TestLog.zip
Here are the logs I get when I use WriteStringToFile (cause PrintD deletes the contents of the log file when the problem occurs):
Note : This result was generated with NVSE 6.3.5b and only FalloutNV.esm and TestLog.esp loaded.
The text was updated successfully, but these errors were encountered: