Bug with RPG Maker MV Erase Event

I've only tested this issue with an Autorun event.   Simple to replicate: Make a new game, put one Autorun event tile with text "Autorun" and erase event command.

Spoiler
AutorunEvent.png

On new game "Autorun" shows up as expected. Save game, quit to menu and then continue the same game. "Autorun" does not show up this time. If I exit the program completely and then start it up again, continue save game "Autorun" appears this time now as I would expect. The issue is with Autorun not executing after reloading a save game during the same session. Not sure if this is by design or a bug but it is inconsistent and could cause confusion when an Autorun event is intended to occur after loading a game.


Update:


More strangeness. After repeatedly testing this by quitting the game and opening it again to reload the save I found that sometimes it ran the autorun event and sometimes it didn't. Very inconsistent. It seems like I had to wait a while before opening the program again for the autorun to kick it but if I quit the program and opened it really quickly it wouldn't.
Here are a few additional infos, perhaps they clarify whether this is an error or not.


"Erase Event" is a bit misnomed because it works only temporarily - if you erase an event, leave the map and then return to that map it will be reloaded from the mapfile and run again. That's why you need to switch off autoruns and parallel processes to end them permanently.


However, if a game is saved the current map is saved within the savefile, including its status and event positions and so on. So when reloading a saved game, the erased autorun should not be active again until you leave the map and return to it.


Can you check if that "strangeness" you describe depends on you leaving and returning to the map? Because if it does, then that is regular behaviour and not a bug.
Hi Andar, the thing that is strange is that if I exit the game completely and then start it up again and reload my save game, it will process the erased autorun event again upon loading the game.



If I quit to title and reload the game (without exiting program) it will NOT run the autorun event.


All of this is without changing maps, just loading a saved game.


I'm gonna guess it may be intentional design to keep enemies from respawning during same play session (when using enemy sprites on map). But if that is the intended design I would think that "erase event" should be called "erase enemy" instead.
Are you running the game in test play? If you are and you make any changes to the map that you are on, all erased events will become unerased and will run again. This is because RPGMaker has to reload the map data due to the changes (otherwise, a change you made in the editor would not show until you exit and reenter the map).
I am running in test play and what you said makes sense. I will have to test it again in deployment to see if it is more consistent.

Original thread: https://forums.rpgmakerweb.com/threads/bug-with-rpg-maker-mv-erase-event.57811/