Backup sprite file error [Solved???]

Started by ShiverMeSideways, Sat 17/09/2011 22:44:59

Previous topic - Next topic

ShiverMeSideways

Hello!

I seem to be getting an error when saving after I've added a sprite to the game!

Code: ags
Error: Unable to create the backup sprite file. Make sure the backup sprite file is not read-only
Version: AGS 3.2.1.111

AGS.Types.AGSEditorException: Unable to create the backup sprite file. Make sure the backup sprite file is not read-only ---> AGS.Types.AGSEditorException: Unable to create the backup sprite file. Make sure the backup sprite file is not read-only
   at save_game(Boolean compressSprites)
   at AGS.Native.NativeMethods.SaveGame(Game game)
   at AGS.Editor.NativeProxy.SaveGame(Game game)
   at AGS.Editor.AGSEditor.SaveGameFilesProcess(Object parameter)
   at AGS.Editor.BusyDialog.RunHandlerOnThread()
   --- End of inner exception stack trace ---
   at AGS.Editor.BusyDialog.Show(String message, ProcessingHandler handler, Object parameter)
   at AGS.Editor.AGSEditor.SaveGameFiles()
   at AGS.Editor.Components.FileCommandsComponent.CommandClick(String controlID)
   at AGS.Editor.ToolBarManager.ToolbarEventHandler(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.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   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.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


The sprite I add is a 36x36 24-bit BMP file (the game is 16-bit) with No transparency. After I try to save and the error appears, the sprite then turns dark in the Sprites screen/tab.

I deleted the sprite and then saved (still got the error) and then closed and re-started AGS. I then saved and it was ok. But when I added the sprite and saved it gave the same error.

I tried copying and renaming the main sprite file to "backup_acsprite.spr" and the editor started and I could save, but when I add the sprite and try saving again, it gave the same error.

Could someone please help me out with this? Thanks!

EDIT: Ok, I rebooted and now there's no more error, and I'm adding sprites with no problem. What just happened?

Wyz

I guess it was caused by a rogue file lock, rebooting would fix that. Let's hope it doesn't happen again. :(
Life is like an adventure without the pixel hunts.

SMF spam blocked by CleanTalk