Bug (?) in Yanfly's Event Spawner

Hi,

I was debugging all night long to find why my game was crashing when I spawn an event.

With all plugins disabled, in an empty map and a single event, I get the error :

1583325111706.png


After much investigations, I managed to find what causes this :

There must be an event on my map that has the same event ID as the event I am trying to spawn

It means that :

- If my map is empty of any event and I press 'B' to call a common event and place a bomb. I get the error
- If my map contains one event (ID : 001) but I want to spawn an event from another map which ID is 002, I get an error aswell
- If my map contains empty events with the right ID, I can use the spawn command without error.

I can reproduce the error even on a fresh project. Thoughts ?
that sounds extremely unlikely, because the event spawner is intended to spawn new events when used correctly. Which means that by definition it should not have problems with any existing event but automatically switch to a new event ID whenever needed.

There has to be something else that causes this, for example a version conflict?
What is your editor version (help-about), what is the core version of your project (open rpg_core.js with a text editor) and what is the plugin version?
Can you give a screenshot of the event with the spawn commands?

Also please give a link to the plugin website and a screenshot of your plugin manager with the plugins.
Um ... if you have all plugins disabled and you get the error, how could it possibly be a plugin that's causing it?

Original thread: https://forums.rpgmakerweb.com/threads/bug-in-yanflys-event-spawner.118816/