Skip to content

Board the Act 5 ship in its window, keep one point of return, refuse a daily quest asked twice - #4012

Merged
erwan-joly merged 1 commit into
masterfrom
fix/travel-tail-ship
Dec 1, 2026
Merged

erwan-joly merged 1 commit into
masterfrom
fix/travel-tail-ship

Conversation

@erwan-joly

@erwan-joly erwan-joly commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #3699 (packet sequences), #3371 (the Act 5 ship).

What changes for the player

The Mortaz Desert ship (n_run 5011)

  • Boarding is open only in the two minutes before a departure, and departures are on five-minute marks. Outside that window the player is told "The ship hasn't returned yet." (ShipHasNotReturnedYet) and stays ashore.
  • The player who boards is told the whole minutes left (ShipLeaveInMinutes).
  • Passengers stand on the deck at (22..24, 34).
  • Scripted instance rooms can now be shown under another map id (WithMapRoom(grid, shownMapId, ...) and MapInstance.ShownMapId). The ship's deck is shown to the client as map 155 while it is built on grid 148, so the map name box reads "Map" rather than "Ship".

Amulet of Return after a shared point of return

  • A character holds one point of return. Saving one, or taking one a team mate shares, replaces the last, even when the old one was in another group. The existing row is rewritten, because the save only upserts rows.
  • If the amulet's point is in another group, the amulet says CanNotBeUsedHere. With no point at all it still says NoReturnPoint.

A daily quest asked for again the same day (n_run 65)

  • The dialog-offer button now answers DailyQuestAlredyCompleted (yellow sayi) instead of going through AddQuestAsync. Non-daily quests are unchanged.

Client check: boarding the Mortaz Desert ship

A copy of the harbour sailor (Isalin) stands beside Tester on Chicken Farm Path. Tester takes "Go to Mortaz Desert Harbour", then "Yes, I want to go on board.". Departures are on five-minute marks.

master this branch, outside the window this branch, inside the window
master: boards at once onto the deck, map named Ship, no minutes line branch: outside the window, The ship hasn't returned yet. and Tester stays ashore branch: inside the window, on the deck with The ship will leave in 1 minutes.
  • master: boards at any time, lands at (33, 30) on map 148, no minutes line.
  • branch, outside the window: ShipHasNotReturnedYet, Tester stays on map 2550.
  • branch, inside the window: lands at (24, 34), map shown as 155, "The ship will leave in 1 minutes.". A run with 58 s left boarded with no minutes line (0 whole minutes).

The amulet and the daily quest parts are not shot.

Unknowns

  • Ship schedule: the two-minute window and the five-minute period are the simplest values that fit; neither is pinned. What a boarder is told with less than a minute left is not known.
  • Map shown under another id: Dragon Cavern Path is also shown under another id. That map is a base map reached by portals, so it would need a shown id on base maps as well; not done here.
  • Raid recruitment broadcast (PlayerSearchingMembersForRaidX): what triggers it and what its argument types mean is not known, so NosCore still does not send it.
  • Raid list: the rl sub-packet has an 11th field that ServerRlSubPacket does not have. Its meaning is unknown, so the list is unchanged.

Left to other PRs

Tests

  • Act5ShipServiceTests: boarding 1m15s before a sailing gives the minutes line with 1; tries 2m25s and 3m59s before are refused and launch no ship; a dead player cannot board; leaving the ship while ashore does nothing.
  • CsxInstanceScriptTests: the deck is shown as 155.
  • ReturnPointTests, ReturnItemHandlerTests: a point in another group replaces the last one, and the amulet says CanNotBeUsedHere when its point is out of reach.
  • DialogQuestOfferHandlerTests: asking again the same day gets the yellow DailyQuestAlredyCompleted and no quest.
  • After rebasing on master: the GameObject tests above (44) and NosCore.Instances.Tests (586) pass.

Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5437525 and f200968.

