Hey all, I have an error that pops up from time to time, no rhyme or reason that I can see. It seems to pop up when I leave the ingame menu (editor playtest), but only once in a great while, and thus far has ONLY occurred when leaving the menu. Unsure if it happens on a deployed project. Screenshots below.
MV Randomly occurring error
Javascript/Plugin SupportLooks like it's being caused by either VE Loop Animation or OcRam Weather Ex. What happens if you turn each of them off? You could also look at the source code for each and find out which one has .pages as an object property
No I couldn't as I have no idea what an object property is. I went ahead and turned off VE Loop Animation since as far as I can tell I'm not actually using that anywhere. I know I grabbed it at one point to help with a specific animation but I can't find any evidence that it's in use any longer, so we'll see how this goes.
That's in the default engine, coming from an event (event pages).
Something in those plugins or in your setup on a map is causing the game to check a nonexistent event.
Does it always happen on the same map? Do you have any plugin parameters or event commands that reference another specific event and perhaps you deleted that event?
If it happens again with the Loop Animation turned off, try to catch any info you can and examine that map.
It's happened on multiple maps. As far as event commands and plugin parameters referencing specific events that have since been deleted...the event commands is a possibility, plugin parameters less likely. The VE Loop Animation plugin doesn't have any plugin commands and only 3 parameters that wouldn't be event-dependent, also I've checked my skills/enemies/actors and I'm not finding any of the notetags from that plugin in anything. I tried using it at one point for one specific battle animation, but it looks like I was able to figure it out without needing that plugin so I'm hoping this is the one causing the issue.
A link to the scripts would save us a lot of time hunting.
Any chance you're using an event spawning plugin?
Any chance you're using an event spawning plugin?
These are most likely the plugins. Both of them call Game_Event
forums.rpgmakerweb.com
victorenginescripts.wordpress.com
OcRam - Weather System (MZ/MV)
Introduction Weather Extensions to default RMMV weather system. And with a little configuring you can add fully customized and automated weather system! This is what this plugin does: Weather can be inherited to battle scene Storm, blizzard and rain may have BGS (volume varied by power)...
forums.rpgmakerweb.com
Loop Animation
Plugin Download This plugin allows to display looping and cycling animations, the animation loops indefinitely, and if there’s more than one they cycles between them. They’re used to display status…
If you're saying that simply because those plugins are listed in the error trace, that doesn't mean either of them are the cause of the issue.
The error itself is on a line that's part of standard MV code that could be called from a hundred different places - it's just that in this case it's being called by the VE_LoopAnimation plugin. But that's not what's causing it.
It's trying to get all the pages of the current event that were created in the editor, but it's not finding the current event in the list of those created in the editor.
An event that had been deleted (via the Erase Event command) would still be able to find this information. If you had a save file then went back to the editor and deleted the event from the map, then continued playing that save file, I think it detects that the map has changed and reloads it, so that event would no longer be there. So I don't think an event, deleted via any method, is the cause here (unless you have a plugin that changes the mapdata).
So my thought is that you have a spawning plugin, and the spawned events are what's triggering the error. @Sacrifyx is that possible?
If so, try changing this line (336) from this:
to this:
and see if that helps.
The error itself is on a line that's part of standard MV code that could be called from a hundred different places - it's just that in this case it's being called by the VE_LoopAnimation plugin. But that's not what's causing it.
It's trying to get all the pages of the current event that were created in the editor, but it's not finding the current event in the list of those created in the editor.
An event that had been deleted (via the Erase Event command) would still be able to find this information. If you had a save file then went back to the editor and deleted the event from the map, then continued playing that save file, I think it detects that the map has changed and reloads it, so that event would no longer be there. So I don't think an event, deleted via any method, is the cause here (unless you have a plugin that changes the mapdata).
So my thought is that you have a spawning plugin, and the spawned events are what's triggering the error. @Sacrifyx is that possible?
If so, try changing this line (336) from this:
Code:
if (this.page()) {
Code:
if (this.event() && this.page()) {
and see if that helps.
No, I don't have any event spawning plugins, and at least for the remainder of last night the error didn't pop up again after disabling the Loop Animation plugin. Being that it occurred seemingly randomly, I'm not going to read too much into that just yet. Also, reminder that it only happens when leaving the menu in game, not saving/loading/map transferring or doing anything else. I open the menu, usually because I'm wanting to pause my playthrough while I deal with something else, and then when I hit esc to leave the menu and return to play, that's when the error pops up, immediately when closing the menu. As far as 'Erase Event' commands, there're very few of those in my project, maybe 2 or 3 tops and none at least on the most recent map the error occurred on. I'm going to leave the plugin disabled since I'm not using it and play around some more to see if the error pops up again, but I'm hoping not having it will eliminate the problem.
I think that only happens if you reload the map, i.e. transfer to another then back.
But I haven't tested it.
I don't think so ... this logic is when loading a saved game - it seems to me that it checks and reloads the current map if you've made any changes to that map since saving.
Code:
Scene_Load.prototype.onLoadSuccess = function() {
SoundManager.playLoad();
this.fadeOutAll();
this.reloadMapIfUpdated();
SceneManager.goto(Scene_Map);
this._loadSuccess = true;
};
Scene_Load.prototype.onLoadFailure = function() {
SoundManager.playBuzzer();
this.activateListWindow();
};
Scene_Load.prototype.reloadMapIfUpdated = function() {
if ($gameSystem.versionId() !== $dataSystem.versionId) {
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
}
};
@Shaz I'd never seen that before. Looking at my internal version ID was a little boggling 🤣
So back on this mess, the Loop Animation plugin (https://forums.rpgmakerweb.com/index.php?threads/ve-loop-animation.58197/) does seem to be the cause of the issue. I also learned that removing that plugin prevents one animation from playing correctly. Not sure why, it doesn't utilize any of the notetags from the plugin, it just doesn't play. Without the plugin, I can KIND OF get the animation to play, but this particular one has a starting point being the caster (a slime), and it travels across the screen to the target. Without the Loop Animation plugin, the starting point of the animation is basically the center of the screen along the X axis, right above where the enemies' heads are.
If you want help troubleshooting this event you'll need to post the event page and its animation sequence.
I got it working by copying the notetags from a backup copy of my project. No differerence between the backup and the original that I can see, but it's working now so it is what it is. I'm going to continue to troubleshoot the randomly occurring error with the loop animation plugin since I obviously do need it if I want to keep that animation.
Original thread: https://forums.rpgmakerweb.com/threads/randomly-occurring-error.157731/