Repository navigation
Parse the <pet> section of fieldmetadata.xml - #103
Merged
Merged
Conversation
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>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
table/<locale>/fieldmetadata.xmllists the maps each tamable pet lives on, under<pet id>→<field id>. PrivateMaple2 #2393 needs that list:petspawninfo.xmlhas no row for any Kritias pet, so none of them spawn in the wild. This adds the section and aParseFieldMetaDataPet()reader. The package version goes to 2.4.42.Xml/Table/FieldMetaData.csadds theFieldPettype with its<field>children, and moves<pet>from the header comment's "not modelled" list to the modelled one.TableParser.csaddsParseFieldMetaDataPet(), which yields each pet id with its field ids.ParseFieldMetaData()is unchanged, so existing callers are unaffected.TableParserTest.csaddsTestFieldMetaDataPet. Its expected values come fromtable/na/fieldmetadata.xml: 39 pets, Slime61000002on four maps, Leshy Brute61000159on2020001, and Pink Wriggler61000167on2020008and2020014.Maple2.File.Parser.csprojbumps the version to 2.4.42 for the PrivateMaple2 PR that consumes this.Verification
TestFieldMetaDataPetpasses against a local client'sXml.m2d.TestFieldMetaDatafails 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.2.4.42-debug.1and ran PrivateMaple2's ingest against it. All 19 pet and map pairs missing frompetspawninfo.xmlresolved, 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-botwith what you need.