Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CTD occurs when reloading a save if using a script that has registered the effectStart or effectFinish event. #1540

Closed
oto-git opened this issue Jul 7, 2023 · 2 comments
Assignees

Comments

@oto-git
Copy link

oto-git commented Jul 7, 2023

Severity

Critical. A critical defect that causes some key functionality to fail.

Priority

High. Anything that impacts the typical user flow or blocks app usage.

Description

After registering an effectStart or effectFinish event to cause a random NPC to appear, reloading a save of the situation before the random NPC appeared caused the game to CTD upon load completion.
If the effectStart and effectFinish events were unregistered using the unsubscribe function before loading, such as in the preLoadGame event, a CTD did not occur after loading was complete. (If the events were not unregistered, a CTD occurred.)

NetScriptFramework Crash Log: https://drive.google.com/file/d/1SNiB4DxN8s8YFLyq8s7UUt9TmmEcywZz/view?usp=sharing

#1305
Not sure if this is related, but the phenomenon is similar to the bug report above.

OS

Windows

OS version

10

Skyrim version

1.5.97.0.8

SKSE version

2.0.20

client commit''s hash

None

server commit''s hash

None

Videocard model

Radeon RX 590

Steps to reproduce

on('effectStart', (event) => {
});

on('effectFinish', (event) => {
});

Execute the above script process and perform the following steps with effectStart or effectFinish event registered.

  1. Save somewhere, whether internal or external.
  2. In the console, "player.placeatme 0001bcd8 5" and a random NPC will appear.
  3. Reload the save from step 1.

Expected result

No crashes after loading the save.

Actual result

The game crashes as soon as the loading completes.

@oto-git
Copy link
Author

oto-git commented Jul 8, 2023

#1544
We have confirmed a similar phenomenon for the combatState event and have filed a separate bug report.

@Pospelove
Copy link
Contributor

I think should be fixed in modern Skyrim Platform version. Please let me know if not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants