Skip to content

v1.2.0

Choose a tag to compare

@Redseb Redseb released this 29 Jul 11:51
· 30 commits to master since this release

ID allocation — stop two sessions claiming the same switch

Switches, variables and common-event IDs are one global namespace, and nothing in RPG Maker stopped a later edit from reusing an ID an earlier one already owned. The failure is silent — no crash, no validator hit, just a door that turns out to be already open hours into a playtest.

Two new read-only tools (119 total, 553 tests):

  • list_allocated_ids(type, id?) — which switch / variable / common-event IDs are spoken for, derived from the project's own JSON rather than a hand-maintained list that would drift the moment someone edited in the editor. An ID counts as allocated if it is declared (a System.json label, a CommonEvents row) or referenced anywhere: event page conditions and command lists, common events, troop pages, and Common Event skill/item effects. Pass id to ask where one specific ID is actually used before touching it.
  • next_free_id(type, count?, reuseGaps?) — the next unallocated ID(s), strictly above everything taken. Holes are left alone by default; a gap is often an ID claimed in notes but not yet written.

Also: set_switch_name / set_variable_name now grow the System.json name list when the ID is past the end (padded to the editor's 20-slot block), instead of refusing with "add more in the editor first" — so an ID from next_free_id can always be labelled without leaving the tooling.

The usage scan is curated, not exhaustive — the same stance as the command validator — and every report names the command codes it scanned. An ID driven only from a Script (355) or a plugin command reads as free.

Install

npx -y rpgmaker-mz-mcp@latest, or download the attached .mcpb for one-click install in Claude Desktop.