Skip to content

Add WowSimsExporter JSON import and upgrade to .NET 10 - #20

Open
harleyj wants to merge 1 commit into
TheSorm:mainfrom
harleyj:main
Open

Add WowSimsExporter JSON import and upgrade to .NET 10#20
harleyj wants to merge 1 commit into
TheSorm:mainfrom
harleyj:main

Conversation

@harleyj

@harleyj harleyj commented Jun 18, 2026

Copy link
Copy Markdown

Summary

  • WowSimsExporter Import: New prominent "Import Gear (WowSimsExporter)" button in the main UI that opens a paste dialog for addon JSON. Imports gear, gems, enchants, race, and talents.
  • Auto-detect in existing text box: The existing import/export text box also detects JSON (starts with {) and handles it alongside the existing base64 format.
  • Upgraded from .NET 6 to .NET 10: All three projects (RetSim, RetSimDesktop, RetSimWeb) updated.

How It Works

  • Parses the WowSimsExporter JSON format (gear.items[] with id, enchant, gems[])
  • Maps enchant IDs via EnchantmentID → internal ID reverse lookup
  • Assigns gems in socket order, handling both regular and meta gems
  • Sets race from the race field (Human, Dwarf, Draenei, BloodElf)
  • Parses the talent string (holy-prot-ret format) and sets all 14 configurable talents
  • Shows a warning if any items/enchants/gems aren't in RetSim's database

Test plan

  • Paste a WowSimsExporter JSON string via the new Import button
  • Verify gear, enchants, gems populate correctly on the Gear tab
  • Verify race updates on the Settings tab
  • Verify talents update on the Settings tab
  • Verify the existing base64 import/export still works
  • Verify warning dialog appears for items not in the database

🤖 Generated with Claude Code

image

- Add prominent "Import Gear (WowSimsExporter)" button to main UI
- Parse gear, gems, enchants, race, and talents from exporter JSON
- Auto-detect JSON vs base64 in existing import/export text box
- Show warning dialog for any unresolved items/enchants/gems
- Upgrade all projects from .NET 6 to .NET 10

Co-Authored-By: Claude Opus 4.6 (1M context) <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