Deweh / CyberCAT-SimpleGUI

A simplified offshoot of SirBitesalot's CyberCAT.
MIT License
233 stars 45 forks source link

Unhandled exception, DLL was not found; "Load Save" button greyed out #107

Open LuineGR opened 1 year ago

LuineGR commented 1 year ago

Upon launching, I get the following message:

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Dll was not found.

Details are as follows:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.DllNotFoundException: Dll was not found.
   at WolvenKit.Core.Compression.KrakenNative.Kraken_Decompress(Byte[] buffer, Int64 bufferSize, Byte[] outputBuffer, Int64 outputBufferSize)
   at WolvenKit.Core.Compression.KrakenNative.Decompress(Byte[] buffer, Byte[] outputBuffer)
   at WolvenKit.Core.Compression.Oodle.Decompress(Byte[] inputBuffer, Byte[] outputBuffer)
   at WolvenKit.Core.Compression.Oodle.DecompressBuffer(Stream inStream, Byte[]& rawBuf)
   at WolvenKit.RED4.TweakDB.Helper.TweakDBStringHelper.LoadFromStream(Stream stream)
   at CP2077SaveEditor.Views.Form2.Init()
   at CP2077SaveEditor.Views.Form2.Form2_Load(Object sender, EventArgs e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

************** Loaded Assemblies **************
System.Private.CoreLib
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
CP2077SaveEditor
    Assembly Version: 1.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Runtime
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Windows.Forms
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.ComponentModel.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Windows.Forms.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Runtime.InteropServices
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Drawing.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Collections.Specialized
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.ObjectModel
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Threading
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Diagnostics.TraceSource
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Collections
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
WolvenKit.Core
    Assembly Version: 1.61.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Text.Json
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Drawing.Common
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
Microsoft.Win32.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.ComponentModel.EventBasedAsync
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Threading.Thread
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.ComponentModel.TypeConverter
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Memory
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Numerics.Vectors
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
Microsoft.Win32.SystemEvents
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Collections.Concurrent
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.ComponentModel
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Resources.Extensions
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Drawing
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
WolvenKit.RED4.Types
    Assembly Version: 1.61.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Collections.Immutable
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Linq
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Text.RegularExpressions
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
WolvenKit.RED4.Save
    Assembly Version: 1.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Private.Uri
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Text.Encodings.Web
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Reflection.Emit.Lightweight
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Reflection.Primitives
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Reflection.Emit.ILGeneration
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Text.Encoding.Extensions
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Collections.NonGeneric
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
WolvenKit.Common
    Assembly Version: 1.61.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
WolvenKit.RED4.TweakDB
    Assembly Version: 1.61.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Security.Cryptography
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Threading.ThreadPool
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Runtime.Loader
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Diagnostics.StackTrace
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------
System.Reflection.Metadata
    Assembly Version: 7.0.0.0
    Win32 Version: n/a
    CodeBase:
----------------------------------------

************** JIT Debugging **************

If I attempt to continue anyway, the "Load Save" button is completely greyed out and cannot be used, rendering the program completely useless. I can running CyberCAT through a Windows 11 virtual machine since attempting to run it through Wine on my host Linux installation has wielded similar results.

seberoth commented 1 year ago

Don't run the exe from inside the 7z. Extract the files to some folder first.

erutan commented 1 year ago

I've extracted the archive via 7zip and am running it on Win 10 home and get the same error and behavior.

Is there some .net runtime or something this editor is dependent on? FWIW I game on the steamdeck and have a M1 Pro, am borrowing someone's dell laptop to run this save editor. Does the game need to be installed on the machine that the save editor is running on?

erutan commented 1 year ago

I created a Win11 ARM VM using UTM and gave this another try, but got the same error message. I did some updates and installed the vortex manager in case that made a difference and noticed it just downloaded the same .7z file.

@LuineGR

I tried loading the editor again and it worked! I assume it was .NET 6.0 required by Vortex - maybe most people already just have that installed by default? On the Win10 dell machine I installed .NET 5.0 as it is required to build, but that didn't solve the issue.

Loaded up an autosave and was able to change a quest flag and reload back in game. :)