MV Compatibility between Galv_event_spawner and Qmovement [SOLVED]

I have a serious problem with these two plugins. When you generate an event with the Galv_event_spawner having the Qmovement activated, the events are not activated, neither pressing "Enter" to interact or colliding with it.

This is a problem that someone else posted on the forum a while ago and it seems that the problem could be quite complex (I don't know much about this). If someone can have the possible solution, talk to me privately in this account or if you want to comment on anything else, feel free to post it here.

I leave here the link of the plugins and a demo to download replicating the error to which I refer:

Qmovement: here
Galv's event spawner: here
Demo replicating the error: here

Thanks so much for reading. Bye!
1) swapping plugins order can work sometimes.
2) requesting to fix something and paid = not allowed (only at commission thread)
which require you to have at least 30 meaningfull posts.

but if its an easy fix and they can help you, they will, but if you have a deadline,
make 5 more post and post it there.

as fixing stuff might be different, depending on the coder and speed they do 🙂
so the price can even bit higher what you suggest.
1) swapping plugins order can work sometimes.
2) requesting to fix something and paid = not allowed (only at commission thread)
which require you to have at least 30 meaningfull posts.

but if its an easy fix and they can help you, they will, but if you have a deadline,
make 5 more post and post it there.

as fixing stuff might be different, depending on the coder and speed they do 🙂
so the price can even bit higher what you suggest.
Okay, so can I put this same post in the commission section? Sorry, I don't understand 30 meaningfull posts. Does it mean that I must have posted 30 different pages? Really I do not know what it means 😅
Report your post and ask a mod to transfer the thread.
@AquaEcho He cannot do that yet in the commission thread 🙂
he need to have 30 posts at minimum for that one to open.

@Dails it means 30 posts, like your own, helping others etc to unlock that.
but I also test it for you and swap order and stuff and some other modifications.

I also place a chest to the map and the one from the spawned map.

also on touch etc, but it didn't work as you said.

However, spawned event doesn't exactly have an event ID, and it might need
a different scriptcall on the spawned event as well (same with YEP_EventSpawner
plugin which has it too.)

there was a thread about the spawning not working, but I cannot remember that one.
as it might come close to a solution you might look for as well.

but it might require a modification inside the Galv_EventSpawn plugin or ask Galv
if he is still supporting it to make it work.

but otherwise, try to get 30 posts by helping and see if you can move this thread
when you have access to the commission thread.
You can use this.eventId() on a Galv spawned event. I don't know if QMovement is causing an issue but I use Galv Spawn and Altimit together.
You can use this.eventId() on a Galv spawned event. I don't know if QMovement is causing an issue but I use Galv Spawn and Altimit together.
Yes, I used the altimit pixel movement in a project and it worked perfectly with the Galv. But I don't understand how I can use this.eventId() on a Galv spawned event.
Yes, I used the altimit pixel movement in a project and it worked perfectly with the Galv. But I don't understand how I can use this.eventId() on a Galv spawned event.
If you run this.eventId() on the event page of the spawned event it returns its own event id number.

For example, put $gameVariables.setValue(5, this.eventId()); on the event page of the spawned event and Control Variable 5 will now be the spawned event's id number.
If you run this.eventId() on the event page of the spawned event it returns its own event id number.

For example, put $gameVariables.setValue(5, this.eventId()); on the event page of the spawned event and Control Variable 5 will now be the spawned event's id number.
What good would that do? I only imagine knowing what ID the generated event has
It was in response to ShadowDragon who said spawned events don't have event IDs. But storing it in a control variable will allow you to reference that spawned event from outside of that event and do any manner of things to it. Toggle its self switches, make it disappear, whatever.
@AquaEcho He cannot do that yet in the commission thread 🙂
However, spawned event doesn't exactly have an event ID, and it might need
a different scriptcall on the spawned event as well (same with YEP_EventSpawner
plugin which has it too.)
i am just guessing here, but on galvs plugin, spawned events are not regular events..
They have their own class..
And if the other plugin (which i dont ever used) asks for regular events, than this might be the issue.. so that it might be needed to add the option to ask for "Game_SpawnEvent" aswell..

index.html.png

hopefully this info helps
However, spawned event doesn't exactly have an event ID, and it might need
a different scriptcall on the spawned event as well (same with YEP_EventSpawner
plugin which has it too.)
Yes, they do have an Event Id. Every Spawn Plugin assigns a new Event Id to a Spawned Event.

And if the other plugin (which i dont ever used) asks for regular events, than this might be the issue.. so that it might be needed to add the option to ask for "Game_SpawnEvent" aswell..
I don't think that's the issue. Galv's class derives from Game_Event, so it provides the same functions as the core class - only different content, but that doesn't matter.
@Aerosys how can they have their own ID? like you have 40 events
and the spawn event will be 41 next to continue after the events ID?
as events on the map for spawning them have the ID.

