Skip to content

Parse table/itemenchanttransform.xml (2.4.41) - #100

Merged
Zintixx merged 1 commit into
masterfrom
parse-itemenchanttransform
Nov 25, 2026
Merged

Zintixx merged 1 commit into
masterfrom
parse-itemenchanttransform

Conversation

@Zintixx

@Zintixx Zintixx commented Nov 25, 2026 •

Copy link
Copy Markdown

The Transfer Enchant dialog turns one enchanted gear item into enchant scrolls, and table/itemenchanttransform.xml says which item, rarity, level and enchant level converts into which scrolls. Nothing parsed it, so the emulator had no way to read those rows. This adds the type and TableParser.ParseItemEnchantTransform().

  • Xml/Table/ItemEnchantTransform.cs, new: every attribute a transform row carries. inputSlot and inputItemId are M2dArray, which trims values, since some rows put a space after each comma. The rows have no id, so the root's M2dFeatureLocale has no Selector. Each row is filtered on its own locale and feature, as the client's loader does.
  • TableParser.cs: ParseItemEnchantTransform() returns the filtered rows.
  • Maple2.File.Parser.csproj: 2.4.40 → 2.4.41.
  • TableParserTest.cs: on NA Live, the parser must return the 336 rows with no locale or locale="NA" (252 + 84), counted from the raw XML. It also checks one locale="NA" row with spaced ids and one row with no locale.

Verification

dotnet test Maple2.File.Tests --filter TestParseItemEnchantTransform passes against two NA data folders, one of them an unmodified GMS2 client. dotnet format whitespace --verify-no-changes is clean.

🤖 Generated with Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The Transfer Enchant dialog's table. Rows have no id, so the root filters each row on its own
locale and feature, with no Selector, as the GMS2 client's loader does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9168f805-e46b-4657-bae4-7eb0b04663eb
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@Zintixx
Zintixx merged commit 84c84f9 into master Nov 25, 2026
4 checks passed
@Zintixx
Zintixx deleted the parse-itemenchanttransform branch November 25, 2026 07:27
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