Jump to content

Game crashes after a few minutes


Recommended Posts

The crash was caused by an error in IsInPosition, declared in sslActorAlias.pex.

bool function IsInPosition(Actor CheckActor, ObjectReference CheckMarker, float maxdistance = 30.0) global native

 

Thus, 4 options:

  1. Find the script that is calling IsInPosition with invalid arguments. Most likely one of the first 2 arguments got passed a null value. It's hard for me to tell from the assembly code which value this corresponds to; my first guess would be the Actor value was null.
  2. Remove the script/mod that is causing the issue.
  3. Create a replacement for the native IsInPosition in Papyrus, and implement the necessary checks yourself.
  4. Fix the dll by adding the missing null pointer checks, or report the error to the devs and hope for a fix.
Link to comment

A couple of options for that, some more silly than others:

  1. Sledgehammer:
    1. Remove mods until the problem goes away.
  2. Programmer:
    1. Get the sources for all scripts in all mods that may be related.
    2. Use notepad++ to search for all occurences of IsInPosition and log the arguments before calling the method.
  3. Hacker:
    1. Change the name of the "IsInPosition" method to "IsInPositio2" in the dll, using a hex editor.
      1. At offset 0xa587b 0xA5888 most likely. Not tested.
    2. Create a new declaration for "IsInPositio2" in sslActorAlias.psc.
    3. Change the existing declaration for IsInPosition to be a Papyrus function.
    4. Implement logging and stack tracing in the Papyrus implementation, and forward the arguments to IsInPositio2 to resume normal operation.
    5. Compile the psc.
Edited by traison
Link to comment

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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use