Wet-Boys / LookingGlass

A QoL UI mod that exposes statistics for items and the player, adjusts the size and features of command and scrapper menus, and much more. Fully open source and compatible with RiskUI!
https://thunderstore.io
GNU Lesser General Public License v3.0
9 stars 5 forks source link

[Incompatibility] LookingGlass crashes when Aetherium is enabled #48

Closed Imper1um closed 1 month ago

Imper1um commented 1 month ago

Related Mod: https://github.com/KomradeSpectre/AetheriumMod Aetherium Version: v0.6.8 LookingGlass Version: v1.6.1

When both Aetherium and LookingGlass is enabled, the game crashes prior to starting a log. No logs are available through the BepinEx Log Manager.

This was confirmed by disabling Aetherium with LookingGlass Enabled (and the game launches just fine), and then enabling Aetherium while disabling Looking Glass. When both Aetherium and LookingGlass is enabled at the same time, the game does not even launch, nor does BepinEx start a log at all.

Imper1um commented 1 month ago

Ticket 72 was created in Aetherium's GitHub to connect the two: https://github.com/KomradeSpectre/AetheriumMod/issues/72

ToastedOven commented 1 month ago

Sorry for the late update, was busy during the weekend. I am unable to reproduce the issue on my end. Do you happen to have a profile code I could use to test against? Risk_of_Rain_2_lprp4324YT

Imper1um commented 1 month ago

018fbfef-a640-4449-11d7-7f3a28385bd0

I'll try it without the other addons.

Imper1um commented 1 month ago

Nope, even if I disable all the mods and then only enable LookingGlass and Aetherium (which enables the dependencies), it crashes on Boot.

Imper1um commented 1 month ago

So:

ToastedOven commented 1 month ago

Uhh, are you running an old version of the game? I launched with the code you provided without doing anything and it's running fine

ToastedOven commented 1 month ago

if you just launch the game on it's own, what do you see in the top left? I see Risk_of_Rain_2_5E9rco4euP

Imper1um commented 1 month ago

Same image

ToastedOven commented 1 month ago

Hmm, can you try sending me a Player.log from a failed launch? These get created even with a crash, might point to something

%appdata%/../LocalLow/Hopoo Games, LLC/Risk of Rain 2 explorer_1ioAN71c4D

Imper1um commented 1 month ago

Mono path[0] = 'D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Managed' Mono config path = 'D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/MonoBleedingEdge/etc' Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/lib/usr/lib/libSystem.dylib Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/lib/usr/lib/libSystem.dylib.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/lib/usr/lib/libSystem.dylib Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/libc.so.6 Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/libc.so.6.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/libc.so.6 Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08C4A0D0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC0868A020.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D53FE0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC081996F0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D5CFF0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08CF0E80.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D57FA0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D5AFD0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D02EF0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D55F80.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08CBF020.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D59FC0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08CCBED0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D60020.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09070F70.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08633070.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08F90EC0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D58FB0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D63050.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09072780.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D680A0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D61030.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09073390.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D66080.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D62040.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09073FA0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D64060.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D65070.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09074BB0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D690B0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC0879D6F0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D6A0C0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D6F110.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC091C50B0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D6B0D0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D70120.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC092ECBD0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D71130.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D72140.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC092ED7E0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D73150.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D6C0E0.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC09338010.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC08D74160.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC0819A700.dll Fallback handler could not load library D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/Mono/data-000001FC1058A040.dll Initialize engine version: 2019.4.37f1 (019e31cfdb15) [Subsystems] Discovering subsystems at path D:/Program Files (x86)/Steam/steamapps/common/Risk of Rain 2/Risk of Rain 2_Data/UnitySubsystems GfxDevice: creating device client; threaded=1 Direct3D: Version: Direct3D 11.0 [level 11.1] Renderer: AMD Radeon RX 6800 (ID=0x73bf) Vendor:
VRAM: 16338 MB Driver: 31.0.24027.1012 Begin MonoManager ReloadAssembly

ToastedOven commented 1 month ago

well that points to one potential problem. Can you verify your game files? steamwebhelper_5p98mfegtR I know it sounds unrelated, but the most recent ror2 update kinda messed with some things and a bunch of related issues came up during the first day or so of the update being out

Imper1um commented 1 month ago

Sorry it took a bit (I had to do some work), I did one up on that: I reinstall RoR2 completely, and cleared the Thunderstore Cache.

This did not change anything: the game will only launch if either Aetherium or LookingGlass (or both) are disabled.

It looks like there is a log that is finally produced now:

