TGB: Unable to import artwork of the same file name twice?
by Eric Carl · in Technical Issues · 09/06/2007 (8:55 am) · 3 replies
Hi, I'm totally new to TGB, so bare with me. ;)
I'm running into a weird problem that seems to be a bug. If I create a new project/level, and drag an image (in this case a PNG) from a Windows Explorer window into the Static Sprites section of TGB, it comes in to TGB just fine.
However, if I go back and modify that image and want to bring the updated version of it back in, I delete the first one from my Static Sprites, drag the updated one back in, and nothing happens. It does not get added to the Static Sprites as it should. But if I go and save the graphic as a new file with a new file name, that one WILL get dragged in.
Even after quitting the program and relaunching it, I'm still unable to bring in a file with the same file name as one that has been imported previously yet deleted. What can I do about this? Thanks!
I'm running into a weird problem that seems to be a bug. If I create a new project/level, and drag an image (in this case a PNG) from a Windows Explorer window into the Static Sprites section of TGB, it comes in to TGB just fine.
However, if I go back and modify that image and want to bring the updated version of it back in, I delete the first one from my Static Sprites, drag the updated one back in, and nothing happens. It does not get added to the Static Sprites as it should. But if I go and save the graphic as a new file with a new file name, that one WILL get dragged in.
Even after quitting the program and relaunching it, I'm still unable to bring in a file with the same file name as one that has been imported previously yet deleted. What can I do about this? Thanks!
#2
09/20/2007 (7:43 am)
Ahh, very interesting, thanks a bunch! Kind of annoying but I think I can manage with it. ;)
#3
09/20/2007 (11:43 am)
These things are managed datablocks in the /managed/datablocks.cs file. You can actually have two files of the same name in different directories be referred to by different resource names. It's not recommended, unless you're actually doing it for a good reason. It's something you'd be doing in the script, not so much in the manager.
Frank_ac
When you first add an image into your project (no matter how you add it), the image is added into "your project name"\game\data\images folder. Then it won't change any more, even if you've update the source image or delete it in the TGB edtior.
The solution is pretty simple. You can go to that folder in explorer, and delete that image manually, then add the new image again.
I am wondering why isn't there a "refresh" or "update" button on the property window of static sprite?