I've hit a snag, "TypeError: Cannot read property 'x' of undefined".

1715622488045.png


I can't seem to figure out what is causing this error to occur. It happens when I transfer into a new map I made. So if someone could help me figure this out I'd appreciate it.
The Elements tab doesn't give us any useful information.

Please click to the Console tab and show us the error trace displayed there (and then we can use just that, we don't also need the huge game window).

But just from the sound of it, it sounds like you're trying to transfer to a nonexistent map. Perhaps you made the map, the Transfer Player event, then deleted the map in the editor before making another. Or are you manually entering the transfer script call and might be mistyping it?
The Elements tab doesn't give us any useful information.

Please click to the Console tab and show us the error trace displayed there (and then we can use just that, we don't also need the huge game window).

But just from the sound of it, it sounds like you're trying to transfer to a nonexistent map. Perhaps you made the map, the Transfer Player event, then deleted the map in the editor before making another. Or are you manually entering the transfer script call and might be mistyping it?
1715623470421.png


I double checked to make sure the map I'm transferring to still exists. Far as I can tell, it does. The error doesn't always occur, either. For example: I started the game over and it allowed me to enter the map and play test regularly. But now the error has resurfaced again. I'm not sure why it only seems to happen when I transfer into this map in particular.

I put a wait message on the other side of the transfer just to test it, and it seems like the transfer is actually completing. So I was mistaken, and the error occurs after the transfer.


1715624943309.png


Then as soon as I hit enter during the text message this happens:

1715625144834.png
then please show us a screenshot of the transfer event that can cause the problem, as well as screenshots of your plugin manager to see if any plugin changes the transfer mechanics.
View attachment 305042

I double checked to make sure the map I'm transferring to still exists. Far as I can tell, it does. The error doesn't always occur, either. For example: I started the game over and it allowed me to enter the map and play test regularly. But now the error has resurfaced again. I'm not sure why it only seems to happen when I transfer into this map in particular.

I put a wait message on the other side of the transfer just to test it, and it seems like the transfer is actually completing. So I was mistaken, and the error occurs after the transfer.


View attachment 305046

Then as soon as I hit enter during the text message this happens:

View attachment 305049
any plugin run before execute something? like I want to trigger event.. on event there are script run.. I see the rpg_object.. found out related to button(?)
command111 is Conditional Branch.

So the error is saying you're using a Script field in a Conditional Branch, wherein you refer to something.x and the something doesn't exist.
command111 is Conditional Branch.

So the error is saying you're using a Script field in a Conditional Branch, wherein you refer to something.x and the something doesn't exist.

Thanks. Pointing this out helped me narrow my search to where I could locate what looks like the problem.

any plugin run before execute something? like I want to trigger event.. on event there are script run.. I see the rpg_object.. found out related to button(?)

You were right. It was a pair of Trigger: Autorun Common Events that seems to have been causing the issue. I don't understand why it wasn't interfering with my other maps. But it seems to be working now.

then please show us a screenshot of the transfer event that can cause the problem, as well as screenshots of your plugin manager to see if any plugin changes the transfer mechanics.

1715631923135.png


It appears like I was wrong about it being a transfer issue. Here is a Screen Shot of my Plugin Manager.

Thank you all for the help, appreciate it. You can mark this as solved.
Thank you all for the help, appreciate it. You can mark this as solved.
In future, you can click the ⚠ Report button on your own post, with a reason like "problem solved" or "can be closed". That highlights it for all moderators, one of whom can close the thread. 👋

Since I'm here now, though:

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ive-hit-a-snag-typeerror-cannot-read-property-x-of-undefined.168647/