Raicuparta / uuvr

Universal VR mod for Unity games
https://raicuparta.com/rai-pal
GNU General Public License v3.0
87 stars 6 forks source link

Failed to run initializer of com.raicuparta.uuvr: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. #17

Closed Bluscream closed 3 months ago

Bluscream commented 3 months ago

Installed on Powerwash Simulator using Rai Pal

preloader_20240610_215652_708.log

[Message: Preloader] BepInEx 6.0.0-pre.1 - PowerWashSimulator
[Info   :   BepInEx] System platform: Windows 10 64-bit
[Info   :   BepInEx] Process bitness: 64-bit (x64)
[Info   : Preloader] Running under Unity v2020.3.48
[Warning:AssemblyPatcher] Skipping method [bool BepInEx.Unity.Mono.Preloader.EntrypointPatcher::PatchEntrypoint(Mono.Cecil.AssemblyDefinition& assembly, string filename)] as it is not a valid patcher method
[Info   :AssemblyPatcher] Loaded 1 patcher type from [BepInEx.Unity.Mono.Preloader 6.0.0.0]
[Info   :AssemblyPatcher] Loaded 1 patcher type from [UuvrPatcherIl2Cpp 0.0.0.0]
[Info   : Preloader] 2 patcher plugins loaded
[Info   : Preloader] 2 assemblies discovered
[Error  :AssemblyPatcher] Failed to run initializer of com.raicuparta.uuvr: System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
  at System.IO.BinaryReader.FillBuffer (System.Int32 numBytes) [0x0007a] in <986ed57b9a8f4699a3c59a69eb05944a>:0
  at System.IO.BinaryReader.ReadUInt32 () [0x00000] in <986ed57b9a8f4699a3c59a69eb05944a>:0
  at AssetsTools.NET.AssetsFileReader.ReadUInt32 () [0x00008] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.Type_0D.Read (System.Boolean hasTypeTree, AssetsTools.NET.AssetsFileReader reader, System.UInt32 version) [0x0009f] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.TypeTree.Read (AssetsTools.NET.AssetsFileReader reader, System.UInt32 version) [0x0004a] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.AssetsFile..ctor (AssetsTools.NET.AssetsFileReader reader) [0x0003b] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.Extra.AssetsFileInstance..ctor (System.IO.Stream stream, System.String filePath, System.String root) [0x0004d] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.Extra.AssetsManager.LoadAssetsFile (System.IO.Stream stream, System.String path, System.Boolean loadDeps, System.String root, AssetsTools.NET.Extra.BundleFileInstance bunInst) [0x00029] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.Extra.AssetsManager.LoadAssetsFile (System.IO.FileStream stream, System.Boolean loadDeps, System.String root) [0x00008] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at AssetsTools.NET.Extra.AssetsManager.LoadAssetsFile (System.String path, System.Boolean loadDeps, System.String root) [0x00007] in <b9ea336f811548a8880cd5c6fcb7090e>:0
  at Il2cppPatcher.PatchVR (System.String globalSettingsBackupPath, System.String globalSettingsFilePath, System.String classDataPath) [0x00023] in <a48968a660d74d97befac7c5061eab55>:0
  at Il2cppPatcher.Initialize () [0x0008b] in <a48968a660d74d97befac7c5061eab55>:0
  at BepInEx.Preloader.Core.Patching.AssemblyPatcher.PatchAndLoad () [0x0003b] in <55b4399c57864cdebf36e7eb06be6ed7>:0
[Message:AssemblyPatcher] Executing 0 patch(es)
[Fatal  :BepInEx Entrypoint] Failed to patch BepInEx chainloader into assembly 'UnityEngine.dll', either due to error or not being able to find it. Is it spelled correctly?
[Message:   BepInEx] Chainloader initialized
[Info   :Unhollower] Registered mono type UnhollowerRuntimeLib.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Info   :   BepInEx] 2 plugins to load
[Info   :   BepInEx] Loading [UnityExplorer 4.9.0]
[Message:UnityExplorer] UnityExplorer 4.9.0 initializing...
[Message:UnityExplorer] [UniverseLib] UniverseLib 1.5.1 initializing...
[Info   :Unhollower] Registered mono type UniverseLib.UniversalBehaviour in il2cpp domain
[Info   :Unhollower] Registered mono type UniverseLib.Runtime.Il2Cpp.Il2CppManagedEnumerator in il2cpp domain
[Message:UnityExplorer] [UniverseLib] Finished UniverseLib initial setup.
[Info   :Unhollower] Registered mono type UnityExplorer.ExplorerBehaviour in il2cpp domain
[Message:UnityExplorer] Initialized UnityCrashPrevention for: Canvas.get_renderingDisplaySize
[Info   :   BepInEx] Loading [Unity Universal VR 0.2.1]
[Info   :Unhollower] Registered mono type UuvrPluginIl2Cpp.UuvrIl2cppBehaviour in il2cpp domain
[Message:   BepInEx] Chainloader startup complete
[Warning:     Unity] XRSettings.enabled is deprecated: Use XRDisplaySubsystem.Start() and XRDisplaySubsystem.Stop().
[Message:UnityExplorer] [UniverseLib] Loaded Unhollowed modules in 3.582 seconds.
[Message:UnityExplorer] [UniverseLib] Setup deobfuscation cache in 0.276 seconds.
[Message:UnityExplorer] [UniverseLib] Initialized Legacy Input support
[Message:UnityExplorer] [UniverseLib]    IL2CPP method has no corresponding pointer, aborting patch of UnityEngine.AssetBundle.UnloadAllAssetBundles
[Info   :Unhollower] Registered mono type UniverseLib.AssetBundle in il2cpp domain
[Message:UnityExplorer] [UniverseLib] Loaded modern bundle for Unity 2020.3.48f1
[Message:UnityExplorer] [UniverseLib] UniverseLib 1.5.1 initialized.
[Message:UnityExplorer] Creating UI...
[Message:UnityExplorer] UnityExplorer 4.9.0 (IL2CPP) initialized.
[Warning:     Unity] DontDestroyOnLoad only works for root GameObjects or components on root GameObjects.
Setting breakpad minidump AppID = 1290000
SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561198022446661 [API loaded no]
Raicuparta commented 3 months ago

Unity 2020+ can't be patched with the old globalgamemanagers method, and for il2cpp games that's the only method UUVR currently supports. So this one won't be supported for a long time.

Bluscream commented 2 months ago

Unity 2020+ can't be patched with the old globalgamemanagers method, and for il2cpp games that's the only method UUVR currently supports. So this one won't be supported for a long time.

Oh i see. Thats a bummer, thank you