Parallel event stops executing after map transfer?

The last 3 commands are entirely ignored by RPG Maker. This used to work in RPG Maker Ace. But not in MV?

The screen stays black, the 2nd text dialog is not displayed and the selfswitch is never hit.

test.png


http://s18.postimg.org/hrsiikn6x/test.png

I suppose this is intended. But if I have the following scene:

1. player walks out the door

2. do some other random stuff

3. set player transparancy to ON

4. transfer to new map

5. turn transparancy OFF

6. fade-in screen.

You obviously do not want to fadein the screen while the player is still invisible.

The other thing that was so great about Ace was that you don't need another event in the 2nd map where the player was transferred too because the previous map could still handle that part.

Now I need a global switch or something with another parallel event in the 2nd map to turn ON transparancy and to show the dialog. This is so messy!

Another parallel event AND a global variable just for leaving a cutscene...

Please tell me the proper way to do this in MV.
I don't have MV, but have you tried doing it by calling a common event in your first event(the one you are showing here) directly after "transfer player call" and then put the remaining commands you want to execute in the common event which will be called after the system have transfered the player?
i dont fully understand how you run event after number 2.

but you can make it common event auto run with switch
Common events have the same problem. Also does not work.
it works for me

you need to replace control self switch to control switch off
The problem is not with the parallel process or the common event, it's with the transfer player command.

Moving to a new map will erase all map events from the current map, including the one currently processed.

SOME commands may be executed if placed after a transfer command, but a lot of command will simply vanish when the process vanishes.

unfortunately you could never be sure that a command is executed if placed after a transfer, so for years there always was the suggestion to have the transfer as the last command on the map event, and move all commands to be executed after the transfer to the new map.

It was this way in Ace, and I don't think they changed that in MV.
The problem is not with the parallel process or the common event, it's with the transfer player command.

Moving to a new map will erase all map events from the current map, including the one currently processed.

SOME commands may be executed if placed after a transfer command, but a lot of command will simply vanish when the process vanishes.

unfortunately you could never be sure that a command is executed if placed after a transfer, so for years there always was the suggestion to have the transfer as the last command on the map event, and move all commands to be executed after the transfer to the new map.

It was this way in Ace, and I don't think they changed that in MV.

Are you saying that there is a list of certain commands which will work post transfer and others which will not, or are you saying that it's closer to random/haphazard and completely unreliable as to which commands will work and when they will work post transfer? Always wondered this.
Are you saying that there is a list of certain commands which will work post transfer and others which will not, or are you saying that it's closer to random/haphazard and completely unreliable as to which commands will work and when they will work post transfer? Always wondered this.
Both - but not exactly like this. Some commands are almost guaranteed to fail, others have a good chance to be executed, and in a lot of cases it looks random because it also depends on the order of the commands.

It's a timing problem and it depends on whether a command is directly executed or entered as a new process into the game loop - and at one time of the transfer, the game loop will be cleared. Follow the "Bughunting" link in my signature for the background on how the game loop and parallel processes really work.
I fired up RPG Maker Ace to check it. I found out why I thought it works in Ace. Because autorun events do work, parallel ones do not. Applies to both RPG Makers.

However, the problem with autorun-events is that you can't use multiple moveroutes and such in it. So autorun events will solve the problem for some cases, but not for (most) others.

I do find it weird though that common events also skip code. I thought those at least work because they are 'global'. But their execution also seems to get 'deleted' after a map transfer.

So what is the suggested (proper) woraround for parallel events? Maybe flip a self_switch in the other map before transferring the player that will finish the remaining code?
Try with autorun instead of parallel...
I got it! I just need an extra event page.

Event Page 1:

regular parallel event

Event Page 2:

autorun event with the code from Page 1 that would otherwise be skipped.

The first line on this page is probably the "transfer player" event.

Event Page 3:

for turning this event off forever

So basically the solution is to just add another page in the parallel event that is set to autorun and that contains the code to execute for the other map. Now you have the best of both worlds, and no global variable nonsense, no extra events, no common events. Clean and simple and it works.
The problem is not with the parallel process or the common event, it's with the transfer player command.

Moving to a new map will erase all map events from the current map, including the one currently processed.
This is not true. I tested this extensively in VX Ace, have utilized eventing behavior as a result of my findings, and have carried that over to MV (no idea about other versions).

An event that has been executed will continue to run until completion, even if the event contains transfer map commands. I've used this behavior to transfer the player to another map, then transfer them back again within the same event. The entire event runs to completion, even when the player switches maps, with no autorun events on the interim map activating.

The only exception to this behavior is Parallel Process events, which by their very nature behave as you describe, and will cut out mid-execution if you transfer maps.
An event that has been executed will continue to run until completion, even if the event contains transfer map commands.
not exactly - SOME commands run after transfer, but not every command.
and it is too complex to explain the differences between the commands that work and the commands that get erased to new users, so it usually is easier to tell them to not expect commands to work after a transfer.

because with sequences of commands it is almost random whether they work or not (not really, there is no randomness anywhere in the computer, but new users have no chance of seeing the difference beforehand)

Just search through the forum for the dozens of cases where the transfer was the reason the event failed - just one or two weeks ago was another one of them, that time because a call common event was placed after the transfer.

Original thread: https://forums.rpgmakerweb.com/threads/parallel-event-stops-executing-after-map-transfer.49465/