Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Howdy, I am probably overlooking something obvious but when I put this in my project or even a brand new project isolated I get the launch error "Unexpected end of JSON input"

Hi there,

Thanks for reporting this. I tried reproducing the issue by installing the plugin in a blank project, but I didn’t get the Unexpected end of JSON input error on my end.

That usually means it’s something project-specific, like a malformed config file, a corrupted asset, or a plugin conflict.

To track it down, could you send me the full error from the JS console? If you press F8 right when the crash happens, it should pop up with a stack trace. A screenshot or copy/paste of that would help a lot.

rmmz_managers.js:2080 SyntaxError: Unexpected end of JSON input

    at JSON.parse (<anonymous>)

    at Game_Containers.createParamContainers (chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/plugins/DM_LimitedInventory%20(3).js:1496:50)

    at Game_Containers.initialize (chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/plugins/DM_LimitedInventory%20(3).js:1484:59)

    at new Game_Containers (chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/plugins/DM_LimitedInventory%20(3).js:1467:10)

    at Function.DataManager.createGameObjects (chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/plugins/DM_LimitedInventory%20(3).js:2579:23)

    at Function.DataManager.setupNewGame (rmmz_managers.js:258)

    at Scene_Boot.startNormalGame (rmmz_scenes.js:343)

    at Scene_Boot.start (rmmz_scenes.js:335)

    at Function.SceneManager.updateScene (rmmz_managers.js:2151)

    at Function.SceneManager.updateMain (rmmz_managers.js:2107)

SceneManager.catchNormalError @ rmmz_managers.js:2080

DevTools failed to load SourceMap: Could not load content for chrome-extension://njgcanhfjdabfmnlmpmdedalocpafnhl/js/libs/pixi.js.map: System error: net::ERR_FILE_NOT_FOUND

Thanks for the reply, this is what I got on a blank project with just the plugin

(1 edit)

Hi Whippoorwills,

Thanks for sending the full console log: that narrows it down.

The crash is happening in Game_Containers. createParamContainers when the plugin calls JSON.parse() at line 1496. In RPG Maker MZ, that error usually means JSON.parse() received an empty string instead of valid JSON.

I tested this in a blank project on my end with the plugin installed and didn’t get any crash, so it looks like something specific to how the plugin was added to your project.

Looking at your stack trace, I see the filename is DM_LimitedInventory%20(3).js. The plugin must keep its original filename DM_LimitedInventory.js with no spaces, numbers, or other changes. Renaming the file will break how RPG Maker MZ loads the plugin parameters, which causes JSON.parse() to fail with exactly this error.

To fix this:

  1. Delete the plugin from your project’s js/plugins folder.
  2. Re-download the plugin to ensure you have DM_LimitedInventory.js with the correct name. If you have old copies of the plugin in the download folder, browsers automatically rename the file. So definitely check to make sure the filename is correct after downloading the plugin again.
  3. Copy it into js/plugins and add it again in Plugin Manager. Do not rename the file.

If it still crashes after using the correct filename, please zip the entire project folder and send it to support@dmplugins.com so I can investigate further.

Let me know if that resolves it.

That fixed it! Thanks so much for the timely responses, I should have noticed that myself!

(1 edit)

Hi Whippoorwills,

You’re very welcome—I’m glad that resolved the issue! It’s understandable that the filename could be missed, especially with browsers automatically adding numbers like (3) when the same file is downloaded multiple times.

I strive to provide quick support for everyone using my plugins, so please don’t hesitate to reach out if you encounter any other issues. I’m happy to assist further if needed.

Thanks again for letting me know it’s working!