Skip to content

0.6.0: Play and Start Test Game hand the mod's code; a patcher exe is saved as that program - #11

Merged
jeany55 merged 1 commit into
mainfrom
play-code
Nov 13, 2026
Merged

jeany55 merged 1 commit into
mainfrom
play-code

Conversation

@jeany55

@jeany55 jeany55 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

The Mod Editor's doors into a game handed a mod's files without its code, so the game played was not the mod's.

Play and Start Test Game hand the code

Both handed the files that differ from the game's and nothing else: no plugins, no patcher's own plugins, no FireGraft project. A mod with code then played as plain data, or was refused. They now hand the changed files with all of the mod's code, by the same path the engine is handed a mod and a dropped folder takes. A mod that is a plugin alone plays too.

A patcher exe goes as that program

A program that carries the mod's plugins (FireGraft's patcher, MPQDraft's self-executing MPQ) is handed as that program, not as loose files: as it came where nothing in it was edited, else with an archive of its files as they are now where its own was. The page reads its plugins in the loader's order. Handed loose, a plugin that names itself .dll became a library and never ran.

Save keeps a patcher's plugins

Save for a mod that came as one program writes that program again, with its archive rewritten and everything before it kept byte for byte. Before, saving it as an MPQ dropped the plugins. Export as MPQ now says which modules an MPQ leaves out.

Also: a member an archive lists and does not hold is left out and named. Play and Save stopped on it.

Checks

  • 90 tests pass (3 skipped where no mod folder is present); type-check clean.
  • Headless browser, a fresh profile per door: for four mods, Play and Start Test Game report the same modules, in the same order, as a drop of the same mod.
  • Saved programs read back under the editor's hash with the same plugins.

Works with the play page and the scm-sim plugin as deployed (0.20.1 lower-cases a module's name: cosmetic). A plugin-only mod needs jeany55/scm-sim#114 on the page.

Not done: a saved program has not been run by MPQDraft or FireGraft on Windows; an edited patcher was handed in Node and tests, not in a browser; Save for a folder that holds a patcher exe still writes changed files loose.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VEdp4UtqFn9GmthJP21viP

… saved as that program

Play and Start Test Game handed the play page the files that differ from the
game's and none of the mod's code: its plugins, a patcher's own, its FireGraft
project. The page then played another game, or refused the mod. They now hand
the changed files with all of the mod's code (`playFiles`), by the path the
engine is handed a mod and a dropped mod takes, and a mod that is a plugin
alone plays.

A program that carries plugins of the mod's (FireGraft's patcher, MPQDraft's
self-executing MPQ) is handed as that program: as it came where none of its
files was edited, else with an archive of its files as they are now where its
own was. The page reads its plugins in the loader's order, each as what it is;
handed as loose files they were a folder's, sorted by name, and one that calls
itself a `.dll` a library that never ran.

Save for a mod that came as one program writes that program again, the same
way; before, its plugins were lost in an MPQ. Export as MPQ says which modules
an MPQ leaves out. A member an archive lists and does not hold is left out and
named, where Play and Save stopped on it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VEdp4UtqFn9GmthJP21viP
@jeany55
jeany55 merged commit 0f74087 into main Nov 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant