[GH-ISSUE #3216] [Issue]: Game Mode cannot add mid-session generated NPCs to party #1728

Closed
opened 2026-10-21 05:42:05 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3216

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Game Mode errors when adding an NPC met mid-session to the party if that NPC was not generated at game start. The server reports that the character or tracked NPC was not found.

Expected behavior

Game Mode should generate or track a character card for newly encountered NPCs and allow them to be added to the party.

Actual behavior

Adding the mid-session NPC to the party fails with an error that the character or tracked NPC was not found.

Steps to reproduce

  1. Start a Game Mode session.
  2. Encounter or generate an NPC mid-session who was not generated at game start.
  3. Attempt to add that NPC to the party.

Environment

  • Marinara Engine version: Not provided
  • Install type: source
  • OS + version: macOS implied by log path/hostname; exact version not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Server log:

{"level":50,"time":1783192501405,"pid":87712,"hostname":"Mac.ts.net lan","reqId":"req-1o1","err":{"type":"Error","message":"Character or tracked NPC \"Hanna\" was not found","stack":"Error: Character or tracked NPC \"Hanna\" was not found\n    at Object.<anonymous> (file:///Users/connererickson/Marinara-Engine/packages/server/dist/routes/game.routes.js:4736:19)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"Character or tracked NPC \"Hanna\" was not found"}

Additional context

Reporter noted there is no way to manually add NPCs or party characters to work around this. Maintainer comment: "we should generate a character card for it, anyway."

Discord thread: Game Mode not able to add generated characters to party
Discord thread link: https://discord.com/channels/1417099416812392641/1523070394917982299
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-07-04T20:57:59.428Z] Coins: ` ` `
{"level":50,"time":1783192501405,"pid":87712,"hostname":"Mac.ts.net lan","reqId":"req-1o1","err":{"type":"Error","message":"Character or tracked NPC \"Hanna\" was not found","stack":"Error: Character or tracked NPC \"Hanna\" was not found\n    at Object.<anonymous> (file:///Users/connererickson/Marinara-Engine/packages/server/dist/routes/game.routes.js:4736:19)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"Character or tracked NPC \"Hanna\" was not found"}
` ` `
This seems to happen when an NPC who wasn't generated at the game start gets added to the party. This person was met mid-session so there must not have been any NPC information for her.
[Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523070394917982299]

[2026-07-04T21:00:05.847Z] Coins: there's also no way to, like, manually add NPCs or party characters to avoid this
[Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523070925157961960]

[2026-07-04T21:03:11.453Z] Coins: Game Mode not able to add generated characters to party
[Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523071703645683943]

[2026-07-04T21:14:18.015Z] Marinara: Huh, weird, we should generate a character card for it, anyway.
[Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523074499409608784]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3216 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Game Mode errors when adding an NPC met mid-session to the party if that NPC was not generated at game start. The server reports that the character or tracked NPC was not found. ## Expected behavior Game Mode should generate or track a character card for newly encountered NPCs and allow them to be added to the party. ## Actual behavior Adding the mid-session NPC to the party fails with an error that the character or tracked NPC was not found. ## Steps to reproduce 1. Start a Game Mode session. 2. Encounter or generate an NPC mid-session who was not generated at game start. 3. Attempt to add that NPC to the party. ## Environment - Marinara Engine version: Not provided - Install type: source - OS + version: macOS implied by log path/hostname; exact version not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Server log: ```json {"level":50,"time":1783192501405,"pid":87712,"hostname":"Mac.ts.net lan","reqId":"req-1o1","err":{"type":"Error","message":"Character or tracked NPC \"Hanna\" was not found","stack":"Error: Character or tracked NPC \"Hanna\" was not found\n at Object.<anonymous> (file:///Users/connererickson/Marinara-Engine/packages/server/dist/routes/game.routes.js:4736:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"Character or tracked NPC \"Hanna\" was not found"} ``` ## Additional context Reporter noted there is no way to manually add NPCs or party characters to work around this. Maintainer comment: "we should generate a character card for it, anyway." Discord thread: Game Mode not able to add generated characters to party Discord thread link: https://discord.com/channels/1417099416812392641/1523070394917982299 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-07-04T20:57:59.428Z] Coins: ` ` ` {"level":50,"time":1783192501405,"pid":87712,"hostname":"Mac.ts.net lan","reqId":"req-1o1","err":{"type":"Error","message":"Character or tracked NPC \"Hanna\" was not found","stack":"Error: Character or tracked NPC \"Hanna\" was not found\n at Object.<anonymous> (file:///Users/connererickson/Marinara-Engine/packages/server/dist/routes/game.routes.js:4736:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)"},"msg":"Character or tracked NPC \"Hanna\" was not found"} ` ` ` This seems to happen when an NPC who wasn't generated at the game start gets added to the party. This person was met mid-session so there must not have been any NPC information for her. [Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523070394917982299] [2026-07-04T21:00:05.847Z] Coins: there's also no way to, like, manually add NPCs or party characters to avoid this [Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523070925157961960] [2026-07-04T21:03:11.453Z] Coins: Game Mode not able to add generated characters to party [Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523071703645683943] [2026-07-04T21:14:18.015Z] Marinara: Huh, weird, we should generate a character card for it, anyway. [Discord message: https://discord.com/channels/1417099416812392641/1523070394917982299/1523074499409608784] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:42:05 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

@SpicyMarinara commented on GitHub (Jul 4, 2026):

Addressed in ready PR #3218 targeting staging.

<!-- gh-comment-id:4884071059 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): Addressed in ready PR #3218 targeting staging.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1728
No description provided.