Files selected for processing: 16

  • documentation/manual-test-plan.md
  • instances/act5-ship.csx
  • src/NosCore.GameObject/Messaging/Handlers/Nrun/DialogQuestOfferHandler.cs
  • src/NosCore.GameObject/Messaging/Handlers/UseItem/ReturnItemHandler.cs
  • src/NosCore.GameObject/Services/Act5ShipService/Act5ShipService.cs
  • src/NosCore.GameObject/Services/BattleService/IRespawnService.cs
  • src/NosCore.GameObject/Services/BattleService/RespawnService.cs
  • src/NosCore.GameObject/Services/MapInstanceGenerationService/MapInstance.cs
  • src/NosCore.GameObject/Services/ScriptedInstanceService/ScriptedInstanceService.cs
  • src/NosCore.Instances.Abstractions/InstanceDefinitionBuilder.cs
  • src/NosCore.Instances.Abstractions/ScriptedInstanceDefinition.cs
  • test/NosCore.GameObject.Tests/Messaging/Handlers/Nrun/DialogQuestOfferHandlerTests.cs
  • test/NosCore.GameObject.Tests/Messaging/Handlers/UseItem/ReturnItemHandlerTests.cs
  • test/NosCore.GameObject.Tests/Services/Act5ShipService/Act5ShipServiceTests.cs
  • test/NosCore.GameObject.Tests/Services/BattleService/ReturnPointTests.cs
  • test/NosCore.Instances.Tests/CsxInstanceScriptTests.cs
  • 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

Copy link
Copy Markdown
Collaborator Author

Review: MERGE-WITH-NOTE

Fixed

  • d11e9bd: removed the source names, trace dates and trace line numbers from comments. The files are instances/act5-ship.csx, Act5ShipService.cs, RespawnService.cs, ReturnItemHandler.cs, DialogQuestOfferHandler.cs and five test files. Comments only. The solution builds; Act5ShipServiceTests, ReturnPointTests, ReturnItemHandlerTests and DialogQuestOfferHandlerTests pass (42).

Left

  • The PR body still names the source, its date, its times and its trace line numbers. Rewrite it in NosCore's own terms.
  • src/NosCore.GameObject/Services/BattleService/RespawnService.cs:110: a character who already holds two return points (Act 1 and Act 5, saved before this change) gets both rows rewritten to the same type. That leaves two identical rows. Keep one and point the other back at its own group, or overwrite only the first, and add a test.

Screenshots: none in the PR, and every change shows in the client. Capture master vs branch: n_run 5011 outside the boarding window (refusal line), boarding with "leaves in 1 minute(s)" and the deck spot, the Amulet of Return in NosVille after taking a shared Dragon Cavern Path point, and asking Volcano Gate's daily quest a second time (yellow "already completed").

🤖 Generated with Claude Code


Generated by Claude Code

erwan-joly pushed a commit that referenced this pull request Nov 29, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
…a daily quest asked twice

- The Mortaz Desert ship takes passengers only in the two minutes before it sails, on five-minute
  marks, refuses them otherwise with ShipHasNotReturnedYet, tells the boarder the whole minutes
  left, and shows its deck as map 155 while it is built on grid 148.
- A character holds one point of return: saving one, or taking a shared one, replaces the last
  even in another group, and the amulet used where that point is out of reach says
  CanNotBeUsedHere.
- A daily quest asked for again the day it was done answers DailyQuestAlredyCompleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
@erwan-joly erwan-joly changed the title Match the trace on the Act 5 ship, the amulet's point of return and a daily quest asked twice Board the Act 5 ship in its window, keep one point of return, refuse a daily quest asked twice Dec 1, 2026
@erwan-joly
erwan-joly force-pushed the fix/travel-tail-ship branch from d11e9bd to f200968 Compare December 1, 2026 16:52
@erwan-joly
erwan-joly merged commit 1162fe6 into master Dec 1, 2026
7 checks passed
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