[VX Ace] Undfined Method Error?

Morpheus

Jack-of-Trades
Veteran
Joined
Mar 14, 2012
Messages
139
Reaction score
13
First Language
english
Primarily Uses
N/A
REEEEEEEEE.png
Long story short, when I try to transfer the player to a new map, this error pops up.
I suspect it has to do with Victors Movement Script as when I remove that script it gives me a different error, so I suspect it's either his Core Script, Pixel Movement Script or his Diagonal Movement Script.
Any help is appreciated!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,561
Reaction score
6,887
First Language
German
Primarily Uses
RMMV
you'll need a better error trace as this looks like it is an incompatibility between several scripts.

I suggest installing one of the backtracers and posting a console screenshot with the entire trace
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,837
Reaction score
12,250
First Language
English
Primarily Uses
RMMV
Did you add a script then resume a previously-saved game?

What event do you have that does a Script event command with something about event.chasing?
 

Morpheus

Jack-of-Trades
Veteran
Joined
Mar 14, 2012
Messages
139
Reaction score
13
First Language
english
Primarily Uses
N/A
Did you add a script then resume a previously-saved game?

What event do you have that does a Script event command with something about event.chasing?
Nope, it even happens when I start a new game and try to transfer. It's not the map I'm trying to transfer to either because if I just start out on that map, everything runs fine.

And no event in my game so far even uses a script call, it's still the early stages so I only have a few maps. The event is literally just a transfer event, nothing else.
When I ctrl + shift + F search my scripts, the only script with "chasing" in it, is the pixel movement script.

you'll need a better error trace as this looks like it is an incompatibility between several scripts.

I suggest installing one of the backtracers and posting a console screenshot with the entire trace
Here you go, I'm not sure what any of it means.

EDIT: I found the problem. When switch 005 is on, it gives me the error. When turned off, it doesn't. Any idea how to find the switch in question in any of my scripts without having to scour them 1 by 1?
 

Attachments

Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,561
Reaction score
6,887
First Language
German
Primarily Uses
RMMV
The error trace would list the names of the script slots involved in the error, and since it's coming from the game interpreter, Shaz is right and you're wrong:
And no event in my game so far even uses a script call
Even if you don't remember placing it, somewhere in your project is an event that has a script call with the sequence 'chasing' in it.
It could be a map event or a common event, but it is there.
and that
When I ctrl + shift + F search my scripts, the only script with "chasing" in it, is the pixel movement script.
is part of the reason: the event tries to use the chasing command, and you get the error because it doesn't find it - because it is missing somewhere in your scripts.
That is what "NoMethodError" means - you've told something to use a function that it does not find inside the scripts.
Most likely you copied something from a demo or a tutorial without looking at it in detail, and forgot to add the script that that demo or tutorial requires. And because you only copied it you don't remember using it.
 

Morpheus

Jack-of-Trades
Veteran
Joined
Mar 14, 2012
Messages
139
Reaction score
13
First Language
english
Primarily Uses
N/A
The error trace would list the names of the script slots involved in the error, and since it's coming from the game interpreter, Shaz is right and you're wrong:

Even if you don't remember placing it, somewhere in your project is an event that has a script call with the sequence 'chasing' in it.
It could be a map event or a common event, but it is there.
and that

is part of the reason: the event tries to use the chasing command, and you get the error because it doesn't find it - because it is missing somewhere in your scripts.
That is what "NoMethodError" means - you've told something to use a function that it does not find inside the scripts.
Most likely you copied something from a demo or a tutorial without looking at it in detail, and forgot to add the script that that demo or tutorial requires. And because you only copied it you don't remember using it.
I actually edited my post to where I found the error.
When switch 005 is on, it gives me the error. When turned off, it doesn't. Any idea how to find the switch in question in any of my scripts without having to scour them 1 by 1?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
29,561
Reaction score
6,887
First Language
German
Primarily Uses
RMMV
When switch 005 is on, it gives me the error. When turned off, it doesn't. Any idea how to find the switch in question in any of my scripts without having to scour them 1 by 1?
that still doesn't change the fact that the script call comes from an event.

But it does help you finding that event, because it is the switch that activates the event. So you "only" need to look for the common event or the map event page that is conditioned to switch number 5. You don't have to scroll through the command list to find the script command with that text. (not unless you're using a conditional branch command on that switch)

That switch is NOT inside one of your scripts, because if it were then the script slot name would be listed in the error trace in the console - but for future reference, if you right-click into the script slot list you'll find a search option that searches through all scripts instead of the current one.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,837
Reaction score
12,250
First Language
English
Primarily Uses
RMMV
It could be an event on the current map or an event on the map you're transferring to. If it only happens at the time you transfer, then look at the event that does the transfer. See if it turns on switch 5. Then look for an event on one of those maps, or in common events, that has a page that becomes active when switch 5 is on.

There is a Script call somewhere in that event that is trying to activate or check the chasing function.

The reason we are so sure of this is that Game_Interpreter line 1411 is the one that executes the Script event command.

Also check your scripts and see if they have any default switches - see if any of them are set to use switch 5. Then you still need to find where you're using switch 5.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I've developed a habit of thanking cleaning ladies for their work.
Sorry Aerith... I will abandon your shoes... :guffaw:
Spent a whole bunch of time today reworking the area in the video because someone said it was too illusory. So I reworked it so it changes less, moved the grass up to the same level as the player.... And found enough extra resources to make the grass moves when the player touches it. Also lots more water, because it looks amazing. I'll probably put up a short updated video later today.
I never noticed how NOISY birds can be in the morning..
The worst part of writing the thesis is getting to a point where it's nearly done and you feel like an 8th-grader could've written something on that level.

Forum statistics

Threads
95,766
Messages
931,714
Members
126,169
Latest member
Stearen
Top