-
Notifications
You must be signed in to change notification settings - Fork 103
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
Mods that have more than one DLL do not load #133
Comments
For the net framework, this should be the default behavior of searching in the same directory. It works fine in other games. |
Hi @newman55, was just testing this in Railroader. If using Doorstop proxy, it does search the mod directory, but if using the Assembly method, it does not. Edit: This appears not to be case. I still need to copy the other DLL's to Managed folder when using Doorstop. |
@newman55 was trying to look into this to help out but I'm not sure what the issue is. When using same UMM version and mod version, Derail Valley happily opens extra DLL's in mod folder, but Railroader does not. In case you don't own RR, let me know if there's anything I can test on my end. Cheers. |
Fixed |
the issue persists |
Give me a link to the mod so I can check it out |
It's Runtime Unity Editor, can't find RuntimeUnityEditor.Core.dll and the associated MonoMod/Mono.Cecil, etc Need to copy all .dll's except RuntimeUnityEditor.UMM.dll into game's Managed folder to make it run. For me, this is only happening in Railroader game, same UMM/RUE work fine in Derail Valley for example. |
With the latest fix, RuntimeUnityEditor in Railroader started working. Are there any other mods/games that don't work? Or is this problem persisting? |
When a mod loads a DLL from the mod directory, it does not appear to load and throws a `System.IO.FileNotFoundException: Could not load file or assembly '' exception.
For example, RuntimeUnityEditor has 2 DLLs 'RuntimeUnityEditor.UMM.dll' and 'RuntimeUnityEditor.Core.dll' - the RUE.UMM dll has a static reference to the RUE.Core dll.
When UMM attempts to load RUE, the error occurs and the following log is produced:
In this instance, moving the Core dll into the game's 'managed folder' resolves the issue. Using ILRepack to merge the two dlls into a single dll also resolves the issue. Both "solutions" feel like hacks/bandaids rather than a real solution.
The same behaviour has been observed on one other mod that uses a multi-dll config.
I don't have any experience with dynamically loading assemblies, but I suspect the issue occurs when the dependencies are resolved, with the resolver looking to the wrong folder.
There might be a better way to fix this, but this StackOverflow answer looks like a starting point.
The text was updated successfully, but these errors were encountered: