- Joined
- May 12, 2013
- Messages
- 84
- Reaction score
- 14
- First Language
- Italian
- Primarily Uses
- RMMV
Hi everyone! As the title suggests, when I want to draw the value of variables from 601 onwards, the game crashes!
This is the error message:
It seems that the Yanfly plugin is the problem: Advance Switches & Variables
The bug is solved by disabling that plugin, unfortunately I need it and I can't remove it from my game.
I tried to open the plugin but I can't find any reference to the number 600.
Edit:
The error seems to indicate this part of the Yanfly plugin code:
This is the error message:
JavaScript:
21:47:43.008 YEP_CoreEngine.js:1098 TypeError: Cannot read property 'match' of undefined
at Game_Variables.isAdvancedVariable (YEP_AdvancedSwVar.js:258)
at Game_Variables.value (YEP_AdvancedSwVar.js:247)
at Game_Variables.value (YEP_SelfSwVar.js:315)
at Window_Message.<anonymous> (rpg_windows.js:282)
at String.replace (<anonymous>)
at Window_Message.Window_Base.convertEscapeCharacters (rpg_windows.js:281)
at Window_Message.Window_Base.convertEscapeCharacters (YEP_MessageCore.js:702)
at Window_Message.Window_Base.convertEscapeCharacters (YEP_X_MessageEvalText.js:94)
at Window_Message.convertEscapeCharacters (YEP_MessageCore.js:1293)
at Window_Message.startMessage (rpg_windows.js:4334)
SceneManager.catchException @ YEP_CoreEngine.js:1098
It seems that the Yanfly plugin is the problem: Advance Switches & Variables
The bug is solved by disabling that plugin, unfortunately I need it and I can't remove it from my game.
I tried to open the plugin but I can't find any reference to the number 600.
Edit:
The error seems to indicate this part of the Yanfly plugin code:
JavaScript:
Yanfly.AdvSwVar.Game_Variables_value = Game_Variables.prototype.value;
Game_Variables.prototype.value = function(variableId) {
if (this.isAdvancedVariable(variableId)) {
return this.runAdvancedVariableCode(variableId);
} else {
return Yanfly.AdvSwVar.Game_Variables_value.call(this, variableId);
}
};
Game_Variables.prototype.isAdvancedVariable = function(variableId) {
if (SceneManager._scene._debugActive) return false;
if (SceneManager._scene instanceof Scene_Debug) return;
var name = $dataSystem.variables[variableId];
if (name.match(/EVAL:[ ](.*)/i)) return true;
return false;