MV Event Names not removed after event ereased

Good Day Everyone,
I am working on my very first project with RPG Maker and am having some issues with a plugin (I guess?) - Please pardon if I posted at the wrong place, this is my first post.

I have following situation: I am spawning events dynamically, they walk around, depending on where they are they take damage and after a certain amount of damage they die and get removed agin. While being alive, they shall have a Name above their head.

All of this works fine except:
After the events got removed, the Event Name stays stuck in the screen:

stuck.png


Interestingly, after I opened the Debug Menu with F9 and closed it again, the text was gone.
In the image on the left you can barely see the text is still around behind the menu, but after I close it again, the text is finally gone.

stuck2.png



I am using two Plugins right now:

I initially wanted to ask Mr. Trivel for support/advice but it seems he hasn't been active in this Forum for quite some time, so I decided to create a new post instead.

Oh, and also, if I use the commands from inside the Event Names plugin in the dev console "resetEventNameData()" and "updateEventNameData()" I can see that the information in the event fields (e.g. eventNameText) are being updated but only updateEventNameData() will make the text immediately appear. If I use resetEventNameData() I have do use the F9 workaround to make it disappear again.

Let me know if you need more information.
Thanks!
The fact that it corrects after exiting F9 indicates to me that it needs the map to refresh.

So whatever you're doing to "kill" the enemies, try sticking in a script call for
Code:
$gameMap.refresh()
Hi @ATT_Turan , thanks for your input!

Unfortunately that didn't work...
I have now created a new project from scratch with only exactly this behavior. Spawn, Delete, Name stuck and the issue is still there. I have recorded that test:

We've recently updated our free Event Labels plugin so label data persists across game saves and maps, this includes making sure when a label is hidden through the plugin commands it remains hidden. The peristence feature is currently in beta but before we make an offical release we will be sure to include an option to remove the label when an event is "removed".

In the meantime if you do use our plugin you can use the plugin command Labels Hide [EventId] and that will hide the label and keep it hidden, you can omit the eventId if you want to hide the label attatched to the event where the plugin command is being initated from.

You can download the beta version here, when you download it, make sure you select the X_EventLabels_MV_Beta.js


Edit: Minor mistake in the filename.
That's great, thank you!
I'll give it a try later tonight and let you know 🙂
I tried adding a label to the button to try it out but somehow I can't get it to work... any ideas?
(I tried adding ShowLabel but nothing changed).
I have tried X_EventLabels_MV.js and X_EventLabels_MV_Beta.js.

1708807049500.png


1708807095500.png


1708807123991.png
@treecrasher Yikes! Not sure how that one got past us. Sometimes MV is treated as a second-class citizen when we are pushing updates fast, and we forget to test the MV version prior to uploading. But this issue is embarrassing. We just pushed a new update to the beta channel; hopefully, this fixes the issue for you. Either way, let us know, and we will be sure to get you up and running.

Meanwhile we are going through our commit history to find our how we made such a visible mistake
@LTN Games No Problem at all, thank you very much for the quick response and your support! 🙂
The plugin works now for the normal events, but for the dynamic ones it's still the same behavior 🙁
I guess this could be cause by the EventFactory plugin... :-/

If you have an idea if this could be fixed fairly quickly I'm happy to try it out but if not don't worry about it either 🙂

See video attached:
@treecrasher Could you send us this demo, we would love to attempt to find a solution for you.
@LTN Games Of coure, thank you! 🙂
I just zipped the project folder, is that enough?

You find the file here:


I'm really curious about that.. but as I said, if it's helpful for you too then that's great, but if it's only to help me don't spend too much time on it 🙂 Really appreciate your efforts!
We see the issue now. And yes it is because of the EventFactory plugin and while we could come up with a quick fix, there are quite a few Event Spawner type of plugins available and it would be nice to come up with a proper solution that attempts to support all of them.

So if you don't mind waiting a day or two, the next offical release will include a solution that hopefully works with event spawner type plugins.

We will keep you updated!
Hi @LTN Games that's awesome!
I don't mind waiting, looking forward to your next release, thanks for the update! 🙂
Hey @treecrasher, we've pushed a new update to the beta channel with some changes that should hopefully fix the issue you were having. There is a new plugin command that will need to be used in place of the Labels Hide, and that would be Labels Remove. Since EventFactory and likely most event spawners are actually removing the event, we need to match that by removing the label when you remove an event. This removes it permanently, meaning there will be no persistent label data (we may come up with a solution for that in the future). There is also now support for using the variable \V[id] message code in the plugin command, considering this is the only way to track the event ID you require.

Let us know how this new beta version works out for you, your feedback is gold to us.
@LTN Games IT WORKS! 🙂
That was faster than I expected, thank you for implementing it! It also works in my "actual" project with dynamic labels and all, so all good for me 🙂

And just FYI, without wanting to lessen your success, I think I found another minor bug. The "Default Font Settings" (at least the size) didn't work for me, I had to add the parameter to every event. Doesn't matter much to me, but maybe you want to check it out 🙂

Original thread: https://forums.rpgmakerweb.com/threads/event-names-not-removed-after-event-ereased.166127/