RMMV Saving Game Issue

Hi everyone,

I recently changed the name of one of my "img/character" filenames. As expected, the walking sprites / objects that had used the original filename disappeared (or, at least, their pictures went blank), so I went through my game and restored their pictures under the new filename. They're all visible again, and I can interact with them like normal. I can even start up my game and proceed through it (I don't get an error that stops me from opening or playing), but specifically when I try to save the game, it gives me the "Loading Error. Failed to load: img/characters/filename.png" and it's the old (not new) filename. I'm prevented from saving the game, and the game freezes, even when I click the Retry button. I don't want it to try seeking the old filename anymore though, because it doesn't exist. Does this just mean that I missed updating one of the sprites that used the old filename? Why is this error only happening when I try to save the game, rather than open/play the game (I'm used to errors appearing immediately, when I try - and fail - to run the game)? Any other ideas what could be causing this? Thank you!
It looks like you forgot to change one of the event's graphics to the new one. That's why the game is trying to find the old one. Make sure that not even a single event uses the old graphic.

Btw, an advice for you. Whenever you need to completely change (you won't need the old one) graphics, don't make a new file with a new name. Just replace the old file with the new graphic. That way you don't have to manually change the graphic and nor will you face troubles like this one.
Any other ideas what could be causing this?
If the engine fails to load the old filename, then this ALWAYS means that you still have a reference to the old name somewhere in your project. And the only way to solve that problem is by finding that reference and changing it to the new name.

That said, there are two special cases you need to keep in mind:
1) sometimes the old data becomes part of a savefile. If you load that savefile again, then the engine expect the old data to be correct.
So the missing old reference can be caused by an old savefile, and if that is the case you'll need to start a new game on the game titlescreen. If a new game gets the old filename then it really is somewhere on the maps or the database.

2) the same error message (with the new filename) can also mean that part of the filename or the folderpath does not follow networking rules.
The easiest way to see that is by going to the console with the full path of the error messages and check if any part of any file- or foldername is replaced by a %-number-combination (like %20 for spaces).
If there is such a replacement then you know which letter is forbidden to be used, because yes, spaces are forbidden to be used in filenames for HTML5-based games.
I found the issue inside the old save files... I correctly updated every image in the game, but the old save files still had recordings of the old filename and were trying to search for it. Deleting all my old save files did the trick. Thanks!!! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-saving-game-issue.125346/