it has a spawn ID, but not exactly know how it can have it, as galv can spawn
an event, but if its isn't true, it will be lost, and when called again, its renewed
and probably with the same ID?

not exactly sure how they have one or can be readed, but spawned event should
be interactable, so what will be missing if it doesn't? the movement plugin or
the SpawnEvent plugin?
@Aerosys how can they have their own ID? like you have 40 events
and the spawn event will be 41 next to continue after the events ID?
as events on the map for spawning them have the ID.
Yes, the spawned id just becomes event 41. Spawn another event and it gets 42, and so on. Also, if you unspawn an event that number gets freed up, and the next spawn can take that number.
@Aerosys how can they have their own ID? like you have 40 events
and the spawn event will be 41 next to continue after the events ID?
as events on the map for spawning them have the ID.

it has a spawn ID, but not exactly know how it can have it, as galv can spawn
an event, but if its isn't true, it will be lost, and when called again, its renewed
and probably with the same ID?

not exactly sure how they have one or can be readed, but spawned event should
be interactable, so what will be missing if it doesn't? the movement plugin or
the SpawnEvent plugin?
I think I will shortcut here. Yes, the IDs will count up, just as you described. But, I don't think the Ids are the problem here.

I think, QMovement just needs a little refresh after an Event spawns. I can take a deeper look at it tomorrow.
Hey @Dails 30 meaningful posts to unlock the Classifieds section more or less means, join the community to be part of the community. It’s about having positive interactions and taking the time to truly be a member. We used to have a lot of issues with people uninterested in RPG Maker making a ton of “nice!” “Great work!” comments to gain access and start selling materials to the community without having any care for the community.

Now, for this post. If you’d like to try and proceed as an unpaid request, you’d just need to remove any mentions of payment. If you do insist on paying, you’ll just need a few more posts before you can repost this to Classifieds to be reviewed by moderation. If you’d like to go the Classified’s route, I can hide this thread from view for the time being.
Hey @Dails 30 meaningful posts to unlock the Classifieds section more or less means, join the community to be part of the community. It’s about having positive interactions and taking the time to truly be a member. We used to have a lot of issues with people uninterested in RPG Maker making a ton of “nice!” “Great work!” comments to gain access and start selling materials to the community without having any care for the community.

Now, for this post. If you’d like to try and proceed as an unpaid request, you’d just need to remove any mentions of payment. If you do insist on paying, you’ll just need a few more posts before you can repost this to Classifieds to be reviewed by moderation. If you’d like to go the Classified’s route, I can hide this thread from view for the time being.
I understand, no probem... I'll change the post until I have that permission. How can I know that I have achieved it? I mean the 30 meaningful post. Does it put it somewhere or do I have to count them myself?
It looks like you have removed the option of payment from your first post, so this no longer needs to go to Classifieds.

Moved to: Plugin Support

You can see on all of your posts what your post count is (it's the number of "messages" and you have 29). If you make one more post, then decide you want to pay for this, just report your thread and ask for it to be moved, and edit your post and put the amount back in.
now that I think of it, there is a function you could try to add on the event or after
something is spawned to request a mapRefresh, but not sure if that will work out.

I use it on my end for a mechanic (not movement route or spawn event way, but
it might work out.

if I remember right on your parallel event and erase event, you spawn the event,
and than erase event, you can try (for test purpose) set 30 wait frames AFTER
the spawn event scriptcall and than call:
JavaScript:
$gameMap.requestRefresh();
below it, than erase event, this make sure, to refresh the map on activating,
if it does work, see if it works on 15 wait frames down to 5, I wont recommend
it any lower than that, but this is just to test the 30frames first.

if it doesn't work, its like Aerosys said, something in the movement plugin.
This is an older thread but I've seen that this question has been posted many times over the years. I myself had this exact problem and fixed it. The issue is that Qmovement's "Game_Player.prototype.collidesWithEvent" only checks for basic events, not spawned ones. If you put this plugin after Qmovement and Galv's Event Spawner it will fix it.

Code:
//=============================================================================
/*:
 * @plugindesc QMovement + GALV EventSpawner Compatability Hack
 * I had no idea these things could break each other.
 * @version 1.0
 * @author LS
 *
 */
//=============================================================================
//=============================================================================
Game_Player.prototype.collidesWithEvent = function(event, type) {
  if (event.constructor === Game_Event && !event._erased) {
    //by default collidesWithEvent only checks for regular game events like this
    return event.collider('interaction').intersects(this.collider(type));
  } else if (event.constructor === Game_SpawnEvent && !event._erased){
    //but in order to work with the spawned events we need to check Game_SpawnEvent not just Game_Event!
    return event.collider('interaction').intersects(this.collider(type));
  }
  return false;
};

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-between-galv_event_spawner-and-qmovement-solved.157125/