An invalid event was specified

Hi everybody,

I recently changed to RM2K3 1.11 (purchased on Steam) and for the first time in years on my project i get an error...

It open a window during the game-testing saying "An invalid event was specified" and then the game shuts down.

My scripst are good and I never referenced to "invalid events" I made some research and found that is a "Transfer player" command prolem that appear only in some random map (even maps without events).

The problem appear only after the transfer to a new map, and the error appear shortly after the arrival.

I created a new map and copy-paste all the events from the "corrupted" map to the new and temporary solved the problem.

The real problem is that there is no way to know where or when this error will appear, I started to get this error even in old maps that was always working before but it seems that creating a new map and copy-paste the events is not the right solution.

Is this a soft version of the tree-map break error from the 2k3 1.1? How to solve it?

Thank You

(sorry for my english)
More likely there's some event that you tell something in the transport event that is no longer present on the next map ?
That's what I thought, maybe a common event referring to himself, or a move event command from an event not on the destination map... but nothing, the problem appears randomly on maps that I didn't even modified.
So it doesn't happen always? 😳 is there a common event?
I mean, the error appears on random maps (or maps with a specific trait that I'm not aware of), but once it appear it stays.

Sometimes it appear slightly sooner or later after the transfer player command (you can even see the arrival map sometimes).

The events are all normal map event, I use them for the intro of my game.
Hmm I don't think without the actual game anyone can actually make a diagnosis :/
Did you reduce the number of entries in any of the database tabs (items, skills, heroes etc)? If you did, increase them back to what they started with or to their maximum value, whichever is easiest for you.
I don't know how the number of entries of items may interferee with the events but the problem seems to be solved.

If it will reappear despite the number of entries I will inform you.

Thank you booth 🙂
It happens when the game tries to reference something from the database that you've removed when reducing the number of entries. There will be something on the maps you're trying to teleport to (hence why it happens when you use the "Transfer Player" command) that tries to reference something that isn't in the database any more, and that causes the game to crash. I've never been entirely sure why it happens because it sometimes happens even when a developer is pretty damn sure that they haven't referenced any of the entries they've removed, but increasing the number of entries to the maximum value always seems to fix this particular problem.

*shrug*

Original thread: https://forums.rpgmakerweb.com/threads/an-invalid-event-was-specified.52519/