YEP_MainMenuManager in plugin.js

So I've ran into quite a problem.
Yesterday my playtest wouldn't show, so according to forum, it's just a bug, reboot the computer and it'll be fine. I did it, and now, when I want to playtest, it works, but I've a script error. I followed it, and it's quite long ^^
The RM error was Unexpected token }
So the console had an error with rpg_manager.js
Nothing fancy, it was the console.error(e.message) line
I then went to the Steam original RM file to see if my basic js files were any different from the original, and I took a look.
And there I notice that my plugins.js must be the source... Or I guess so...



As you can see, the MainMenuManager line isn't affected by syntax coloration. I looked for an unexpected } (relating to the initial error), and found nothing.
So I copy paste the line into an new file, and here I found.
The line is too long. If I press Enter after the MainMenuParameter Menu 7, or before Menu 93, the syntax goes back 🙂



So I tried to add a break line into my plugins.js, and obviously, when RM try to load the game, it delete the break line, MainMenuManager can't be read again :/

Maybe I've another error and I don't get the point at all, but it any case, it's pretty annoying 🙁
Actually, the print screen of the error would have been much more helpful than this. Because I doubt rpg maker mv's plugins.js is the culprit.
Well, I managed to isolate the plugin causing error, it's iavra_Localization. It must be a typo error but I can't seem to find it.
Anyway, I don't think you'd be able to help me there ^^
Thx for your answer 🙂
Unexpected token } generally means there is } where it for some reason shouldn't be. In the console, there's also a script that error comes from and the line where the error is. So localization of the error is not a problem.
Nah I meant the Localization plugin (for translation).
It was indeed a type error, in I had two " in one of my language json, it works now 🙂
Seems that
"blabla":{
""
}
Wasn't a good idea xD
I see 😀

Original thread: https://forums.rpgmakerweb.com/threads/yep_mainmenumanager-in-plugin-js.90638/