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.
I've hit a snag, "TypeError: Cannot read property 'x' of undefined".
RPG Maker MV SupportI 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?
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?
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.
Then as soon as I hit enter during the text message this happens:
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.
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.
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.
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.
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.
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/