Raicuparta / nomai-vr

Outer Wilds VR Mod with 6DOF tracking and full motion control support
https://outerwildsmods.com/mods/nomaivr
MIT License
338 stars 17 forks source link

Null Reference Exception problem (stacktrace?) #488

Open dorianzoumplis opened 2 years ago

dorianzoumplis commented 2 years ago

Hello, I've followed the directions to install the mod manager, the vr mod, and disabled Steam theatre view. But when I launch the game from the OWML I get the following error in the log. The game still launches, but I cannot progress beyond the "Enter profile name" screen of the homescreen:

NullReferenceException: Object reference not set to an instance of an object Stacktrace: NomaiVR.Helpers.ApplicationManifestHelper.UpdateManifest (System.String manifestPath, System.String appKey, System.String imagePath, System.String name, System.String description, System.Int32 steamAppId, System.Boolean steamBuild) (at <8e2e4939d00948d89e660bf8acde57e9>:0) NomaiVR.NomaiVR.InitSteamVR () (at <8e2e4939d00948d89e660bf8acde57e9>:0) NomaiVR.NomaiVR.ApplyMod () (at <8e2e4939d00948d89e660bf8acde57e9>:0) NomaiVR.Loaders.NomaiVRLoaderOwml.Start () (at <8e2e4939d00948d89e660bf8acde57e9>:0)

Raicuparta commented 2 years ago

@artumino this is about the stuff you did for the steamvr manifest, right? Can we just wrap it in a try catch, since it's not really a big deal if that part fails?

artumino commented 2 years ago

We can do that yes, although there shouldn't be any NRE coming from it unless there are other issues with the install.

dorianzoumplis commented 2 years ago

Thank you for the quick responses, though I'm a bit puzzled in what action I should take to resolve?

Raicuparta commented 2 years ago

@dorianzoumplis There's a new NomaiVR update 2.5.0, see if that one works for you. I suspect it will still not work properly. If it does, let us know if any new errors are printed to the logs.

koichim commented 2 years ago

I am under same situation, using NomaiVR 2.5.1. Following errors are injected,

In NomaiVR, Error updating AppManifest: System.NullReferenceException: Object reference not set to an instance of an object at NomaiVR.Helpers.ApplicationManifestHelper.UpdateManifest (System.String manifestPath, System.String appKey, System.String imagePath, System.String name, System.String description, System.Int32 steamAppId, System.Boolean steamBuild) [0x0005c] in <1a556d22cfdb4bb89f7b41acc72a92de>:0

And in OWML, NullReferenceException: Object reference not set to an instance of an object Stacktrace: NomaiVR.NomaiVR.InitSteamVR () (at <1a556d22cfdb4bb89f7b41acc72a92de>:0) NomaiVR.NomaiVR.ApplyMod () (at <1a556d22cfdb4bb89f7b41acc72a92de>:0) NomaiVR.Loaders.NomaiVRLoaderOwml.Start () (at <1a556d22cfdb4bb89f7b41acc72a92de>:0)

Once the game gets this situation, any mouse/pointer operation does not work. Even if I run the game from steam without any mod, any mouse/pointer operation does not work. After I uninstalled/re-installed outer wilds in steam, I could recover the situation.

Outer Wilds: v1.1.12.125 Outer Wilds Mod Manager: v1.6.2 OWML: v2.2.0 NomaiVR: v2.5.1 No other mod are installed.

artumino commented 2 years ago

What headset are you using? We are trying to figure out how to reproduce this.

The mouse pointer is disabled by the mod to avoid performance issues during the ending sequence, verifying the files from Steam after uninstalling the mod should be enough to restore it (only one file in the game gets edited by the mod and needs to be restored)

koichim commented 2 years ago

Hi, looks like I am a too beginner about VR and so it was my fault. I am using Oculus Quest 2 via Air Link. I invoked Outer Wilds from Mod manager before linking the Oculus Quest 2. Then above error occurred. Retrying to invoke Outer Wilds after connecting Oculus, your NomaiVR works without the error!!

Thank you!!

Mazllo commented 2 years ago

Hello, any update on this issue? I am also getting the same messages

Raicuparta commented 2 years ago

These errors pop up for me too but I'm still able to run the game perfectly fine. So whatever problem you're having might not be related to these errors.

Raicuparta commented 2 years ago

These errors pop up for me too but I'm still able to run the game perfectly fine. So whatever problem you're having might not be related to these errors.