Skip to content

Expose table/Server/constants.xml rows before feature resolution - #101

Closed
Zintixx wants to merge 1 commit into
masterfrom
constants-unresolved
Closed

Zintixx wants to merge 1 commit into
masterfrom
constants-unresolved

Conversation

@Zintixx

@Zintixx Zintixx commented Nov 28, 2026 •

Copy link
Copy Markdown

ParseConstants returns rows after ResolveFeatureLocale, so a key whose every row names a disabled feature simply disappears. A consumer that requires certain keys can't tell "gated off by a feature" apart from "missing from the file". This adds ParseConstantsUnresolved, which returns every row with its Feature and Locale, and bumps the package to 2.4.42.

Example: with FameContents disabled in feature.xml, FameContentsRequireQuestID, AllianceQuestPickCount and the other Sky Fortress keys are absent from ParseConstants. The server ingest's constants binder then fails, although the content they configure is closed.

  • Maple2.File.Parser/ServerTableParser.cs: ParseConstants and the new ParseConstantsUnresolved share one DeserializeConstants helper. The new method reads the generated __v list instead of the resolved v.
  • Maple2.File.Tests/ServerTableParserTest.cs: every resolved row must also appear among the unresolved rows, and FameContentsRequireQuestID must appear with Feature == "FameContents".
  • Maple2.File.Parser/Maple2.File.Parser.csproj: 2.4.41 → 2.4.42.

Verification

  • dotnet test Maple2.File.Tests --filter "FullyQualifiedName~TestConstants": 2/2 passed, against data with FameContents disabled. In that data, returning the resolved v list instead would fail the second assertion.
  • A local 2.4.42-debug.0 pack fed a server-side binder change that leaves feature-disabled keys at their defaults. With it, a full ingest with FameContents off completes.

🤖 Generated with Claude Code


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

ParseConstants drops a key whose rows are all gated on a disabled feature,
so a consumer cannot tell that key apart from one the file never had.
ParseConstantsUnresolved returns every row with its feature and locale.

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

coderabbitai Bot commented Nov 28, 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: 58587bd8-1bdb-4b65-b9ed-9b915e27bb16
  • 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 commented Nov 28, 2026

Copy link
Copy Markdown
Author

Closing: not needed. The server-side binder will keep a key with no row at its default instead of failing, which covers feature-gated keys without a parser change.

@Zintixx Zintixx closed this Nov 28, 2026
@Zintixx
Zintixx deleted the constants-unresolved branch November 28, 2026 16:49
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