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
Game crashes when loading a save game from the Pause menu #10
Comments
|
Managed to fix the main crash in cc224ef, However it is now still crashing due to a different reason. |
|
I think I figured it out. Blade's Script Hook uses Win32 fibers to manage all the running scripts in one thread (since the game does not like native calls from outside its scripting threads at all). The "scriptWait" export effectivly calls "SwitchToFiber" to give execution on to another script for instance (which is why it is needed in the main loop of your script). It also has a control thread running which just sits there checking if all scripts are being executed. A possible way to solve this would be to create our own fiber and simply switch to that one for all .NET stuff and at the end of a main loop iteration switch back to the native Script Hook one. |
The game crashes when loading a save from the menu, whether or not any scripts have been loaded. Windows says there's a fault in clr.dll
The text was updated successfully, but these errors were encountered: