p1xel8ted / UltrawideFixes

An ever-growing collection of ultra-wide solutions for games built on the Unity engine.
https://github.com/p1xel8ted/UltrawideFixes
GNU General Public License v3.0
45 stars 1 forks source link

Prince of Persia The Lost Crown: Freshinstall load on purchased version works, subsequent loads do not work. #13

Closed WaffleWasher closed 5 months ago

WaffleWasher commented 5 months ago

This is for purchased copies. This has been replicated for version purchased on UbisoftConnect and EpicGamesStore. It seems that on a fresh install of game and BepinEx the UW fix works fine, but any subsequent loads result in a crash at the Health Warning Screens. Below is the freshinstall log, as well as the subsequent logs. Uninstalling the game and reinstalling works. Initial boot always works. The game being updated to a newer version also works on initial boot.

Freshinstall: [Message: Preloader] BepInEx 6.0.0-be.682 - TheLostCrown [Message: Preloader] Built from commit 910844a982dbb126d0c6544847424bc42fb7849c [Info : BepInEx] System platform: Windows 10 64-bit [Info : BepInEx] Process bitness: 64-bit (x64) [Info : BepInEx] Running under Unity 2021.3.29f1 [Info : BepInEx] Runtime version: 6.0.7 [Info : BepInEx] Runtime information: .NET 6.0.7 [Message:InteropManager] Downloading unity base libraries [Message:InteropManager] Extracting downloaded unity base libraries [Message:InteropManager] Running Cpp2IL to generate dummy assemblies [Info : Cpp2IL] [Library] Initializing Metadata... [Info : Cpp2IL] [Library] Using actual IL2CPP Metadata version 29 [Info : Cpp2IL] [Library] Initialized Metadata in 246ms [Info : Cpp2IL] [Library] Using binary type Portable Executable (from LibCpp2IL) [Info : Cpp2IL] [Library] Searching Binary for Required Data... [Info : Cpp2IL] [Library] Got Binary codereg: 0x182A01570, metareg: 0x182F39620 in 892ms. [Info : Cpp2IL] [Library] Initializing Binary... [Info : Cpp2IL] [Library] Initialized Binary in 131ms [Info : Cpp2IL] [Library] Mapping pointers to Il2CppMethodDefinitions... [Info : Cpp2IL] [Library] Processed 111291 OK (91ms) [Info : Cpp2IL] [Program] Creating application model... [Info : Cpp2IL] [Program] Application model created in 1355.2216ms [Info :InteropManager] Cpp2IL finished in 00:00:08.2993412 [Info :InteropManager] Generating interop assemblies [Info :Il2CppInteropGen] Reading assemblies... [Info :Il2CppInteropGen] Done in 00:00:00.0537562 [Info :Il2CppInteropGen] Reading unity assemblies... [Info :Il2CppInteropGen] Done in 00:00:00.0169492 [Info :Il2CppInteropGen] Creating rewrite assemblies... [Info :Il2CppInteropGen] Done in 00:00:00.0119678 [Info :Il2CppInteropGen] Computing renames... [Info :Il2CppInteropGen] Done in 00:00:00.0331027 [Info :Il2CppInteropGen] Creating typedefs... [Info :Il2CppInteropGen] Done in 00:00:00.0505043 [Info :Il2CppInteropGen] Computing struct blittability... [Info :Il2CppInteropGen] Done in 00:00:00.0868307 [Info :Il2CppInteropGen] Filling typedefs... [Info :Il2CppInteropGen] Done in 00:00:00.0287923 [Info :Il2CppInteropGen] Filling generic constraints... [Info :Il2CppInteropGen] Done in 00:00:00.0036222 [Info :Il2CppInteropGen] Creating members... [Info :Il2CppInteropGen] Done in 00:00:01.1910557 [Info :Il2CppInteropGen] Scanning method cross-references... [Info :Il2CppInteropGen] Done in 00:00:00.6495761 [Info :Il2CppInteropGen] Finalizing method declarations... [Info :Il2CppInteropGen] Done in 00:00:01.3697164 [Info :Il2CppInteropGen] 28 total potentially dead methods [Info :Il2CppInteropGen] Filling method parameters... [Info :Il2CppInteropGen] Done in 00:00:00.3048597 [Info :Il2CppInteropGen] Creating static constructors... [Info :Il2CppInteropGen] Done in 00:00:00.4653465 [Info :Il2CppInteropGen] Creating value type fields... [Info :Il2CppInteropGen] Done in 00:00:00.0163504 [Info :Il2CppInteropGen] Creating enums... [Info :Il2CppInteropGen] Done in 00:00:00.0374767 [Info :Il2CppInteropGen] Creating IntPtr constructors... [Info :Il2CppInteropGen] Done in 00:00:00.5216147 [Info :Il2CppInteropGen] Creating non-blittable struct constructors... [Info :Il2CppInteropGen] Done in 00:00:00.1077824 [Info :Il2CppInteropGen] Creating generic method static constructors... [Info :Il2CppInteropGen] Done in 00:00:00.2978664 [Info :Il2CppInteropGen] Creating field accessors... [Info :Il2CppInteropGen] Done in 00:00:00.6427913 [Info :Il2CppInteropGen] Filling methods... [Info :Il2CppInteropGen] Done in 00:00:01.8398503 [Info :Il2CppInteropGen] Generating implicit conversions... [Info :Il2CppInteropGen] Done in 00:00:00.0104790 [Info :Il2CppInteropGen] Creating properties... [Info :Il2CppInteropGen] Done in 00:00:00.0530522 [Info :Il2CppInteropGen] Unstripping types... [Info :Il2CppInteropGen] Done in 00:00:00.0575735 [Info :Il2CppInteropGen] Unstripping fields... [Info :Il2CppInteropGen] Restored 332 fields [Info :Il2CppInteropGen] Failed to restore 1 fields [Info :Il2CppInteropGen] Done in 00:00:00.0051432 [Info :Il2CppInteropGen] Unstripping methods... [Info :Il2CppInteropGen] Restored 11745 methods [Info :Il2CppInteropGen] Failed to restore 832 methods [Info :Il2CppInteropGen] Done in 00:00:00.2310451 [Info :Il2CppInteropGen] Unstripping method bodies... [Info :Il2CppInteropGen] IL unstrip statistics: 6120 successful, 1592 failed [Info :Il2CppInteropGen] Done in 00:00:00.2135857 [Info :Il2CppInteropGen] Writing xref cache... [Info :Il2CppInteropGen] Done in 00:00:01.0370663 [Info :Il2CppInteropGen] Writing assemblies... [Info :Il2CppInteropGen] Done in 00:00:00.7511757 [Info :Il2CppInteropGen] Writing method pointer map... [Info :Il2CppInteropGen] Done in 00:00:00.0225630 [Info :Il2CppInteropGen] Done! [Info : Preloader] 0 patcher plugins loaded [Info : Preloader] 0 assemblies discovered [Message:AssemblyPatcher] Executing 0 patch(es) [Message: BepInEx] Chainloader initialized [Info : BepInEx] 1 plugin to load [Info : BepInEx] Loading [Prince of Persia: The Lost Crown Ultra-Wide 0.1.2] [Info :Prince of Persia: The Lost Crown Ultra-Wide] Plugin Prince of Persia: The Lost Crown Ultra-Wide is loaded! [Message: BepInEx] Chainloader startup complete

