What Did I Do Wrong With This Move Route Cycle?

I'm trying to get these cultists to jump around in a circle so that they appear to be dancing around an altar. I use a move route to do this, as you might expect.


This move route is 7 event pages long; one event page for each jump, and each event page modifies their self switches so the next event page will function. Eventually I run out of self switches and use real switches (that are also turned off by the event itself), and eventually the event itself turns off every switch so it loops back to page 1.


Earlier, I had half of the cultists jumping around in a perfect circle forever. The other half would randomly decide to jump away into oblivion, seemingly because they don't all land at the exact same microsecond so the one cultist that controlled the switches would land too late and they'd loop back to page 1 too soon and jump away into infinity. So I gave every single one the switches, and now they all do the first loop perfectly, but once they get back to their original positions and loop back to page 1, they all jump in the opposite direction and vanish offscreen, even though there are no switches on and they should only be able to run page 1.


The spoiler shows all the event pages (all of them have the same things except for different coordinates), and the video shows what happens when I attempt to run it.

Spoiler
db79a577062c95f545562362b231e29a.png



ff698b696fcee6594c2b305d36b0c812.png



61641543899f7e39f4a894d1684dcdd1.png



898403fd3ee56c0a9ee06ab9bc6f88bf.png



b2cedb8535a43e98d753c4239db97aea.png



da4ec6300ea8167d0669a982379b950b.png



edfa9a4b203301cd88fa1752994d520e.png



View attachment pls help.mp4
A lot of things are wrong there - I suggest you scrap everything and start with new events.


1) never never NEVER split the commands of a single cutscene between several pages or several events.


All commands of the entire cutscene need to go into a single controlling event, and that preferably isn't one of the moving events. All NPCs should be placeholder events empty of any command, and be remote-controlled from the controlling event.


Splitting the commands on different pages, especially if those pages are parallel processes, will only create timing problems.


2) Don't use a set move route command on a parallel process page unless you know exactly what you're doing.


Parallel Processes loop sixty times per second, and any event can have only one move route programmed - the next set move route command will erase the previous command, and if the second command comes before the first execution is complete the first move route will be aborted.


3) you didn't display the most important page of them all - page 8.


Page priority is highest page number = highest priority. What you have on page 8 can and will cancel everything else on the event.
A lot of things are wrong there - I suggest you scrap everything and start with new events.


1) never never NEVER split the commands of a single cutscene between several pages or several events.


All commands of the entire cutscene need to go into a single controlling event, and that preferably isn't one of the moving events. All NPCs should be placeholder events empty of any command, and be remote-controlled from the controlling event.


Splitting the commands on different pages, especially if those pages are parallel processes, will only create timing problems.

I'm not sure if you could consider it a cutscene. The cultists jump around and the player can freely move while they do it. I can't use Autorun to make that happen because, as far as I know, that makes time stop until it's done, and if it's going to loop forever, then time will freeze forever. Action Button obviously wouldn't be something I'd want. I guess I could make it a player touch/event touch near the entrance of the area, but would that actually fix my problem?

2) Don't use a set move route command on a parallel process page unless you know exactly what you're doing.


Parallel Processes loop sixty times per second, and any event can have only one move route programmed - the next set move route command will erase the previous command, and if the second command comes before the first execution is complete the first move route will be aborted.

It was a Parallel Process before when it was a single cultist, and it worked for him. When I got all six, it worked for about half, and it wasn't until I gave every one the switch to go back to page 1 that it made them disperse at the end (although it did work for the first cycle).

3) you didn't display the most important page of them all - page 8.


Page priority is highest page number = highest priority. What you have on page 8 can and will cancel everything else on the event.

Page 8 is just "If this other switch is on, display a sprite of the cultist dead." And it requires a switch to be on, and no event exists to trigger that switch yet, so I didn't think it was important.


d7c9ac0350e54fcc36ea7c7ff4faa590.png



I tried deleting this page temporarily to see if it was causing the problem, but no dice.
I'm not sure if you could consider it a cutscene. The cultists jump around and the player can freely move while they do it. I can't use Autorun to make that happen because, as far as I know, that makes time stop until it's done, and if it's going to loop forever, then time will freeze forever. Action Button obviously wouldn't be something I'd want. I guess I could make it a player touch/event touch near the entrance of the area, but would that actually fix my problem?

No, but that is what autonomous movement is intended for - you still need to make the entire route in a single page, but use custom autonomous movement for it, not set move route. And DON'T set a page with autonomous movement to parallel process either - autonomous movement is already parallel, and you can use the page content for other things like what should happen if the player triggers action button on the event while it is moving.

It was a Parallel Process before when it was a single cultist, and it worked for him. When I got all six, it worked for about half, and it wasn't until I gave every one the switch to go back to page 1 that it made them disperse at the end (although it did work for the first cycle).

That is what timing problems are - the more parallel processes you have, the more critical timing and lag becomes.


You can follow the link to the bughunting tutorial in my signature if you want to know the background why your parallel events suddenly worked out of order.

Page 8 is just "If this other switch is on, display a sprite of the cultist dead." And it requires a switch to be on, and no event exists to trigger that switch yet, so I didn't think it was important.

It was important to see that it doesn't interfere - and it still contains an error.


Please change that page to action button trigger - if a page has no contents, it will only create lag if it is on parallel process. Because it still is processed sixty times a second even if there are no contents to be processed if you set it to parallel process.
No, but that is what autonomous movement is intended for - you still need to make the entire route in a single page, but use custom autonomous movement for it, not set move route.

So if I'm setting a move route in the event, it should only be if someone's doing something once only?


I considered doing a custom autonomous move route at first, but I thought it would be too long to put inside just one move route.
basically yes - or if you need to mix the move route with other commands, or synchronise the movement for very specific cases (in which you need to issue all commands from a single controlling event to several other events).


And the move route needs to be a single move route - it can be as long as you want, but splitting a move route always riscs timing problems and should not be done unless absolutely neccessary.
This is maybe a easier way to do it, I have some church people walking around a pillar in a little project I have and this is how I did it.


It should work the same for you, just edit so their move routes are what you want them to be. (Spoiler tag cause pictures.)

Spoiler
Spoiler

walk1.png


Screenshot from ingame.


What I did was simply having three events for each person out (ignore the events to the right, they dont have anything to do with this)


walk2.png


And each event's autonoumus movement is set to custom


walk4.png


And their route looks like this (this is from the person in the lead)


walk3.png


All three of their movements are so they circle around the pillar, it simple starts at different points of the route.


The first person is as the screenshot shows


the nun after has instead right>right>down>down>left>left>up>up


and the last one has up>right>right>down>down>left>left>up
And the move route needs to be a single move route - it can be as long as you want, but splitting a move route always risks timing problems and should not be done unless absolutely necessary.

So I made a new cultist with his own really long one-page custom autonomous move route to jump around in a circle forever, and it works, but the problem is he jumps and turns unbelievably slowly compared to before when it was a normal event code, even without any wait commands in the move route.
Oh, nevermind. Apparently the speed for move routes is, by default, set to half speed.
Look I got it to work


It was much easier to do without using 7 event pages.

View attachment Victory.mp4

Original thread: https://forums.rpgmakerweb.com/threads/what-did-i-do-wrong-with-this-move-route-cycle.61988/