[Message: BepInEx] BepInEx 5.4.21.0 - Risk of Rain 2 (5/28/2024 6:35:43 PM) [Info : BepInEx] Running under Unity v2019.4.37.106033 [Info : BepInEx] CLR runtime version: 4.0.30319.17020 [Info : BepInEx] Supports SRE: False [Info : BepInEx] System platform: Bits64, Windows [Message: BepInEx] Preloader started [Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.21.0] [Info : BepInEx] Loaded 1 patcher method from [FixPluginTypesSerialization 1.0.0.0] [Info : BepInEx] Loaded 1 patcher method from [BepInEx.GUI.Loader 1.0.0.0] [Error : BepInEx] Failed to load patcher [FixPluginTypesSerialization.FixPluginTypesSerializationPatcher]: An item with the same key has already been added. Key: [FixPluginTypesSerialization/FixPluginTypesSerialization.FixPluginTypesSerializationPatcher, BepInEx.Preloader.Patching.PatcherPlugin] [Debug : BepInEx] System.ArgumentException: An item with the same key has already been added. Key: [FixPluginTypesSerialization/FixPluginTypesSerialization.FixPluginTypesSerializationPatcher, BepInEx.Preloader.Patching.PatcherPlugin] at System.Collections.Generic.TreeSet1[T].AddIfNotPresent (T item) [0x0001a] in <6b80e2850f1c48e6a227f0818ca6b227>:0 at System.Collections.Generic.SortedSet1[T].Add (T item) [0x00000] in <6b80e2850f1c48e6a227f0818ca6b227>:0 at System.Collections.Generic.SortedDictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00020] in <6b80e2850f1c48e6a227f0818ca6b227>:0 at BepInEx.Preloader.Patching.AssemblyPatcher.AddPatchersFromDirectory (System.String directory) [0x00182] in <2a6f9c6c36c248ffbc7c6bf7c7557647>:0 [Info : BepInEx] Loaded 1 patcher method from [FixPluginTypesSerialization 1.0.0.0] [Info : BepInEx] Loaded 1 patcher method from [BepInEx.MonoMod.HookGenPatcher 1.2.1.0] [Info : BepInEx] 4 patcher plugins loaded [Info :BepInEx.GUI.Loader] Finding and launching GUI [Info :BepInEx.GUI.Loader] Found bepinex_gui v3 executable in C:\Users\zsylv\AppData\Roaming\Thunderstore Mod Manager\DataFolder\RiskOfRain2\profiles\Fun Times\BepInEx\patchers\RiskofThunder-BepInEx_GUI\BepInEx.GUI\bepinex_gui.exe [Info :BepInEx.GUI.Loader] [SendLogToClient] Accepting Socket. [Info :HookGenPatcher] Previous MMHOOK location found. Using that location to save instead. [Info :HookGenPatcher] Already ran for this version, reusing that file. [Message:FixPluginTypesSerialization] Using the config cache [Info :FixPluginTypesSerialization] Running under Unity v2019.4.37 [Debug :FixPluginTypesSerialization] Unity version obtained from main application module. [Info : BepInEx] Patching [RoR2] with [BepInEx.Chainloader] [Message: BepInEx] Preloader finished

Looking at this log it might be FixPluginTypesSerialization, but I'll see if anything is reported on that side.

Imper1um commented 1 month ago

Nope, this is a generic thing used across multiple titles, and has no tickets open for this issue.

ToastedOven commented 1 month ago

wait a minute, that actually is useful! FixPluginTypeSerialization got a very important update the day of the update to prevent mods from conflicting seemingly at random. firefox_UkvO9M0U6P And in your log you sent just now, it's basically saying it tried to load it twice, meaning it's ignoring the second time and just going with the first. I'm thinking you have a stale DLL in there that is loading first. Have you tried making a fresh profile yet? That might let it clean out the old DLL

Imper1um commented 1 month ago

Yup, that was the issue. It looks like the old Aetherium is trying to latch on to another FPTS DLL, but the BepInEx has a backup system when it can't do that. However, when you load Aetherium, its fine, because it only needs one DLL. However, with both DLLs there and you attempt to load both Aetherium and LG, its now attempting to load two FPTS DLLs, and the system fails when it is initializing the DLLs.

Nice catch.

Imper1um commented 1 month ago

This incompatibility can only be cause by you having Aetherium and LG installed pre-latest-patch 1 week ago, and then you get the newest version of RoR2, and the patch to LG and FPTS. I tested this by pulling the DLLs in the original Fun Times into a fresh Profile, and it started causing the issue.

Dynamic loading is weird like this.

ToastedOven commented 1 month ago

gonna close this out, glad we could get it worked out, I'm probably gonna bookmark this for the future if anyone else has dupe mods installed lol