hadeutscher / OvercookedTool

Overcooked 2 savegame conversion tool
45 stars 8 forks source link

Can't decrypt save file: System.IO.DirectoryNotFoundException #14

Open mrfroncu opened 3 years ago

mrfroncu commented 3 years ago

Can't decrypt save file due to the following error E:\Downloads\OvercookedTool1.0>.\OvercookedTool.exe decrypt C:\Users\Matthew\AppData\LocalLow\Team17\Overcooked2\XXXXXXXXXXXXXXXXXXXXXXX\Meta_SaveFile.save C:\Temp\Meta_SaveFile.json Epic.OnlineServices.EpicAccountId Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Temp\Meta_SaveFile.json'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes) at System.IO.File.WriteAllBytes(String path, Byte[] bytes) at OvercookedPasten.Program.Decrypt(String source_filename, String dest_filename, String pwd) in D:\Data\Projects\OvercookedTool\OvercookedTool\Program.cs:line 262 at OvercookedPasten.Program.Main(String[] args) in D:\Data\Projects\OvercookedTool\OvercookedTool\Program.cs:line 286

zabbidou commented 2 years ago

Check if the path contains any spaces or special characters (from what I see it doesn't, but that was the problem for me). Also change the json path, maybe the "C:\Temp" is protected. Try Desktop or something else.

lionboy88 commented 2 years ago

In addition to the above comment, also try changing the location of the OvercookedTool.exe folder. The code worked for me only once I changed the location of the tool. Maybe try putting it somewhere on C:\