Skip to content

Improve MCP scripting undo support and preserve RA2/YR country colors - #353

Open
Maxdemyd0 wants to merge 2 commits into
CnCNet:masterfrom
Maxdemyd0:master
Open

Maxdemyd0 wants to merge 2 commits into
CnCNet:masterfrom
Maxdemyd0:master

Conversation

@Maxdemyd0

Copy link
Copy Markdown

Summary

This pull request introduces improvements to World-Altering Editor's MCP integration and fixes country color handling in Red Alert 2 / Yuri's Revenge maps.

Changes

  • Make MCP scripting changes undoable through the editor's action history.
  • Add action review capabilities for AI-assisted map editing.
  • Improve MCP camera control and map-saving functionality.
  • Fix country colors being overwritten when loading RA2/YR maps.
  • Update the version to 1.9.9.3.

Motivation

These improvements aim to make AI-assisted map editing safer and more practical while preserving compatibility with traditional WAE workflows.

Feedback

I'm happy to address review comments, adjust the implementation, or split the changes into separate pull requests if preferred.

Thank you for considering my contribution!

Maxdemyd0 and others added 2 commits November 20, 2026 19:41
…ve tools, bump version to 1.9.9.2

Record each applied scripting change set as one entry in the undo history, so it can be undone with Ctrl+Z or by an agent. Undo and redo check that elements were not changed outside the history since; Ctrl+Z drops an unsafe entry with a notification, MCP refuses with an explanation.

Add review_action for field-level before/after diffs, undo_through for undoing a run of MCP entries without crossing manual edits, get_camera and move_camera that leave the view alone while the user is working on the map, and save_map that saves without dialogs and returns map checker issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Loading copied each house's color onto its country, and saving wrote that copy over the country's own Color=, so loading and saving a map changed it even when nothing was edited. A country now keeps its own color and only takes the house's color when it has none. Changing a house's color in the Houses window still updates its country as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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