feat: import progress from a game character save #5

Merged
ryan.mcgee merged 1 commit from feat/game-save-import into main 2026-11-19 03:25:37 +00:00
Owner

Summary

  • Add "Import game save": tick items and quests straight from a RuneScape: Dragonwilds character save instead of by hand.
  • The id-to-name mapping is built locally by each user from their own game install and is not committed or served.

Changes

  • static/tracker.js, templates/index.html: "Import game save" button. Pick a character JSON (and, the first time, the mapping file); items in Progress.ItemsPickedUp and quests with QuestState 2 are ticked. It only adds ticks, never removes. The mapping is kept in localStorage; nothing is uploaded.
  • scripts/gamemap.py: generates data/gamemap.json from assets extracted with retoc from a local install, matching ids to site items and quests by name. Output is gitignored.
  • README: how to extract and build the mapping, and the known gaps.

Verification

  • node --check and zola build: OK
  • gamemap.py on the 2026-11-18 server build (26670300): 1353 items and 37 quests mapped; against a real character save, 367/446 picked-up items and 28/32 quests covered
  • Browser: save alone prompts for the mapping; a non-save file is rejected; save + mapping ticked 363 items and 23 completed quests (in-progress quests not ticked); re-importing adds 0; mapping and ticks persist across reload; no console errors; 390px layout OK
  • Checked that no game ids appear in any tracked file

Notes

  • QuestState 2 meaning "completed" is inferred from one save.
  • Items the wiki data doesn't list (some seeds, farming tools, quest-only items) are skipped and counted.
## Summary - Add "Import game save": tick items and quests straight from a RuneScape: Dragonwilds character save instead of by hand. - The id-to-name mapping is built locally by each user from their own game install and is not committed or served. ## Changes - `static/tracker.js`, `templates/index.html`: "Import game save" button. Pick a character JSON (and, the first time, the mapping file); items in `Progress.ItemsPickedUp` and quests with `QuestState` 2 are ticked. It only adds ticks, never removes. The mapping is kept in `localStorage`; nothing is uploaded. - `scripts/gamemap.py`: generates `data/gamemap.json` from assets extracted with `retoc` from a local install, matching ids to site items and quests by name. Output is gitignored. - README: how to extract and build the mapping, and the known gaps. ## Verification - `node --check` and `zola build`: OK - `gamemap.py` on the 2026-11-18 server build (26670300): 1353 items and 37 quests mapped; against a real character save, 367/446 picked-up items and 28/32 quests covered - Browser: save alone prompts for the mapping; a non-save file is rejected; save + mapping ticked 363 items and 23 completed quests (in-progress quests not ticked); re-importing adds 0; mapping and ticks persist across reload; no console errors; 390px layout OK - Checked that no game ids appear in any tracked file ## Notes - `QuestState` 2 meaning "completed" is inferred from one save. - Items the wiki data doesn't list (some seeds, farming tools, quest-only items) are skipped and counted.
feat: import progress from a game character save
All checks were successful
deploy / build (pull_request) Successful in 46s
2b86e35cd6
- "Import game save" ticks picked-up items and completed quests
  from a Dragonwilds character JSON; it only adds ticks
- ids are mapped through a user-supplied file, kept in localStorage
- scripts/gamemap.py builds that file from locally extracted game
  assets; the output is gitignored and never shipped
- document the extraction steps and known gaps
ryan.mcgee deleted branch feat/game-save-import 2026-11-19 03:25:37 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
UltraVu-Studios/rsdclog!5
No description provided.