I am so sick of this $#%@!@$ bug!

The title isn't even scraping the surface of frustration I'm experiencing. I don't know how this happens, it always shows it's ugly mug when I least expect it, I've done NOTHING with my project in the last few weeks worth mentioning- not even script or plugin related, so it makes 0 sense to me as to why it's occurring only now since my last successful playtest prior to today.
It is the bane of my project and just won't leave me the *%&$ alone when I think purge it for good. The problem is I can't even remember how I did the last time it gave me problems.

Whenever I enter a room/map in my project this frigging window gets in the way constantly reporting what the screenshot I have attached lays out, and if I collide with an spawned NPC it crashes my game.


I just can't figure it out, the NPCs spawned with 0 issues and stuck to there designated regions to move around on and never crashed the game or brought up this stupid bloody window before. I have not changed the plugins and to my knowledge they haven't been updated since, there is just 0 reason for it to randomly crap itself since I haven't changed anything when it was working fine...
you're wrong
yes, the appearance of theese errors is random (or at least looks random), but they have their reason - and that reason can be something you've done months ago if you didn't realise your error.

Basically any "cannot read X of "undefined" or similiar messages mean that the computer tries to access data that has not been defined.
In all cases, that comes from a plugin missing its data - and when does a plugin define its data?

On new game, and new game only (for most cases).
So any adding of a plugin almost always makes all old savefiles incompatible and requires you to start a new game.

But not starting a new game (loading one of the now incompatible old savefiles) does not automatically create the error - that will only come at the moment when the new data that has not been created is really used, which might be a long time later.

And that is the first of the three possible reasons for this class of error: forgetting to start a new game whenever a new plugin is added.


The other two possible reasons are similiar in reason

Incompatibilities between plugins can prevent the correct definition of data even if you remember to start a new game. In case of yanfly's scripts even having them in the wrong order in your plugin manager is almost guaranteed to create strange effects later.
So if you have a lot of those errors and are sure that you have remembered to start new games whenever needed, let us see full screenshots of your plugin manager to see if you have plugins that are known to be incompatible or if you have anything in the wrong order.

The last possible cause is a forgotten or wrong configuration, and again that partially depends on the savefile and partially on what you have done.
If a plugin needs additional data and you forgot to set that or set it wrong (for example if every enemy needs notetage data and you forgot or mistyped in one), then this error can also happen - and only when that specific data is needed, which might be a long time into playtests.
Additionally, quite a lot of data is saved into the savefile - so entering that data into the database later and still loading a saved file from earlier can also keep the error in the savefile (however, that is not as automatic as with a completely new plugin, because some plugins load their notetags regularly and not only on a new game).

So your best bet now is to delete all savefiles from your playtests and give us screenshots of your plugin manager, then let's see if that got rid of your old problems.
And last but not least, it can be related to the update to rpg maker 1.5.0. The OP states that he didn't do anything in the project for weeks, so I'm going to assume that.
I should of mentioned this: But these are things I have done.

  • I play test from new game- I have 0 reason to use a save file because I have nothing in terms of game progression to save data for as I intend to eliminate all system bugs to avoid repeating story build.
  • I have 0 save files- there for there should be 0 conflicts involving saved data when play testing.
  • Strangely enough my RPG Maker MV is 1.5.0- I don't recall updating it, perhaps it auto updated itself somehow, i'm not sure if RPG Maker MV is capable of doing that...

Here is a collection of my plugins for further information:
  • Strangely enough my RPG Maker MV is 1.5.0- I don't recall updating it, perhaps it auto updated itself somehow, i'm not sure if RPG Maker MV is capable of doing that...
Here is a collection of my plugins for further information:
1) we're talking about the project core version, not the editor version.
Steam can update the editor automatically, but the projects never get updated automatically, you would have to open one of your core js files with a text editor and check the number in the title line to determine which version your project is - and that is important for plugin compatibility

2) And your plugin list shows that you indeed have the yanfly plugins in the wrong order (which is almost guaranteed to create strange errors) as well as a lot of plugins which compatibility has never been tested in that way.

Please reorder your plugins according to yanfly's list as a start - the sentence about "highly recommended to do that" is from a time when only a third of those plugins existed, by now it is almost guaranteed to get you into problems when not following the order of the list:
http://yanfly.moe/yep/
my core js reads on the first line // rpg_core.js v1.4.0

As for the YEP Js file order- they have now been allocated in the order in which they are used in my project.
What does that mean? "The order they are used in your project" is not necessarily the order they SHOULD be in. Yanfly lists the order they need to be in - if they're not, some things will not run correctly.

You didn't state whether reordering them made your problem go away.

If you have downloaded any plugins since the 1.5.0 release, they could be for the 1.5.0 version of MV. It's unlikely that they'd now be incompatible with 1.4.0 but there's a slight possibility.

If there's still an error, could you post a new screenshot of the debug console? This time, widen it out so things don't wrap onto two lines - it's easier to read, and more errors can be shown. If you still have an error, it's possible that it's now not the same as the original error you had. It might also pay to scroll to the top of the error list, so the first one shown is the first error, and not one way down the bottom. There's a chance fixing one error (the first one encountered) might also fix some of the others.
Sorry for that, I've been pretty overwhelmed with work and haven't thought through things properly.

As for the ordering- I meant as in I have the plugins in the correct order-but only the plugins I am actually using as there are dozens of YEP plugins to download but I have no need for them. The error however still persists- but as stated before this glitch was removed long ago but only now for some reason decides to show up again and I cannot remember what the remedy for it was.

