[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,510
Reaction score
6,867
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,788
Reaction score
12,217
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,510
Reaction score
6,867
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,510
Reaction score
6,867
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,788
Reaction score
12,217
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 Posts

Latest Profile Posts

I couldn't have Taco Bell, so I grabbed a giant piece of strawberry cheesecake instead.
Guys one of our Animal Crossing Villagers (Sherb) just told us that he hoped that the villager who was having her birthday had as memorable of a birthday as his sixth birthday. Which was "the one where the clown went into our house and never came back" and that "his mother says she still sometimes hears the honking in the walls".
My tutor has been furloughed for 8 weeks. If we are too... sucks, but it's a lot of game making time...
Social distancing extended for another week. Personally I'm cool, but this is depressing.
GOOOOD MOOORNING!
APRIL WILL BE BETTER!

Forum statistics

Threads
95,573
Messages
930,178
Members
125,855
Latest member
U_do_Dad_Jokes
Top