Original Source
- Original title: Animation Save Bug Fix
- Original author: Fogomax
- Original date: January 14, 2017
- Source thread: https://forums.rpgmakerweb.com/threads/animation-save-bug-fix.73622/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
Animation Save Bug Fix Introduction This is a quick fix requisited by RHachicho, the plugin fixes fixes the bug that turns impossible to save the game while an event running in parallel mode is playing an animation on itself.
Archived First Post
Animation Save Bug Fix
Introduction
This is a quick fix requisited by RHachicho, the plugin fixes fixes the bug that turns impossible to save the game while an event running in parallel mode is playing an animation on itself.
How to use
Save the plugin in a .js and move it to js/plugins folder.
Plugin Code
//=============================================================================
// Animation Save Bug Fix (v1.2)
// by Fogomax
//=============================================================================
/*:
* @author Fogomax
* @plugindesc This plugin fixes the bug that turns impossible to save the game
* while an event running in parallel mode is playing an animation on itself.
*
* @help
* ===========================================================================
* » Description
* ===========================================================================
*
* This plugin fixes the bug that turns impossible to save the game while
* an event running in parallel mode is playing an animation on itself.
*
* It is plug-and-play, no configuration is required. Place this plugin on
* the top of the plugin list.
*
* ===========================================================================
* » License
* ===========================================================================
* WTFPL – Do What the frick You Want to Public License
* http://www.wtfpl.net/txt/copying/
*/
(function() {
'use strict';
//-----------------------------------------------------------------------------
// DataManager
//
var _DataManager_makeSaveContents = DataManager.makeSaveContents;
DataManager.makeSaveContents = function() {
var contents = _DataManager_makeSaveContents.call(this);
if (contents.map) {
var events = contents.map._events;
this.resolveCircularReference(events);
}
return contents;
};
DataManager.resolveCircularReference = function(events) {
for (var i = 0; i < events.length; i++) {
if (!events) continue;
if (events._interpreter && events._interpreter._character === events) {
events._interpreter._character = null;
}
}
};
})();
Github: https://github.com/rafaelalmeidatk/JGSS/blob/master/AnimationSaveBugFix.js
Changelog
v1.2 - Fixed some typos
v1.1 - Changed the fix to DataManager.makeSaveContents method instead of Scene_Map.prototype.terminate
v1.0 - Creation of the plugin
Usage
This plugin is free for both commercial and non-commercial projects, no credits required.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
* » License * =========================================================================== * WTFPL – Do What the frick You Want to Public License * http://www.wtfpl.net/txt/copying/
Referenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...
