About this mod
Script fixes for a couple of crashes I experienced with the head tracking from PC Head Tracking and Voice Type.
- Requirements
- Permissions and credits
- Changelogs
Crash 1
Crash 2
Crash 3
On other SKSE versions the dump and the address will undoubtedly be different, since the offsets and possibly function implementations have changed. Going through my older crash logs, I believe this could be an equivalent one for SKSE 2.0.19.
Here's the technical explanation for those interested:
While I was testing the first fix I discovered a second type of crash which produced no crash log. This one I was able to locate originating from the Humanize feature of the mod, and this statement to be precise:
math.Abs(Subject.GetHeadingAngle(TargetRef)) > 90 as Float
I fixed it by adding a check to skip the statement if the 3D model of TargetRef is not loaded, so it seems that trying to get a heading angle to an ObjectReference that doesn't have its 3D loaded will produce a crash under some circumstances. I added a similar check to skip the statement if TargetRef is disabled, for safety. TL;DR: There were some crashes, I did some testing and changed a few things in the scripts, the crashing should be gone now.
Requirements:
PC Head Tracking and Voice Type As of the time of writing this the newest version of the mod is 4.8, and that is the version this fix was developed for. Might not work with other versions.
Installation:
With a mod manager. Overwrite the files from PC Head Tracking and Voice Type.
If you are using the patch for PC Head Tracking and Voice Type from Mfg Fix, choose the appropriate patch in the FOMOD. This will completely replace the patch from Mfg Fix, and includes the changes in that patch.
Compatibility:
Incompatible with everything that edits the same script files. A patch for Mfg Fix is provided.
Credits:
HHaleyy for PC Head Tracking and Voice Type
Tooneyman for the SSE port
Andrelo for Mfg Fix
F.A.Q.
Q: I'm using PC Head Tracking and Voice Type but I don't have any crashes?!?!
A: Then you don't need this fix.
Q: I use PC Head Tracking and Voice Type but I don't use the HT at all or don't use the speaker detection and Humanize features. Do I still need this fix?
A: Probably not, but you can still get it just in case.
Q: I have similar crashes, but I don't use PC Head Tracking and Voice Type.
A: It's possible other mods suffer from the same issues in their scripts.
Q: I installed your fix, but my game is still crashing!
A: See the question above. Also, there are a million reasons why the game might crash, and unless your crash logs are similar to mine and/or the crash happens under similar circumstances (saving the game), the crash is very likely unrelated.
Q: I am on LE, can I use the mod?
A: It's just script files, so it will work with LE out of the box. I have no idea whether the mod crashes on LE though, so you might not even need this. But it shouldn't break anything either, so doesn't hurt to try.
Q: Your "fix" broke the mod!
A: Unlikely, but please let me know what is broken and how to test it, so I can verify it myself and hopefully fix it.
Q: PC Head Tracking and Voice Type is a perfectly good mod, why would a fix be needed?
A: I spent two weeks troubleshooting this issue, generating somewhere in the neighbourhood of a hundred thousand save files in the process. I am very confident this is where the crashes originated from and that these changes fixed them. But everyone has a right to their opinion, and if you think this fix is misjudged, I'm not going to argue.