WhelanB/RoR2-Discord-RP

Chainloader warnings caused by including non .net dlls in the download

Closed this issue · 1 comments

Because the BepInEx chainloader goes over all .dll files, it acts up a bit when going over the files included in the folder because the additional dlls are not .net files. These errors are not fatal/breaking.
A possible fix for this is including the dll's with something like Fody.Costura.

[Error  :   BepInEx] System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid.
  at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders (System.UInt16& subsystem, System.UInt16& dll_characteristics) [0x000bb] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at Mono.Cecil.PE.ImageReader.ReadImage () [0x0008b] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at Mono.Cecil.PE.ImageReader.ReadImage (Mono.Disposable`1[T] stream, System.String file_name) [0x00007] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (Mono.Disposable`1[T] stream, System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00006] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0006c] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at Mono.Cecil.AssemblyDefinition.ReadAssembly (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <6034b380a22b41a596c9dc29d282c0a9>:0
  at BepInEx.Bootstrap.TypeLoader.FindPluginTypes[T] (System.String directory, System.Func`2[T,TResult] typeSelector, System.Func`2[T,TResult] assemblyFilter, System.String cacheName) [0x0006c] in <c1d525c993794f43a33471cfc9cf816b>:0

This no longer occurs on the latest version of the mod, so going to close this issue, thanks!