Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this perhaps get repurposed? #11

Open
mrwallace888 opened this issue Oct 3, 2022 · 0 comments
Open

Can this perhaps get repurposed? #11

mrwallace888 opened this issue Oct 3, 2022 · 0 comments

Comments

@mrwallace888
Copy link

mrwallace888 commented Oct 3, 2022

I didn’t expect H3VR’s sideloader to work with other games but it does. Well, most of the time anyways. Some games work and other games don’t. But still, it’s surprising regardless that it works at all. Which makes me wonder what prevents it to work when using certain games and if it's a fixable issue, perhaps H3VR Sideloader could potentially be repurposed for replacing assets in other games?

Here's a log from a game where it did work. (Madalin Cars Multiplayer)

[Message:   BepInEx] BepInEx 5.4.18.0 - Madalin Cars Multiplayer C (12/15/2020 4:06:53 PM)
[Info   :   BepInEx] Running under Unity v2019.4.16.14703470
[Info   :   BepInEx] CLR runtime version: 4.0.30319.42000
[Info   :   BepInEx] Supports SRE: True
[Info   :   BepInEx] System platform: Bits64, Windows
[Message:   BepInEx] Preloader started
[Info   :   BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.18.0]
[Info   :   BepInEx] Loaded 1 patcher method from [H3VR.Sideloader.MonoMod 0.3.6.0]
[Info   :   BepInEx] 2 patcher plugins loaded
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Info   :   BepInEx] Patching [Assembly-CSharp] with [H3VR.Sideloader.MonoMod.SideloaderMonoModPatcher]
[Message:Sideloader.MonoMod] Scanning mods
[Message:Sideloader.MonoMod] Found 0 mods
[Message:   BepInEx] Preloader finished
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 2 plugins to load
[Info   :   BepInEx] Loading [XUnity Resource Redirector 1.2.0]
[Info   :   BepInEx] Loading [H3VR Sideloader 0.3.6]
[Warning:  HarmonyX] AccessTools.Method: Could not find method for type UnityEngine.Resources and name GetBuiltinResource and parameters (string, Type)
[Info   :H3VR Sideloader] Loading mods...
[Info   :H3VR Sideloader] Loaded 1 mods!
[Message:   BepInEx] Chainloader startup complete
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 

Here's a log from a game where it didn't work. (Ravenfield)

[Message:   BepInEx] BepInEx 5.4.18.0 - ravenfield (6/30/2022 10:12:09 PM)
[Info   :   BepInEx] Running under Unity v2020.3.34.10112156
[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.18.0]
[Info   :   BepInEx] Loaded 1 patcher method from [H3VR.Sideloader.MonoMod 0.3.6.0]
[Info   :   BepInEx] 2 patcher plugins loaded
[Info   :   BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader]
[Info   :   BepInEx] Patching [Assembly-CSharp] with [H3VR.Sideloader.MonoMod.SideloaderMonoModPatcher]
[Message:Sideloader.MonoMod] Scanning mods
[Message:Sideloader.MonoMod] Found 0 mods
[Message:   BepInEx] Preloader finished
[Message:   BepInEx] Chainloader ready
[Message:   BepInEx] Chainloader started
[Info   :   BepInEx] 2 plugins to load
[Info   :   BepInEx] Loading [XUnity Resource Redirector 1.2.0]
[Info   :   BepInEx] Loading [H3VR Sideloader 0.3.6]
[Warning:  HarmonyX] AccessTools.Method: Could not find method for type UnityEngine.Resources and name GetBuiltinResource and parameters (string, Type)
[Info   :H3VR Sideloader] Loading mods...
[Info   :H3VR Sideloader] Loaded 1 mods!
[Message:   BepInEx] Chainloader startup complete
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 
[Error  :XUnity.ResourceRedirector] An error occurred while invoking ResourceLoaded event.
System.TypeLoadException: Could not resolve type with token 01000072 (from typeref, class/assembly FistVR.ItemSpawnerID, Assembly-CSharp, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null)
  at XUnity.ResourceRedirector.ResourceRedirection.FireResourceLoadedEvent (XUnity.ResourceRedirector.ResourceLoadedParameters parameters, UnityEngine.Object[]& assets) [0x001d6] in <865942cd241f4a50ade53ad7fa892958>:0 

Both Sideloader mods were attempting to replace sound effects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant