Jump to content

Recommended Posts

Posted

DLC01WESC03ScriptFix


Every now and then I got a whileloop running in my save.

 

Bats!

 

This should stop the loop. Could not test reliably, as it happens only....now and then.

 

TLTR:

 

Bats! is a magic effect done via a quest. Very rare, maybe the only one ?

There are several issues what can cause the endless running whileloop.

 

1. MGEF will be removed on cell change from objects and reapplied, if the objects moves with you.

2. the quest will be stopped via OnUnload() event, quite unreliable.

3. the creator must have realised, there is a problem, because he added the OnCellDetach() event in addition.

 

The culprit, the whileloop runs as long as the Queststage is 0.

In the detach-, unload events, the quest will be stopped Stop().

The Stop() will set the stage of the quest to 0 at the best. Good food for the whileloop, which runs as long the stage of the quest is 0.

 

What I did, setstage10, wait 1.2s and stop on both events detach and unload.

Tested, it seems to remove even running loops.

 

 


  • Submitter
  • Submitted
    11/02/2024
  • Category
  • Requirements
  • Regular Edition Compatible
    Yes

 

Posted (edited)

I think the problem with script DLC01WESC03Script.psc is that Event OnCellDetatch is misspelled. It is supposed to be Event OnCellDetach without the extra "t".

 

I think that USSEP 4.2.6 includes that correction. Unfortunately, Skyrim SE 1.5.97 users like me are stuck on USSEP 4.2.5b which does not have the fix.

 

@Tlam99 I downloaded your fix and I still see the misspelled event name in your modified DLC01WESC03Script.psc file.

 

I would really love it ❤️ if you could make a simpler fix that just corrects the event name. Thanks! ❤️

 

 

 

Edited by Herowynne
Posted (edited)

I used the script name from the resaver readout. This is a subscript fited by the quests magic effect.

Not the quest itself, but the magic effect made via quest is the culprit.

Read the psc and compare with the original psc to get the glue.

 I am on 1.5.97 and USSEP, too. Later one with a couple of tweaks (fixes)

 

In the script the name it's correct ?  And compioed ? Strange

Anyway, I will correct the name.

Thanks for pointing me to this error.

 

Corrected Event name, but I will not copy the USSEP correction, as this still has the inherited problem of setting the quest stage to 0 with all

the consequences of creating and not stopping the loop as explained.

It's an unthrottled whileloop ended if a reference closer than 2000. If this reference gots lost (any created ref has this potential) 

the whileloop runs forever.

For me, the even the only working event  Unload (Detach not working) stopped already running endless whileloops created.

This 2 are fired by similar things and do similar things, so one working has been enough.

Edited by Tlam99
  • 1 month later...
Posted

I had some black screen problems in the past and got one yesterday. They seemed to be caused by endless loops. As I cant get these in logs etc I am wondering how you found out that the causing scripts were the following ones?

Posted

Resaver.

After a playtime session I always check the latest 2 or 3 saves (made after a port or exit dungeon and so), compare active scripts.

If a script does not terminate, the follow up starts.

In average I got 1 active script. Except ZAZ or DD started a cleaning.

Then there are ca 8 active scripts.

  • 1 month later...
  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...