Troubleshooting
Plugin Troubleshooting
Symptoms and quick fixes when enabling RPGReact in MZ.
No window opens on desktop (NW.js) after packaging
Cause: NW.js runtime not included or invalid
package.jsonentry.Fix: Use the packager with desktop runtime bundling, and ensure
package.json→mainisindex.html../build-package.ps1 -Target windowsProvide the runtime via one of:
-RuntimePath,deploy.config.json.runtimePath, orRMMZ_RUNTIME_PATHenv var.
Game boots but never leaves black screen
Cause: React assets not loaded; the plugin waits for ReactSystemReady.
Checks:
menus/build/.vite/manifest.jsonexists in your packaged foldermenus/shared/types.jsexistsPlugin parameter
manifestPathmatches where the manifest actually is
Overrides didn’t run in development
Cause: Missing or invalid overrides manifest, or export names don’t match.
Checks:
js/plugins/rpgreact/overrides.manifest.jsonexists and contains{ "entries": [ { "file", "export" } ] }.Each listed file exists relative to
js/plugins/rpgreact/(custom files undercustom/).Each file defines a function whose name matches the
exportvalue.Open DevTools and look for:
Error evaluating override ...orExported function ... not found.
Packaging failed when building overrides
Cause:
esbuildmissing or a syntax error produced an invalid concatenation before minification.Fix:
Install esbuild (any one of):
yarn add -D esbuild(in project root or undermenus/) or addesbuildto PATH.Re-run:
./build-package.ps1 -Target windows.The script fails fast with errors like:
Missing manifest: js/plugins/rpgreact/overrides.manifest.jsonManifest references missing override file: <file>Failed to create minified overrides bundle. Aborting.
Address the specific error and try again.
Production runs but overrides don’t execute
Cause: The minified bundle loaded, but exported functions were not promoted due to a mismatch in names.
Fix:
Ensure each manifest
exportexactly matches the function name defined in that file.Confirm the bundle exists:
js/plugins/rpgreact/RPGReact.overrides.min.jsin the packaged output.Confirm only the minified bundle is present (individual override sources are intentionally removed).
Overlay shows scrollbars
Cause: Overlay sizing/children overflow.
Fix: Use
position: fixed+inset: 0and avoid mixingwidth/height: 100%withinset.Ensure
html, body { margin:0 }and consideroverflow: hiddenon the overlay container.
Plugin commands appear to do nothing
Cause: React app not initialized or hidden.
Fix: Ensure you called
Show React Appafter boot; check console for asset load errors.
How to gather logs (desktop)
Add to
package.json:"chromium-args": "--enable-logging --v=1 --remote-debugging-port=9222"
Re-run
Game.exeand reviewdebug.lognext to the executable.
Last updated