Subsequent load: [Message: Preloader] BepInEx 6.0.0-be.682 - TheLostCrown [Message: Preloader] Built from commit 910844a982dbb126d0c6544847424bc42fb7849c [Info : BepInEx] System platform: Windows 10 64-bit [Info : BepInEx] Process bitness: 64-bit (x64) [Info : BepInEx] Running under Unity 2021.3.29f1 [Info : BepInEx] Runtime version: 6.0.7 [Info : BepInEx] Runtime information: .NET 6.0.7 [Info : Preloader] 0 patcher plugins loaded [Info : Preloader] 0 assemblies discovered [Message:AssemblyPatcher] Executing 0 patch(es) [Message: BepInEx] Chainloader initialized [Info : BepInEx] 1 plugin to load [Info : BepInEx] Loading [Prince of Persia: The Lost Crown Ultra-Wide 0.1.2] [Info :Prince of Persia: The Lost Crown Ultra-Wide] Plugin Prince of Persia: The Lost Crown Ultra-Wide is loaded! [Message: BepInEx] Chainloader startup complete

Thank you.

p1xel8ted commented 5 months ago

The plugin was developed on the ubi retail version and works fine. If you're using a controller, don't spam the buttons out of boredom while it loads, the game crashes. Remove the plugin, leave bepinex and see what happens

p1xel8ted commented 5 months ago

Resolved in 0.1.3