Asset Editor crash on save

Skyzoh

Chieftain
Joined
Mar 5, 2018
Messages
14
Hey, I have a bit of a problem. When I try to save anything from the asset editor I get a fatal error : System.IO.FileNotFoundException : Could not find [filepath].Name.ast

I tried creating a "blank" name.ast at the location, but then I get an error "could not save" rather than "file not found".

I also tried creating a new project from scratch and I still have the same problem. Given that the asset editor crash after the error and that it takes forever to open, debugging is a pain.

Here is the full error :

System.IO.FileNotFoundException: Could not find file 'D:\Users\<MyName>\Documents\Firaxis ModBuddy\Civilization VI\Test\Test\Assets\Test.ast'.
File name: 'D:\Users\<MyName>\Documents\Firaxis ModBuddy\Civilization VI\Test\Test\Assets\Test.ast'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.GetAttributes(String path)
at Firaxis.ATF.AssetBrowserFileCommands.DoSave(IDocument document, Uri uri, DocumentEventType kind)
at Firaxis.ATF.AssetBrowserFileCommands.SaveAsImpl(IDocument document, Boolean forcePrompt)
at Firaxis.ATF.AssetBrowserFileCommands.Save(IDocument document)
at Firaxis.ATF.AssetBrowserFileCommands.DoCommand(Object commandTag)
at Sce.Atf.Applications.CommandService.item_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at Sce.Atf.Applications.Controls.ToolStripEx.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at AssetEditor.Program.Main(String[] args)​
 
I figured it out : just run ModBuddy as admin
Steam -> right click on Dev Tools -> Properties
Pick the Local Files, then Click on Browse local files.
Right click on modbuddy, and in one of the tab, select "run as admin"
 
Top Bottom