Skip to content

Commit f507eec

Browse files
during format
1 parent 55b06d6 commit f507eec

File tree

6 files changed

+208
-231
lines changed

6 files changed

+208
-231
lines changed

js/rpg_core/Graphics.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ function Graphics() {
1111
Graphics._cssFontLoading = document.fonts && document.fonts.ready && document.fonts.ready.then;
1212
Graphics._fontLoaded = null;
1313
Graphics._videoVolume = 1;
14+
Graphics._errorMessage = "";
1415
Graphics._showErrorDetailEnabled = false;
1516
Graphics._progressEnabled = false;
16-
Graphics._errorMessage = "";
1717

1818
/**
1919
* Initializes the graphics system.
@@ -925,21 +925,6 @@ Graphics._makeErrorMessage = function() {
925925
this._errorPrinter.appendChild(mainMessage);
926926
};
927927

928-
/**
929-
* @static
930-
* @method _makeStackTrace
931-
* @private
932-
*/
933-
Graphics._makeStackTrace = function(stack) {
934-
var stackTrace = document.createElement('div');
935-
var style = stackTrace.style;
936-
style.color = 'white';
937-
style.textAlign = 'left';
938-
style.fontSize = '18px';
939-
stackTrace.innerHTML = '<br><hr>' + stack + '<hr>';
940-
this._errorPrinter.appendChild(stackTrace);
941-
};
942-
943928
/**
944929
* @static
945930
* @method _createCanvas

js/rpg_objects/Game_Event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Game_Event.prototype.list = function() {
5151
Game_Event.prototype.debugName = function(){
5252
var event = this.event();
5353
if(event){
54-
return "MapEvent:"+ this._eventId +"("+ event.name+")";
54+
return "MapEvent: "+ this._eventId +"("+ event.name+")";
5555
}
5656
return "";
5757
};

js/rpg_objects/Game_Interpreter.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,7 @@ Game_Interpreter.prototype.evalScript = function(script){
703703
return eval(script);
704704
} catch (error) {
705705
if(this._callLog){
706-
this._callLog.addLog(this.errorCode(this._index));
707-
this._callLog.addLog("ScriptError");
708-
this._callLog.addLog(script);
706+
this._callLog.addLog(this.errorCode(this._index) + script);
709707
this.saveErrorCode(error);
710708
}
711709
throw(error);
@@ -1779,9 +1777,7 @@ Game_Interpreter.prototype.command356 = function() {
17791777
this.pluginCommand(command, args);
17801778
} catch (error) {
17811779
if(this._callLog){
1782-
this._callLog.addLog(this.errorCode(this._index));
1783-
this._callLog.addLog("command:"+command);
1784-
this._callLog.addLog("args:"+args);
1780+
this._callLog.addLog(this.errorCode(this._index) + this._params[0]);
17851781
this.saveErrorCode(error);
17861782
}
17871783
throw(error);
@@ -1797,19 +1793,19 @@ Game_Interpreter.codeName = function(code){
17971793

17981794
switch (code) {
17991795
case 111:
1800-
return "Conditional Branch";
1796+
return "◆If:Script:";
18011797
case 122:
1802-
return "Control Variables";
1798+
return "Control Variables:Script:";
18031799
case 355:
1804-
return "Script";
1800+
return "Script";
18051801
case 356:
1806-
return "Plugin Command";
1802+
return "Plugin Command";
18071803
}
18081804
return "";
18091805
};
18101806
Game_Interpreter.prototype.errorCode = function(errorLine){
18111807
var data= this._list[errorLine];
1812-
var lineText = "line:"+(errorLine+1);
1808+
var lineText = "line: "+(errorLine+1);
18131809
if(!data){
18141810
return lineText +" Out of Code range"
18151811
}
@@ -1825,7 +1821,7 @@ Game_Interpreter.prototype.errorCode = function(errorLine){
18251821
}
18261822
}
18271823
}
1828-
return lineText + " " + Game_Interpreter.codeName(data.code);
1824+
return lineText + "\n" + Game_Interpreter.codeName(data.code);
18291825
};
18301826

18311827
Game_Interpreter.prototype.saveErrorCode =function(exeption){

0 commit comments

Comments
 (0)