Move Route Mind Boggler

Sorry to bother you but I have this mind boggler I can't get round.

I'm making a space based game and when the commander enters the control room I want to start a scene. Problem is, he won't move. As you can see in the attached image, the first move route I made for him works, he moves up two squares, and the captain informs the crew of his presence. He should then move to his control console but this doesn't happen. He just stands there, the rest of the event proceeds as normal.

How could this be?

wutt.png
Please check the passability of the tiles the player is supposed to move to - if those are impassable, the move route will be blocked.


Try to change that move route to move the player to a different position to see if that is really the problem or if there is something else
Well it moves on the first two tiles, and the rest is the same tile. I might add that it worked before but then just stopped for no reason.

What is so strange to me is that it moves two tiles, nothing of significance happens (like switches, variables or scripts) and then it just won't move anymore.
Just off the top of my head, the usual suspects are a conflict with an autorun event, impassable tile (as mentioned already) or blocked by another event. Setting "through on" in your set movement route is usually a simple way to debug or fix the problem.
Just off the top of my head, the usual suspects are a conflict with an autorun event, impassable tile (as mentioned already) or blocked by another event. Setting "through on" in your set movement route is usually a simple way to debug or fix the problem.
Tried your solution, thanks, but it didnt work.

However I got a little closer to the problem, the Commander moves perfectly if the first switch is turned off. This switch points to a common event that is a parallel process (it checks what weapon is equiped to correspond with the hero graphic).

However, what still baffles me as that when that switch is on and the process is working, he MOVES TWO tiles in the first 'move route' but does nothing in the following move routes, while nothing happens in between.

EDIT: Found a work around by turning off the switch when the scene begins and switch back on when it ends. Still don't know what produces the problem though. I never though switches or parrallel processes to interfere with the move event command in an event.
EDIT: Found a work around by turning off the switch when the scene begins and switch back on when it ends. Still don't know what produces the problem though. I never though switches or parrallel processes to interfere with the move event command in an event.
They don't affect it directly - but whatever else that switch triggers does affect it.
What you describe is the classical case of a single switch used accidentally in two different sequences.


One of these sequences is the parallel process you already identified, but I bet that there is another event that is triggered by that same switch, and you need to find that other event that uses the same switch to do something else.


Another question: how many waits do you have in that parallel process that switches the sprite based on weapon? Because without waits, that event will cause lag and other problems when active.
They don't affect it directly - but whatever else that switch triggers does affect it.

What you describe is the classical case of a single switch used accidentally in two different sequences.

One of these sequences is the parallel process you already identified, but I bet that there is another event that is triggered by that same switch, and you need to find that other event that uses the same switch to do something else.

Another question: how many waits do you have in that parallel process that switches the sprite based on weapon? Because without waits, that event will cause lag and other problems when active.
I have an autorun event on the first map that activates the first switch, indeed I have another switch in the room (seperate event) that toggles the lights in the room, you think that might be the problem maker?

I have no waits in the parallel process and I do notice increased lag when its active, any ideas on how to put in the waits? I have it set up like this:

Conditional branch -> when hero has [weapon] equiped

Set move route player -> change graphic

-Else:

the same conditonal branch for a different weapon / graphic
Wait: either at the beginning or the end, add a wait command with a minimum of 10 frames, more if you think that can be done.


Without waits, a parallel process is executed sixty times per second - which means in your case, it checks sixty times per secon if the player has that weapon equipped.


The wait command basically tells the event "skip execution for X frames", so with a wait(10) the parallel process only checks for the equipped weapon five times per second...


(you could probably get away with a wait(60), checking only once per second if the player changed equipment)


As for the switches - it depends on how the events are structured, you can't give general answers - and the biggest problems are cases where you simply haven't named or noted the use of a switch and then forgotten it.
Well that significantly cleaned up the lag, thanks a lot!! That was a great tip!

