Fix crash and better errors
This commit is contained in:
parent
5814cda4a3
commit
53417ae62a
4 changed files with 26 additions and 3 deletions
|
|
@ -8588,7 +8588,7 @@
|
|||
"Event: Set Proximity Message Text",
|
||||
{
|
||||
"EventID:eval": "0",
|
||||
"Text:json": "\"\\\\{\\\\{Mmh\\\\C[26]♥\\\\C[0]ohh\\'h\\\\C[26]♥\\\\C[0]\""
|
||||
"Text:json": "\"\\\\{\\\\{Mmh\\\\C[26]♥\\\\C[0]ohhh\\\\C[26]♥\\\\C[0]\""
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -16949,7 +16949,7 @@
|
|||
"Event: Set Proximity Message Text",
|
||||
{
|
||||
"EventID:eval": "0",
|
||||
"Text:json": "\"\\\\{\\\\{Higi\\\\C[26]♥\\\\C[0]ooh\\'\\\\C[26]♥\\\\C[0]\""
|
||||
"Text:json": "\"\\\\{\\\\{Higi\\\\C[26]♥\\\\C[0]Ooh\\\\C[26]♥\\\\C[0]\""
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -756,4 +756,27 @@ function _0x5d7b(_0x481a50,_0x56beb8){const _0x2f34cf=_0x2f34();return _0x5d7b=f
|
|||
}
|
||||
return _Window_ProximityMessage_drawTextEx.call(this, text, x, y, width);
|
||||
};
|
||||
})();
|
||||
|
||||
// Enhanced error reporting for JSON parse failures in ConvertParams
|
||||
(function() {
|
||||
const _VisuMZ_ConvertParams = VisuMZ.ConvertParams;
|
||||
VisuMZ.ConvertParams = function(target, source) {
|
||||
for (const key in source) {
|
||||
if (key.match(/(.*):(JSON|ARRAYJSON)/i) && source[key] !== '') {
|
||||
try {
|
||||
JSON.parse(source[key]);
|
||||
} catch(e) {
|
||||
const msg =
|
||||
'[VisuMZ_4_ProximityMessages] JSON parse error!\n' +
|
||||
'Key: ' + key + '\n' +
|
||||
'Value: ' + source[key] + '\n' +
|
||||
'Error: ' + e.message;
|
||||
console.error(msg);
|
||||
throw new SyntaxError(msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
return _VisuMZ_ConvertParams.call(this, target, source);
|
||||
};
|
||||
})();
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "rmmz-game",
|
||||
"main": "index.html",
|
||||
"chromium-args": "--force-color-profile=srgb --disable-devtools",
|
||||
"chromium-args": "--force-color-profile=srgb",
|
||||
"window": {
|
||||
"title": "魔法少女るなとななみver1.1.2",
|
||||
"width": 1280,
|
||||
|
|
|
|||
Loading…
Reference in a new issue