vawser / Smithbox

Smithbox is a modding tool for Elden Ring, Armored Core VI, Sekiro, Dark Souls 3, Dark Souls 2, Dark Souls, Bloodborne and Demon's Souls.
MIT License
151 stars 11 forks source link

Crash on trying to export any text. #106

Closed rurattee closed 1 month ago

rurattee commented 1 month ago

Smithbox_UWRW2cxtIq

Not quite sure what's going on since it looks like a similar issue was fixed previously. Whenever I try to export text, modded or otherwise I get the error in the image above. Since it was a path error I assumed it may have had to do with folder hierarchy, so I tried nesting a text folder in the project. I also thought it may have been the spaces in the filepath but it seems like that wasn't it either. Not really sure what's up but let me know if it's an easy fix on my end.

Path(?): F:\Eldo Rang Mods\ModEngine-2.1.0.0-win64-DLC\mod\1Zipped\clever\text clever being the project directory.

Crash log dump:


Value cannot be null. (Parameter 'path')

   at System.ArgumentNullException.Throw(String paramName)
   at System.IO.MemoryMappedFiles.MemoryMappedFile.CreateFromFile(String path, FileMode mode, String mapName, Int64 capacity, MemoryMappedFileAccess access)
   at SoulsFormats.MountedSoulsFile`1.Read(String path) in ./src/Andre/SoulsFormats/SoulsFormats/Util/MountedSoulsFile.cs:line 40
   at StudioCore.Editors.TextEditor.FMGLanguage.SaveFMGsNormal() in ./src/StudioCore/Editors/TextEditor/FMGLanguage.cs:line 203
   at StudioCore.Editors.TextEditor.FMGLanguage.SaveFMGs() in ./src/StudioCore/Editors/TextEditor/FMGLanguage.cs:line 129
   at StudioCore.TextEditor.FMGBank.SaveFMGs() in ./src/StudioCore/Editors/TextEditor/FMGBank.cs:line 115
   at StudioCore.TextEditor.TextEditorScreen.SaveAll() in ./src/StudioCore/Editors/TextEditor/TextEditorScreen.cs:line 423
   at StudioCore.Core.EditorHandler.SaveAllFocusedEditor() in ./src/StudioCore/Core/EditorHandler.cs:line 120
   at StudioCore.Smithbox.AttemptSaveOnCrash() in ./src/StudioCore/Smithbox.cs:line 479
   at Smithbox.Program.Main(String[] args) in ./src/Studio.App/Smithbox/Program.cs:line 40
vawser commented 1 month ago

It's failing to read the FMG binder. Looking at the code in that section, it might be that you don't have the dlc02 FMG binder unpacked (you need to use the latest UXM Selective to unpack it)

rurattee commented 1 month ago

That looks to have been it (or at least there's no more crashes and I'm seeing lots of json files in my specified directory). Thanks a million!