Skip to content

fix(drops): refuse money at the inventory limit with the general failure, so the client keeps picking up - #1573

Merged
sven-n merged 2 commits into
MUnique:masterfrom
pllanosclaria:fix/money-pickup-limit-reply
Nov 22, 2026
Merged

sven-n merged 2 commits into
MUnique:masterfrom
pllanosclaria:fix/money-pickup-limit-reply

Conversation

@pllanosclaria

@pllanosclaria pllanosclaria commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1572

Since #1498, a pile of money which doesn't fit into the inventory money is refused with the reason
MaximumInventoryMoneyReached, which goes out as C1 04 22 FE. 0xFE is the code of the money update
(C1 08 22 FE <money>); the packet definition says the value shouldn't be used for this reason. The open source client
reads the reply as the money update, drops it because the amount is missing, and keeps waiting for its pick up
request: it sends no pick up anymore until the next login (Mutizens/MuMain#1164).

Changes

Testing

  • New PickupMoneyRefusalTest: at the money limit the reply is the general failure (never
    MaximumInventoryMoneyReached) plus one blue message, and the money stays as it was; a pile out of reach gets the
    general failure and no message. The first test fails on master.
  • dotnet build src/MUnique.OpenMU.sln, no new warnings; dotnet test src/MUnique.OpenMU.sln --no-build passed on
    97a1f34. After rebasing onto 45678e3 (Spanish player messages feat(localization): add Spanish player messages #1578, item expiration feat(items): items which expire, to sell the time-limited cash shop products #1548): MUnique.OpenMU.Tests
    3400 passed, 3 skipped, and MUnique.OpenMU.Web.Tests 802 passed, including TranslationCoverageTests with the Spanish string.
    BotMapFloorTest.HuntingGroundIsPickedOnTheOwnFloorAsync failed once and passed alone (3 times) and in the next
    full run of the project; it's about bots, not this change.
  • In game, local server (docker image of this change on top of my local branch), Season 6 data,
    ClampMoneyOnPickup off, the open source client from main without fix(network): a pick up reply which can't be read no longer blocks every further pick up Mutizens/MuMain#1165, a Magic Gladiator with
    2,146,732,329 zen in LaCleon (Dark Mammoths): the piles of 600,000+ zen are refused with "You can't carry more zen."
    and the items next to them are still picked up. Before (same client, server without this change): after the first
    refused pile no item could be picked up until the next login.
  • Not tested with the original 1.04d client. It gets the general failure, as for any other refused pick up.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity

Metric Results
Complexity 4

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@pllanosclaria
pllanosclaria force-pushed the fix/money-pickup-limit-reply branch from b3d8d25 to 571a9c5 Compare November 20, 2026 10:47

@sven-n sven-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the fix is right, and it corrects my mistake in #1498: MaximumInventoryMoneyReached goes out as 0xFE, which clients read as the money update, so a refused pile has to get the general failure (0xFF) plus a message. I'd like to merge this soon, because it leaves MuMain without pickups until the next login.

One thing blocks it: the first commit regenerates the whole PlayerMessage.Designer.cs (~1,960 changed lines). That alone makes this PR conflict with every open PR which adds a player message (#1548, #1491, and #1571 via the .zh-CN.resx), and it would conflict again after each of their merges. Please drop the regeneration commit and only add the block of the new MoneyPickupLimitReached property to the designer, in the existing format, as the other recent PRs did. The rest (PickupItemAction, the enum remark, the resx entries, PickupMoneyRefusalTest) looks good.


Generated by Claude Code

sven-n commented Nov 20, 2026

Copy link
Copy Markdown
Member

One more thing besides the designer: #1578 (Spanish player messages) was just merged, and TranslationCoverageTests now requires every PlayerMessage key in PlayerMessage.es.resx. Please also add MoneyPickupLimitReached there (e.g. No puedes llevar más zen.), otherwise PlayerMessagesAreCompleteAndMatchNeutralPlaceholders("es") fails.


Generated by Claude Code

@pllanosclaria
pllanosclaria force-pushed the fix/money-pickup-limit-reply branch from 571a9c5 to 00d3f42 Compare November 20, 2026 22:55

@sven-n sven-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the Spanish message. #1548 was merged now, and as expected the full regeneration of PlayerMessage.Designer.cs (still ~1,960 changed lines, commit bfffa908) makes this PR conflict (PlayerMessage.Designer.cs, PlayerMessage.zh-CN.resx).

Please rebase onto master, drop the regeneration commit, and only add the block of MoneyPickupLimitReached to the designer. Then this small, important fix won't collide with every other message PR any more, and I'll merge it right away. The fix itself is approved from my side.


Generated by Claude Code

…ure, so the client keeps picking up

Since MUnique#1498 a pile of money which doesn't fit into the inventory money was refused
with the reason MaximumInventoryMoneyReached (C1 04 22 FE). 0xFE is the code of the
money update (C1 08 22 FE <money>), the packet definition says the value should not
be used for that reason. The open source client reads it as the money update, drops
the reply because the amount is missing, and keeps waiting for its pick up request:
it sends no further pick up until the next login.

The refusal is now the general failure (0xFF), which every client handles, and a
blue message tells the player that they can't carry more zen.
@pllanosclaria
pllanosclaria force-pushed the fix/money-pickup-limit-reply branch from 00d3f42 to e005fe5 Compare November 21, 2026 00:50

@sven-n sven-n left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for slimming it down: only the new designer entry and the Spanish text are added now. I built it on master (before #1571) and ran the tests (all except the slow initialization tests): everything passes, including PickupMoneyRefusalTest.

Unfortunately, #1571 (Lord's Mix) was merged right before, so there's one small conflict left, in src/GameLogic/Properties/PlayerMessage.zh-CN.resx (both add entries at the end). Please rebase and keep both entries. I'll merge it as soon as it's clean.


Generated by Claude Code

Conflict in the Chinese player messages: both sides added entries.
@pllanosclaria

Copy link
Copy Markdown
Contributor Author

@sven-n the merge conflict is resolved (f584b5e): master and this branch both added Chinese player messages at the same place, and both are kept. The build and the game and web tests pass, so it's ready to merge.

@sven-n
sven-n merged commit 65c685f into MUnique:master Nov 22, 2026
1 check passed

sven-n commented Nov 22, 2026

Copy link
Copy Markdown
Member

Thanks for resolving the conflict. I built the rebased branch on current master and ran the tests again (all except the slow initialization tests): everything passes except LoginTicketServiceTest.ConcurrentIssuersStayWithinTheLimitAsync, a known race in PlayerInMemoryContext on master, which is unrelated. Merged.


Generated by Claude Code

@pllanosclaria
pllanosclaria deleted the fix/money-pickup-limit-reply branch November 22, 2026 17:37
nahuedomino pushed a commit to nahuedomino/OpenMU that referenced this pull request Nov 30, 2026
…ure, so the client keeps picking up (MUnique#1573)

Since MUnique#1498 a pile of money which doesn't fit into the inventory money was refused
with the reason MaximumInventoryMoneyReached (C1 04 22 FE). 0xFE is the code of the
money update (C1 08 22 FE <money>), the packet definition says the value should not
be used for that reason. The open source client reads it as the money update, drops
the reply because the amount is missing, and keeps waiting for its pick up request:
it sends no further pick up until the next login.

The refusal is now the general failure (0xFF), which every client handles, and a
blue message tells the player that they can't carry more zen.

(cherry picked from commit 65c685f)
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.

Money refused at the inventory limit is answered with 0xFE, the client then stops picking up anything

2 participants