traison Posted September 7, 2023 Posted September 7, 2023 What version of SL? The offset does not line up with mine.
traison Posted September 7, 2023 Posted September 7, 2023 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: 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. Remove the script/mod that is causing the issue. Create a replacement for the native IsInPosition in Papyrus, and implement the necessary checks yourself. Fix the dll by adding the missing null pointer checks, or report the error to the devs and hope for a fix.
KevinTheBoss Posted September 7, 2023 Author Posted September 7, 2023 how do i find which mod is causing the issue ?
traison Posted September 7, 2023 Posted September 7, 2023 (edited) A couple of options for that, some more silly than others: Sledgehammer: Remove mods until the problem goes away. Programmer: Get the sources for all scripts in all mods that may be related. Use notepad++ to search for all occurences of IsInPosition and log the arguments before calling the method. Hacker: Change the name of the "IsInPosition" method to "IsInPositio2" in the dll, using a hex editor. At offset 0xa587b 0xA5888 most likely. Not tested. Create a new declaration for "IsInPositio2" in sslActorAlias.psc. Change the existing declaration for IsInPosition to be a Papyrus function. Implement logging and stack tracing in the Papyrus implementation, and forward the arguments to IsInPositio2 to resume normal operation. Compile the psc. Edited September 8, 2023 by traison
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now