AnotherJoke-Nivalis_Modding_Toolkit icon

Nivalis Modding Toolkit

In-game tools for Nivalis Nights modders: Module Hot Loading, local HTTP API for automation and debug actions, no-clip, and more

Last updated 36 minutes ago
Total downloads 0
Total rating 0 
Categories Mods Tools
Dependency string AnotherJoke-Nivalis_Modding_Toolkit-0.0.2
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_IL2CPP-6.0.788 icon
BepInEx-BepInExPack_IL2CPP

BepInEx pack for IL2CPP x64 Unity games. Preconfigured and ready to use.

Preferred version: 6.0.788

README

Nivalis Modding Toolkit

Easy use in-game mod manager for Nivalis Nights. Inspect NPCs, edit props, hot-reload modules without restarting, and drive the game from scripts or AI agents."

Create modules that auto-load when changed and each module has programmable settings.

Features

  • Hot reload: Reloads individual tool modules within about a second when their files change on disk, without restarting the game.

  • NPC Inspector: Browse loaded NPCs nearest-first in game and export them to BepInEx/NivalisModdingToolkit/npcs.json.

  • Agent-ready Local API: Localhost HTTP JSON API at http://127.0.0.1:18940 for scripts and AI agents to read game state, capture screenshots, and run UI or debug actions.

  • Scene Object Editor: Session-only prop editor to select, move, copy, hide, and undo changes; edits revert on disable, reload, or scene change, and nothing is saved.

  • No-clip: Free flight through walls; blocks saving and autosaves while flying, and ends automatically if you start a dialogue or board a boat.

  • In-game module switches: Toggle each installed tool on or off in Settings → Modules (one row per tool, then press Apply).

The Modules tab in the game's Settings menu, with one switch per tool

Quick start

Mod manager

Using r2modman, Gale, or Thunderstore Mod Manager:

  1. Install NivalisModdingToolkit. The manager installs its dependency automatically.
  2. Launch the game through your mod manager.
  3. Open Settings → Modules to switch tools on or off, then press Apply.

Manual install

  1. Install BepInEx 6 Bleeding Edge, Unity IL2CPP x64 (developed and tested with build be.793) following the BepInEx IL2CPP guide, then launch the game once.

  2. Download NivalisModdingToolkit-X.Y.Z.zip (not the -thunderstore zip) from GitHub Releases.

  3. Extract it into the game folder (the folder with Nivalis Nights.exe) so you get:

    BepInEx/plugins/NivalisModdingToolkit/NivalisModdingToolkit.dll
    BepInEx/plugins/NivalisModdingToolkit/modules/*.module
    
  4. Launch the game, open Settings → Modules to switch tools on or off, and press Apply.

Controls

Key Tool Action
F8 NPC Inspector Open or close the loaded NPC list (nearest first)
F9 NPC Inspector Refresh the NPC list
Page Up / Page Down NPC Inspector Page through the NPC list
F10 NPC Inspector Include inactive NPCs
F6 Scene Object Editor Open the prop editor (select, move, copy, hide)
Ctrl+Z Scene Object Editor Undo the last prop edit
F5 No-clip Toggle flight through walls
E / Q No-clip Rise / descend (E is also the game's interact key)
F7 Toolkit Force reload the whole toolkit

Hot reload

Each tool is a separate module file. When a module file changes on disk, the toolkit reloads just that tool within about a second without restarting the game.

  • Tools keep their state across a reload where they can (for example, No-clip keeps flying and NPC Inspector keeps its panel open).
  • Press F7 to force a reload of the whole toolkit.
  • Only updates to the small loader DLL itself require a game restart.

Agent-ready Local API

The Local API serves JSON over HTTP on http://127.0.0.1:18940, listening only on this PC. Requests from web pages are rejected.

Read endpoints (GET):

  • /health, /npcs, /quests, /quest-candidates, /items, /recipes
  • /dialogue (searchable catalog with filters and paging), /dialogue/current
  • /screenshot (PNG of the game)
  • /ui (visible menu controls with ids and bounds)
  • /debug (player position and NPCs you can talk to)

Action endpoints (POST, require header X-Nivalis-Toolkit: 1):

  • /ui/action — open-settings, close-settings, click, select, submit, move, cancel
  • /debug/action — teleport, start-dialogue, advance-dialogue, choose-dialogue

Every action requires a single-use snapshot id from the matching GET (/ui or /debug) so a script never acts on a stale screen. Stale requests return HTTP 409.

curl -s http://127.0.0.1:18940/health
curl -s -X POST -d '' -H 'X-Nivalis-Toolkit: 1' "http://127.0.0.1:18940/debug/action?action=teleport&snapshot=<SnapshotId from GET /debug>&x=0&y=0&z=0"

Full endpoint reference: Local HTTP API

Files, saves, and uninstall

  • Settings: BepInEx/config/NivalisModdingToolkit/
  • Reports and screenshots: BepInEx/NivalisModdingToolkit/ (including npcs.json)
  • Saves: The toolkit never writes your saves itself, and No-clip blocks saving and autosaves while flying. Local API dialogue actions do exactly what the game would do, including quest and save consequences, so use a test save.
  • Uninstall: Remove NivalisModdingToolkit in your mod manager. For a manual install, delete BepInEx/plugins/NivalisModdingToolkit, and optionally BepInEx/NivalisModdingToolkit and BepInEx/config/NivalisModdingToolkit.

Contribute

Source, issues, and pull requests live at github.com/garrettluskey/NivalisModdingToolkit. Developer docs are in the repository README.

  • Bug reports: Include the toolkit version (shown in GET /health as Version) and BepInEx/LogOutput.log.
  • Pull requests: Open pull requests against main. Follow the repo code style: guard clauses, dependency inversion, and a 1-2 line comment on every class and function describing its responsibility.
  • Releases: Published by the maintainer by tagging main.

To build from source, you need the .NET SDK, bash (Git Bash on Windows), and the game with BepInEx installed:

./build.sh                          # build everything
./build.sh --deploy --install-host  # first install into the game (game closed)
./build.sh --deploy                 # later changes hot-reload into the running game
dotnet test Tests/NivalisNightsMod.Tests.csproj -c Release

Credits

  • Nivalis Modding Toolkit by Garrett Luskey
  • BepInEx and Il2CppInterop by the BepInEx team
  • Nivalis Nights is developed by ION LANDS and published by 505 Games. This is an unofficial fan-made mod, not affiliated with or endorsed by them.