I will provide some screenshots again still.
Should I update the engine still?
Should I update the engine still?
In your case, there is no easy answer for this. In fact, projects like yours are an example for the reason why the project updates are not automatic.

The most important concern for plugin compatibility is that every plugin needs to be compatible with the core version to work correctly.
The update from 1.4.0 to 1.5.0 has improved several things in the engine, but with that improvement it has also changed a few things.
As a result, some plugins have become incompatible to 1.5.0 and needed updates themselves to work properly.

Which basically means that you have to check for your plugins wether they are compatible to 1.5.0 or have updates to make them compatible to 1.5.0 before you update your project, and if one of your plugins is incompatible to 1.5.0 and has not (yet?) gotten updated, then you should wait for that update.

In the other hand, the older an project gets the more critical for current plugin an update becomes. If you added a plugin to your 1.4.0 that had already been written for 1.5.0, then that could also create incompatibilities.

Yanfly usually updates his plugins within a few weeks for each new version if they need updating, so in those cases the answer is to keep everything updated - but you have a lot of plugins from other people and I don't know for which versions they were written. They might not yet be compatible to 1.4.0.
And I don't know when you last added a plugin so I can't tell if your newer plugins might already need the 1.5.0 and create errors bcause of you still staying at 1.4.0

So depending on the plugin, it could be either a mistake or an requirement to update the project.
Alrighty so I've updated the program and the project files, the index-js all that usual stuff required to update the projects.
I've also downloaded all of Yanfly's updated plugins that are available in a single download- play test still however causes the bug/crash

I've compiled some screenshots of the console to help show what happens during game play, hopefully this should be enough information, do let me know if there is more I need to do 🙂



In the meantime I'm still a bit concerned what to do about the plugins that aren't updated no longer- I actually have on occasion messaged the plugin makers about this but I never get a response about them.
The errors you are seeing are being output by Yanfly's plugin, but that's because it's catching the errors that are thrown elsewhere. That plugin is not causing those errors.

The error happens when you run that script in the move route - the step_rand command. Is that in Galv's Stationary Turn plugin? Or is it another plugin that contains that functionality? If you can't find it, you might need to do a global search for prototype.step_rand and see what comes up.
Ok then! How do I perform a global search to find this functionality?

I believe the galv turn in place is separate from the move rout script.
It depends on what editor you're using, if any, for your scripts. I use Sublime Text and I can open the entire js file and use control+shift+f to do a global search.

Maybe look in Galv's plugin and search for it just in the one plugin - you just need any old text editor for that.

What other plugins do you have that modify move routes?

Do you recall what the command does? It takes 3 arguments that are all numbers. Do you remember why you're doing those calls? Do you remember what plugin you had to add to enable the functionality?
Oh i'm not really a Js kinda person to understand the functions to well but when I need to change stuff I use Notepad+

I think I just discovered what's triggering the popups and crashes upon NPC collision: I turned off specialpassable by Mogwai and the project operates how I remember it without fault. I'll attach the current version encase anyone here wants to investigate it-because there are multiple versions that had problems in further development. It's an incredibly handy plugin that can allow me to create barriers for specifically named events.
SpecialPassable.js


My movement route plugins consist of:
  • specialpassable by Mogwai -Noted to be the plugin responsible for the crashes.
  • GALV_MoveRouteExtras
  • GALV_DiagonalMovement
  • YEP_MoveRouteCore
  • GALV_StationaryTurn
To be honest- I have no idea why specialpassable has this effect on the spawned events-the barriers used by it have nothing to do with the spawns as they are named a different event entirely.
By the way this version of the plugin seemed to be the only one that performed well in the testing rooms but in actual rooms where NPCs and the game would take place it would crash.
Well, that plugin uses the names that are showing up in the error messages, but there are checks beforehand to make sure the objects exist before it tries to refer to them, so I'm still questioning whether that's the cause. It could well be a compatibility issue between it and another plugin. This plugin also doesn't have the function shown in the screenshot (not that there's any indication that function is the one triggering the error, but the plugin that contains it could be where the incompatibility is).

What happens if you create a brand new project, JUST add this plugin, and create the same event (as far as you can without having to pull in other plugins)? Do you still get the error then? If you don't, then I'm thinking it's either a compatibility issue, or the problem lies elsewhere.
I opened a new project and installed the special passable js including the events that provide the barriers and the events that are specifically targeted to be blocked by them, the result is very good and it functions properly as intended.

I'm not sure exactly why my project picks on the spawned events, I gather the plugin is unable to recognize them because of them spawning perhaps even a microsecond after the predeployed ones are. Very odd.
Wait a minute ... you are using an event spawner? I don't know how I missed that - I just assumed you were talking about events that you'd placed on the map.

What's the event spawner plugin? I'd almost bet it's trying to start the move route before it's finished spawning properly.
I believe it's Galv's event spawner. It's a good plugin that save's me from having to make events for each map.
If you want to re-enable all your plugins so that the issue happens again, put the starting point on the map with the issue, and ensure it happens as soon as you begin a new game, you can zip up your project and send it to me, and I'll see if I can spare some time this weekend to have a look at it. Load it somewhere that I don't have to register in order to get it though - I hate those sites.

It sounds like it's definitely a compatibility issue between the two.

Original thread: https://forums.rpgmakerweb.com/threads/i-am-so-sick-of-this-bug.81576/