Pluggin issue

I curently try to us MK_AdvancedMove.js. It's a pathfinder.


Unfortunatly each time I try( even on new projet) to use this.moveTowardPoint(X,Y), I got error : cannot read property "dir 8" of undefined.


The original developper seem do no be active anymore, can you help me with that please?


Note: this error what fix my changing param for AM in source code, now the new error.


https://miyuki-maker.blogspot.ca/2015/11/rmmv-plugin-advanced-move-route_11.html?showComment=1484867217396#c1870953513238376018


Updated screenshot


I got this error when runned from inside an event with this code: this.moveTowardPoint(91, 80); Sans titre5555.png


If I put it in the moveroute that start automaticly in the event, I got no error, but he only move from one tile and tiles execute the rest of the moveroute command.

Sans titre444.png
You shouldn't post other people's plugins here - just link to the page/thread.  Putting the name of the plugin into the thread title would be helpful to people reading it, too.

Code:
111  Maki.AM.Dir8 = !!eval(String(Maki.AM.Parameters['8-directional Mode']));

174              if (direction % 2 > 0 && !Maki.Params.Dir8) continue;

There is no such thing as Maki.Params.Dir8 - change it to !Maki.AM.Dir8.  This plugin would never have worked as it is.
I replace param by AM and did't get the error. But it's seem unable to find a path now.
Can you remove the script from your post and put a link to the original thread?


And a screenshot of your plugin manager showing what parameters you've set.
ok that will be don in next minutes.
Please show screenshots of your commands so we can see exactly what you've done.  You said you put this.moveTowardPoint(...) inside event code, but you didn't say whether you used a script call or inside a move route.


The comments on that page say it needs to be inside a move route.  command_355 of Game_Interpreter is the Script command.  That is run under Game_Interpreter, which does not have a moveTowardPoint function.  A script call inside a move route runs under Game_Character, which does have a moveTowardPoint function.


So you need to put it inside the Script call of a move route, not in the Script event command.
Inside call, it's returning an error undefined but this error stoped, now it's just do nothing.


Th video show you in mouveroute what happen.

View attachment Screen 01-20-2017 03-58-13.avi
That video was way too fast to make anything out.  Screenshots really are better.


However, that error message quotes line 10439 of rpg_objects.js - this is not an eval command in my version of MV.  So you're either using an old version, or you've made modifications to rpg_objects.js (not a good idea, because if there's an update and you take it, you have to remember what you changed and change it again).


And, indeed, your log indicates that it IS the Script event command, and not something within a move route, that's being called.  I know this because the function that's being called, that has the error, is Game_Interpreter.command355 (the second error line in your log), which is the Script event command and not a move route or a command within a move route.


So it may be that you're looking at the wrong events.


In fact, there's nothing in there that indicates it's the plugin that's causing the issue or even the command you think it is.  It could be something entirely different.  To test, go into rpg_objects.js and find Game_Interpreter.prototype.command355, and on a new line before eval(script); just enter console.log(script); - when you run it, it'll print out the command to the console before it tries to run it, so you'll see exactly what command it's falling over on (it will be the last script call printed to the console prior to the error messages).  And of course, once you've found it, go back and remove that line from your script.

Original thread: https://forums.rpgmakerweb.com/threads/pluggin-issue.73859/