Change img name without losing progress

Okay, that's one is gonna be a bit embarrassing ...
Let's assume someone was so foolish to put an & in a character sprite file 's name ans was happily using this file in hundreds of events before realizing what they have done.
Is there any chance I can change that file's name, without having to go over all the events again? x.x
You could do a search and replace for the filename in your JSON directory. I think Notepad++ can do that, you can surely find a few tools.
find and replace is a usefull tool for it, otherwise, dig into the jason file.
As mentioned above, you could change the filenames through the JSON files. Even without any tools or code editors, it's possible with Notepad. Here's how:

Before you do anything, back up your JSON Map files in case something goes wrong! (Map001, Map002, etc, located in your game's "data" folder)

Let's say you have those hundreds of events in map ID 1.
Through Notepad, open the "Map001.json" file. If you don't see it, set it to "All Files", like so:
1.png


Then, press Ctrl+H (Not sure what it is on Mac 🙁).

Inside "Find what", type the following, INCLUDING the quotes:
"characterName":"old sprite name"
(So if your old sprite name was Actor1.png, type "characterName":"Actor1", without the png)

Inside "Replace with", type the following:
"characterName":"new sprite name"

It should look like this:
3.png

In my example, I replaced all "Actor1"s with "HerpaDerp"s.
Then, simply click "Replace All", save the file, and you should be good to go.

Repeat the process for every map you have that character in.

Again, make sure you have backup of the Map files before you tamper with them!

Hope I helped!

* Edited to make it clearer and avoid overwriting unwanted things
Thanks to all of you 🙂 worked flawlessly and saved me a lot of time : D

Original thread: https://forums.rpgmakerweb.com/threads/change-img-name-without-losing-progress.153443/