Skip to content

Read spawner properties off MS2InteractActor entities - #74

Merged
AngeloTadeucci merged 1 commit into
masterfrom
interact-actor-spawner-properties
Jul 27, 2026
Merged

Read spawner properties off MS2InteractActor entities#74
AngeloTadeucci merged 1 commit into
masterfrom
interact-actor-spawner-properties

Conversation

@AngeloTadeucci

Copy link
Copy Markdown
Collaborator

Some MS2InteractActor entities double as NPC spawn points and carry the SpawnPointNPC property set (SpawnPointID, SpawnRadius, NpcCount, NpcList) directly on the entity. Neither the flat definition nor any mixin declares those properties, so XBlockParser.GetInstance got a null FlatProperty back from baseType.GetProperty(...), logged "Ignoring unknown property", and dropped them.

MS2Actor already has exactly this workaround: the properties are declared on IMS2Actor (tagged [Obsolete("This property should not exist")]) and patched into the type index by the "Manual index overrides" block in RuntimeClassLookup. MS2InteractActor never got the same treatment. This mirrors it.

ProxyNifAsset and reactableSequenceName were already reachable (via I3DProxy and IMS2InteractActor respectively), so only the four spawner properties are added.

Scope

A sweep over every xblock in the game finds exactly one entity that carries this data:

80000022_bonus: 11000119_MS2InteractActor_Moonrabbit interactID=11000119
                spawnPoint=199 radius=150 count=1 npcs=[27000036x1]

It is both the Moonrabbit mortar interact object and the spawn point for the Moon Bunny (27000036). The interactobject table entry for 11000119 has an empty <spawn code="" radius="" count="" prop="" lifeTime="" />, so the entity really is the only place this data exists.

InteractActorSpawnerTest asserts the Moonrabbit entity parses with its spawner data, and carries an opt-in diagnostic sweep that prints every such entity game-wide.

Notes

  • PackageVersion bumped to 2.4.17. Merging this publishes the package.
  • MS2Community/PrivateMaple2#270 is the consumer side and depends on 2.4.17 being published, so this should merge first.

Refs MS2Community/PrivateMaple2#270

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@AngeloTadeucci, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9d5b8b26-b310-4156-8d90-6d189df98173

📥 Commits

Reviewing files that changed from the base of the PR and between 3bc3e16 and ef918e9.

📒 Files selected for processing (4)
  • Maple2.File.Flat/maplestory2library/IMS2InteractActor.cs
  • Maple2.File.Parser/MapXBlock/RuntimeClassLookup.cs
  • Maple2.File.Parser/Maple2.File.Parser.csproj
  • Maple2.File.Tests/InteractActorSpawnerTest.cs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch interact-actor-spawner-properties

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

Comment @coderabbitai help to get the list of available commands.

AngeloTadeucci added a commit that referenced this pull request Jul 27, 2026
.editorconfig declared end_of_line = crlf but there was no .gitattributes, so
the stored line endings were mixed: ~27 files CRLF, the other ~790 LF. The
Format workflow runs `dotnet format whitespace` on an Ubuntu runner, where the
checkout is LF, so it rewrote every LF file to CRLF and git-auto-commit-action
pushed a 790-file "style: auto-format whitespace" commit onto every pull
request. #74 is the most recent victim.

Add .gitattributes with `* text=auto eol=lf` and switch .editorconfig to lf so
both agree and every checkout - Windows or Linux - sees the same endings. The
one-time `git add --renormalize` converts the 27 CRLF stragglers; the change is
line endings only.
A handful of MS2InteractActor entities double as NPC spawn points and carry
the SpawnPointNPC property set (SpawnPointID / SpawnRadius / NpcCount /
NpcList) on the entity itself. Neither the flat definition nor any mixin
declares those properties, so XBlockParser hit a null FlatProperty and
discarded every one of them.

MS2Actor already had the same treatment: the properties are declared on the
interface and patched into the type index by RuntimeClassLookup's manual
override block. MS2InteractActor never got it. Mirror that here.

A sweep over every xblock finds exactly one such entity today:
11000119_MS2InteractActor_Moonrabbit on 80000022_bonus, which is both the
Moonrabbit mortar interact object and the spawn point for the Moon Bunny
(27000036).

Refs MS2Community/PrivateMaple2#270
@AngeloTadeucci
AngeloTadeucci force-pushed the interact-actor-spawner-properties branch from cf61c66 to ef918e9 Compare July 27, 2026 07:01
@AngeloTadeucci
AngeloTadeucci merged commit c64ffe8 into master Jul 27, 2026
3 checks passed
@AngeloTadeucci
AngeloTadeucci deleted the interact-actor-spawner-properties branch July 27, 2026 17:56
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