I also cleaned up the double switches, set the parallel process to its own switch and everything.

Now my first problem is back 😛 So the Commander moves two tiles up, skips a move route (Wait for completion is on, no tiles or events blocking the path, setting through/on doesn't help), then DOES a move route, transfer to a different map, does another move route and skips the next 😛

I checked all the switches up untill that point and there are no duplicates I could find (will check again tomorrow after some sleep).

Thanks for the help already given, it's much appreciated 😀
skips a move route (Wait for completion is on, no tiles or events blocking the path, setting through/on doesn't help), then DOES a move route, transfer to a different map, does another move route and skips the next 😛
There are two or three things that could appear as if a moveroute is skipped, but it's simply impossible to happen in reality - a move route that is given will always be executed unless cancelled or told to skip.


1) Any character (event or player) can only hold a single move route. If a second set move route command is given before that one is completed, then the previous move route will be overwritten.


Please check if there is another such command that might be executed out of intended time, overwriting the intended move route.


2) The option "skip if impossible" is usually only triggered if a move command is impossible due to a blocked or impassable tile.


Please make the following test: check if the move route gets executed if you give move commands to a different position in another direction. If that makes the player move, then you'll know it's something on your map that blocks the movement.


3) All previous bughunting assumes that there are no scripts changing movement - if you have any script that might change move handling, you'll need to give us a link to its original page.


EDIT:


4) Transfering to a different map usually resets events - it's more stable to have each map contain only the movement for that map, ending with the transfer command to another map.


Any command after a transfer command may or may not be ignored by the engine - the cases are too complex to know which event parts are reset on map load and which are not.
1) Any character (event or player) can only hold a single move route. If a second set move route command is given before that one is completed, then the previous move route will be overwritten.

Please check if there is another such command that might be executed out of intended time, overwriting the intended move route.

2) The option "skip if impossible" is usually only triggered if a move command is impossible due to a blocked or impassable tile.

Please make the following test: check if the move route gets executed if you give move commands to a different position in another direction. If that makes the player move, then you'll know it's something on your map that blocks the movement.

3) All previous bughunting assumes that there are no scripts changing movement - if you have any script that might change move handling, you'll need to give us a link to its original page.

EDIT:

4) Transfering to a different map usually resets events - it's more stable to have each map contain only the movement for that map, ending with the transfer command to another map.

Any command after a transfer command may or may not be ignored by the engine - the cases are too complex to know which event parts are reset on map load and which are not.
1) I didn't know this, but I checked the events again and there should be no overwrite, its move route, some text, move route (should be simple enough 😛 )

2) Wouldn't the through on/off function resolved this?

3) I'm using some scripts, but nothing that handles movement or anything

4) Of this I am aware, and I execute every move route on the map itself.

I'll go and list my switches today, check each and every event if I botched something up (this might take a day or two) and  retest it.

Thanks again for your help, it brings me closer to understanding how the engine precisely works.

By the way, if anyone is interested, my project is called Stargrazer. It's my first attempt of actually completing a game (been working with RPG maker back when it was illegaly translated and named 'Don Miguels RPG Mucker' or something). This is the website http://snellert.wix.com/capnbeardgames, it's going to be free ofcourse. There is no demo to play yet, I want to iron out the problems first.
I feel so stupid I want to bang my head against the wall.

I found the culprit:

My parallel process checks and changes the players graphic while holding a different weapon, I've done this with a move route and a 60 frame wait.

Now every move route I will put in will move 60 frames before jumping back to the move route in the PP, overwriting the original route movement.

So yeah, disabling that system before scenes is the only solution I think.

Anybody have a better way of changing hero appearance without PP or move routes?
Yes - use the regular change actor graphic command. The move route change graphic is usually for special cases of events and should never be used for the actor, especially not if the change is supposed to be long-time...

Original thread: https://forums.rpgmakerweb.com/threads/move-route-mind-boggler.51807/