REDNODE / DOCS

Crash mod

Example apps / crash-mod / v0.1.0

Node mod

Four ways for a mod to fail: a thrown error, an endless loop, process.exit and a killed process. Other mods keep running.

Simulated game starting
Mod log

    The preview runs the mod in a Web Worker, so the endless loop cannot freeze this page, and it restarts it the way REDnode does.

    How it works

    Each Node mod runs on its own worker thread. A thrown error or an exit stops only that mod, and REDnode restarts it, at most three times a minute.

    An endless loop never answers REDnode's pings: after ten seconds the mod shows as not responding, and the player can restart it.

    What it uses

    crash handling restart not responding

    Try this

    Use it

    Copy the files into red4ext/plugins/REDnode/apps/crash-mod/ in the game folder, or start your own package from them: change id and name in the manifest first. The whole folder is on GitHub.