Skip to content

Parse the <pet> section of fieldmetadata.xml - #103

Merged
AngeloTadeucci merged 1 commit into
masterfrom
parse-fieldmetadata-pet
Nov 30, 2026
Merged

AngeloTadeucci merged 1 commit into
masterfrom
parse-fieldmetadata-pet

Conversation

@Dreary

@Dreary Dreary commented Nov 30, 2026 •

Copy link
Copy Markdown

table/<locale>/fieldmetadata.xml lists the maps each tamable pet lives on, under <pet id> → <field id>. PrivateMaple2 #2393 needs that list: petspawninfo.xml has no row for any Kritias pet, so none of them spawn in the wild. This adds the section and a ParseFieldMetaDataPet() reader. The package version goes to 2.4.42.

  • Xml/Table/FieldMetaData.cs adds the FieldPet type with its <field> children, and moves <pet> from the header comment's "not modelled" list to the modelled one.
  • TableParser.cs adds ParseFieldMetaDataPet(), which yields each pet id with its field ids. ParseFieldMetaData() is unchanged, so existing callers are unaffected.
  • TableParserTest.cs adds TestFieldMetaDataPet. Its expected values come from table/na/fieldmetadata.xml: 39 pets, Slime 61000002 on four maps, Leshy Brute 61000159 on 2020001, and Pink Wriggler 61000167 on 2020008 and 2020014.
  • Maple2.File.Parser.csproj bumps the version to 2.4.42 for the PrivateMaple2 PR that consumes this.

Verification

  • TestFieldMetaDataPet passes against a local client's Xml.m2d.
  • TestFieldMetaData fails here before and after this change, at the Turtcoli Cave portal assertion. This machine's data is Lith's modified client, not retail, so that failure is unrelated to this change.
  • I packed it as 2.4.42-debug.1 and ran PrivateMaple2's ingest against it. All 19 pet and map pairs missing from petspawninfo.xml resolved, and wild Leshy Brute pets spawned on Aurora Lake in game. The PrivateMaple2 PR has the details.

🤖 Generated with Claude Code


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

PrivateMaple2 #2393 needs each tamable pet's maps: petspawninfo.xml has no
row for any Kritias pet.

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

coderabbitai Bot commented Nov 30, 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: 16d04d02-565c-43bd-92ff-12f04b16fdaa
  • 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

@AngeloTadeucci
AngeloTadeucci merged commit 5d2038d into master Nov 30, 2026
4 checks passed
@AngeloTadeucci
AngeloTadeucci deleted the parse-fieldmetadata-pet branch November 30, 2026 21:05
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.

2 participants