Author Topic: File I/O request for next ver.  (Read 905 times)

violgamba

  • Posts: 8
File I/O request for next ver.
« on: 03 May 2008, 19:12 »
  I've noticed that if you access a picture file in AGS (say, to load into a sprite).  The picture file remain's locked (ie. resaving from MS Paint recieves a "Sharing Violation Error") until you close AGS back down again.  Even if you delete the sprite you've loaded from the file.
  Since the data gets loaded and stored in the game, this seems unnecessary and, at least unless I'm missing something, it would be a simple matter to fix (just release the file once you've gathered the data).
  The reason this would be helpful is that I'm often drawing a sprite in MS Paint, loading it into AGS, seeing that it could look better, then altering it in MS Paint.  If I want to update my changes then I have to close AGS first, save the file, then reopen AGS to re-import the picture.




Pumaman

  • Creator of AGS
  • Posts: 10,499
  • I sense danger.
    • Lifetime Achievement Award Winner
Re: File I/O request for next ver.
« Reply #1 on: 03 May 2008, 20:12 »
Only the one most recently imported sprite file is locked, and this is to provide the "New sprite using last sprite" and "Replace sprite using last sprite" options.

To avoid this happening, use the "Quick import sprites" option to import the sprite instead of the main import window.

violgamba

  • Posts: 8
Re: File I/O request for next ver.
« Reply #2 on: 04 May 2008, 00:34 »
Wow!  Thank you for your quick response!

I thought it odd that this would slip by as a bug so I'm not surprised that you have a reason.  I still don't quite understand it but I'll accept that it exists and is reasonable.

Amazing job with AGS, btw.  Like many others (I am sure), I am awed and grateful that you still hold the freeware license.


ThreeOhFour

  • Posts: 2,948
  • Wild colonial boy.
    • Lifetime Achievement Award Winner
    • ThreeOhFour worked on a game that won an AGS Award!
    •  
    • ThreeOhFour worked on a game that was nominated for an AGS Award!
Re: File I/O request for next ver.
« Reply #3 on: 04 May 2008, 07:45 »
You can also use the "edit in default image editor" function (right click in the sprite manager) if you wish.

I have done this on occasion, and it can be rather handy.

Rui 'Trovatore' Pires

  • Posts: 4,359
  • Lunge da lei per me non v'ha diletto!
    • I can help with AGS tutoring
    • I can help with play testing
    • I can help with proof reading
    • I can help with scripting
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
Re: File I/O request for next ver.
« Reply #4 on: 04 May 2008, 11:31 »
Double-click will also do it, and it's even more handy. ;D
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.