- Joined
- May 26, 2013
- Messages
- 143
- Reaction score
- 48
- First Language
- portuguese
- Primarily Uses
I'm having a problem. I can save a picture of my preference in the folder that I want, but I want that picture to be replaced after some events, and when you reload it, with hte same name in the same folder, it will be a refreshed version, diferent.
Well, the images are saved and then replaced, but in the game, when it have to show the image, it shows the previous version of it, even if it don't exist anymore. (but in the game folder it was replaced with a new version, as I can see because I'm with the folder oppened in the win explorer)
Trying to make it more understandable:
I have the "Image_01.png"
I loaded this to the menu. It shows the image, I'm happy!
But now, without restarting the game (cause restart makes the problem "vanish"), I replace "Image_01.png" with anoter version on the same folder with the same name. (the file is still "folder/Image_01.png")
When I open the menu I want the game to reload the image and show me the new version, but the game shows me the previous version of the picture.
What do I understood? The game just do not load the new version beacuse it's using its cached temporary files version, and is not loading it from the folder as I want it to do.
I researched for answers, but I can't understand how to use these functions in the rpg maker:
http://stackoverflow.com/questions/1077041/refresh-image-with-a-new-one-at-the-same-url
http://stackoverflow.com/questions/17479748/refresh-image-in-jsp-avoiding-cache
http://websistent.com/javascript-reload-image/
http://stackoverflow.com/questions/684917/can-i-delete-file-from-temporary-internet-files-in-javascript
Someone here can understand what to do? I need to know, it would help me a lot.
Well, the images are saved and then replaced, but in the game, when it have to show the image, it shows the previous version of it, even if it don't exist anymore. (but in the game folder it was replaced with a new version, as I can see because I'm with the folder oppened in the win explorer)
Trying to make it more understandable:
I have the "Image_01.png"
I loaded this to the menu. It shows the image, I'm happy!
But now, without restarting the game (cause restart makes the problem "vanish"), I replace "Image_01.png" with anoter version on the same folder with the same name. (the file is still "folder/Image_01.png")
When I open the menu I want the game to reload the image and show me the new version, but the game shows me the previous version of the picture.
What do I understood? The game just do not load the new version beacuse it's using its cached temporary files version, and is not loading it from the folder as I want it to do.
I researched for answers, but I can't understand how to use these functions in the rpg maker:
http://stackoverflow.com/questions/1077041/refresh-image-with-a-new-one-at-the-same-url
http://stackoverflow.com/questions/17479748/refresh-image-in-jsp-avoiding-cache
http://websistent.com/javascript-reload-image/
http://stackoverflow.com/questions/684917/can-i-delete-file-from-temporary-internet-files-in-javascript
Someone here can understand what to do? I need to know, it would help me a lot.
Last edited by a moderator:
