Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(2 edits)

I purchased this plugin today (April 18) and it still has the cannot read property x of undefined error. Is the download file the latest version? The .rar says 1.41 but the plugin file says 1.4.

Also, if I use Yanfly Region Restrictions with it it says $KoTCPathMatrix1 is not defined.

This is on MV and it happens as soon as I load the game with the event on the map.

Sorry you are having trouble,  i had to fix this stuff up in a hurry at a library. 

But thank you for your report, ill get to the bottom of this and I'll let you know once its fixed or if i need extra information. 

(1 edit)

Edit: I found out it's because some of the functions don't take $gamePlayer as an argument in either the plugin command or script call although that's what your instructions say to do. It will work if you change $gamePlayer to 0.

Here is the console log for the error.

(+1)

Hi o7

At line 2,903 of KOTC Pathfinding plugin, the code tries to execute "return $KoTCPathMatrix1", I found that simply deleting this line of code stops the crash as well as continuing to work with Yanfly's Region Restrictions.

I don't know if this is advisable by Knight, but it's a working Band-Aid fix so far.

(2 edits) (+1)

I may try it later, but you may want to comment out the line by putting // in front of it instead of deleting the line. I didn't get much use out of this plugin since it doesn't work with pixel movement (decimal coordinates)

I actually tried to get it working with pixel movement by rounding the destination coordinates to whole numbers, and it would work a couple times before inevitably crashing when it tried to go to a node with a float coordinate along the path to the destination