Add save files for all 6 benchmark scenarios#17
Merged
Conversation
Phase A of scenario save creation: copies the crashlanded base save and patches the difficulty XML field for each scenario (Medium, Rough, or Hard). Adds create_scenario_saves.py script with Phase B checklist for manual dev-mode pawn/item spawning on scenarios needing 4-5 colonists. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Phase B: script now clones Thing_Human184 via XML manipulation to add colonists for 4-5 pop scenarios. Remaps thing IDs, hediff/gene loadIDs, clears social relations, and inserts scenario-specific item stacks. - Toxic Fallout: 4 colonists, wood/food/steel - Raid Defense: 5 colonists, weapons/armor/steel/wood/components - Plague Response: 5 colonists, medicine/food - Ship Launch: 5 colonists, steel/components/plasteel/gold/uranium Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The set-forbidden endpoint (PR #65) handles unforbidding at runtime in run_scenario.py. No need to mutate save XML. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The RIMAPI DDD refactor wraps /api/v1/map/things in
{success, data, errors}. Our client expected a raw list,
so unforbid_all_items silently found 0 items every time.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
|
All test plan items verified: Live game (OpenRouter Nemotron 120B paid):
Docker:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.rwssave files todocker/saves/so all 6 benchmark scenarios can run end-to-end (local and Docker)scripts/create_scenario_saves.pygenerates saves programmatically from the crashlanded base via XML manipulation — no manual RimWorld dev mode neededTest plan
Automated (no game needed):
python scripts/run_benchmark.py --smoke-test --ticks 2completes all 6 scenariospython scripts/create_scenario_saves.py --phase bis idempotent (re-running produces identical files)Manual (requires RimWorld + RIMAPI):
curl -X POST http://localhost:8765/api/v1/game/load -H "Content-Type: application/json" -d '{"file_name":"rle_first_winter_v1"}'(repeat for all 5 new saves)Stretch (Docker):
docker runwith all 6 saves mounted viarimworld-linux+rimapi-modvolumes (port 8766)🤖 Generated with Claude Code