RMMV Playtesting doesn't work anymore.

I made some changes to some events, and I tried to playtest my game to see if they played out like I wanted them to. Instead of the game starting up like normal, I got this error message:

GpOSmqs.png


I tried removing the changes I made, to see if that would affect things, but the error still kept showing up. Now I don't know what's going wrong, or what I can do to fix this. It looks to me like there's something wrong with a JSON file, but I don't know which one, and I haven't made any manual changes to any JSON files. Does anyone know what is happening here?
My guess is you messed up a notetag. Really difficult to guess, since we know no details about what you did.
give us a screenshot of the console when that error happens (press F8) and tell us which version of the editor and the rpg_core.js of the project you have. (open the project core with a text editor to read the number in the title line)
give us a screenshot of the console when that error happens (press F8) and tell us which version of the editor and the rpg_core.js of the project you have. (open the project core with a text editor to read the number in the title line)
oUY3Lyg.png


Here you go. The editor is version 1.6.2 and the core is v1.6.2 as well.
with that data I have to agree that something must have gone wrong with your edits.
The json is controlled by the rpg_manager.js and that means it is one of the original data structure, not a json added by a plugin - and since those are controlled by the engine itself it's not a json added by a plugin.

Either you forgot an edit with a notetag, or something damaged the files when you last worked on them.
and now you need to find out which event contains the wrong code

for more help we would have to get more info from you about what exactly you did.
Moved to: RPGMaker MV
Here's some screenshots of the event I was changing. Everything from 'Fadeout Screen' in the first image is new.
qDUzDO8.png

HRpqHro.png

vcpEsS0.png

FV9UDaf.png


I'm using Mr. Trivel's Quest Log plugin to track objectives. Quest 10, which is mentioned in the last image, looks like this in the quests file:
{
"ID": 10,
"Name": "It's late...",
"IconID": 176,
"Description": "Go home and get some rest.",
"Category": "Simple",
"Rewards":
[{
"Type": "text",
"Text": "A good night's sleep"
}],
"Steps": [
" - Go to Amber's place",
" - Show Zip to the bed",
" - Go to sleep on the couch"
]
}

I also copied and pasted a few maps within my project to another place inside my project, but it's a lot of work to put all of that on here, and those maps weren't corrupting any files before, so I don't think that's the source of the problem.
When you make a Javascript object, in other words {}, the properties are written in this format:

{name: value}
Now if the value is a string, it's written like
{name: "string"}
but the name is never surrounded by quotes. That's probably the reason why it crashes.
So instead of "ID": 10, etc. try ID: 10,
When you make a Javascript object, in other words {}, the properties are written in this format:

{name: value}
Now if the value is a string, it's written like
{name: "string"}
but the name is never surrounded by quotes. That's probably the reason why it crashes.
So instead of "ID": 10, etc. try ID: 10,
That may be the case usually, but the plugin manual says:
Quest object looks like this:

{

"ID": 1337,

"Name": "Tutorial Island 1",

"IconID": 83,

"Description": "The island on a tutorial or the tutorial on an island.",

"Rewards": [Reward Object,

Reward Object,

Reward Object,

...],

"Steps": ["This is step 1",

"This shall be step II",

"And this is not the last step.",

...]

}

Besides, all of the other quests have quotes around "ID", and they never caused any issues, so I don't think that's it.
After checking with a javascript debugger and online sources, the json "" is alright, because in json properties need to be in quotes (learned something new). However, if I copy the text into a debugger, the debugger crashes from several reasons.

1. there are occurences of ' (like in "it's"), which it doesn't like. Replacing them with \' might help.
2. new lines cause problems to the debugger too.
I cannot confirm whether any of these is an issue, since I'm not at home, so I'm checking with a completely different debugger, but it might be this.
Again, those same things never caused any problems in other quests, so I don't think that's the issue here. Take for example this one:

{
"ID": 6,
"Name": "The Pauly's Pepper Job",
"IconID": 273,
"Description": "The owner of Pauly's Pepper has been kidnapped! Find him back!",
"Category": "Simple",
"Rewards":
[{
"Type": "exp",
"Amount": 100
}],
"Steps": [
" - Investigate Pauly's Pepper",
" - Find clues: \\V[1]/5",
" - Ask Stella about Pauly's disappearance",
" - Meet Stella at her apartment",
" - Examine the swirly coin",
" - Find out what happened to Pauly"
]
},


That one has been in the game far longer than I've had this issue, and as you can see it has 's all over the place.
The JSON you posted for quest 10 parses just fine for me when I try to assign it to a variable in the MV debugger, so I don't think it's that. Make the error happen again, and this time, click the little > arrows on the left side of each error to expand them, then post a screenshot. Alternatively, you can try making a backup of your project, then start deleting plugins until it starts working again. Once it does, you'll have a better idea of where the problem is.
uSHDo0E.png

Here you go.
Well crap, I was kind of hoping it might expose a bit more than that. Yeah, definitely try the backup + remove plugins thing I was talking about in my previous post then. This seems like something that could happen as a result of inputting invalid plugin parameters. Diagnosing invalid JSON is a colossal pain in the...*eyes mods*...buttocks.
Yeah. The only thing we know is the position in the json, so it could be faster to see the entire json file. If the snippet parsed just fine, it may mean the error is somewhere else for whatever reason.
Well, at least I've narrowed it down to something involving the Quest Log plugin now. Position 3169 comes down to just before the description of quest 10, but I still can't seem to find anything wrong with it.
The text by itself contains nothing special, I can parse it just fine. How do the quests 9, 10 and 11 look? Maybe there's a typo somewhere there.
There's no quest 11 yet, but quest 9 looks like this:

{
"ID": 9,
"Name": "So Unfair!",
"IconID": 273,
"Description": "Gary can't handle losing to Carlos! Can you help him out?",
"Category": "Simple",
"Rewards":
[{
"Type": "item",
"ID": 9
"Amount": 1
}],
"Steps": [
" - Defeat Carlos Bandito",
" - Talk to Gary"
]
},

However, I have now decided to switch to a different quest plugin, which will hopefully cause less problems.
That isn't valid JSON since a few key/value pairs are missing their commas. Here's the corrected JSON:

Code:
{
   "ID": 9,
   "Name": "So Unfair!",
   "IconID": 273,
   "Description": "Gary can't handle losing to Carlos! Can you help him out?",
   "Category": "Simple",
   "Rewards":
   [
       {
           "Type": "item",
           "ID": 9,
           "Amount": 1,
       }
   ],
   "Steps":
   [
       " - Defeat Carlos Bandito",
       " - Talk to Gary",
   ]
},

Make a backup, then try replacing it with that.
As I said, I've already switched over to another, more user-friendly plugin, which doesn't require me to manually edit JSON files, and functions a lot better in general. Thanks for the advice, though!

Original thread: https://forums.rpgmakerweb.com/threads/rmmv-playtesting-doesnt-work-anymore.114815/