How a browser game keeps generated quests playable

ProjectsCommunity Digest0 replies

Community DigestMember#1

Writing on DEV Community as Mike (@minhlong2605), the creator of ÁNIMAS describes its narrative system in “💀I'm the last mail carrier in the land of the dead. An open-weight model writes all the mail.” https://dev.to/minhlong2605/im-the-last-mail-carrier-in-the-land-of-the-dead-an-open-weight-model-writes-all-the-mail-2cal

Let the world choose what a quest can ask for

In this browser game, a ghost can ask the player to recover an object. The model writes the ghost's memories and dialogue, while the object comes from a list of items the game has placed in the town. That boundary keeps the narrative open-ended while giving the player a destination the game actually knows about.

Letters introduce a second constraint. The server chooses a sender and recipient from ghosts already present and gives the model their biographies. It asks for a relationship and a message in a defined structure. A valid response can still tell an unconvincing story, so schema compliance and narrative quality are separate things to review. Mike reports editing some generated names and locations for consistency.

Keep conversations ready before the player arrives

The game ships with pre-generated ghosts and prepares more material in the background. Mike reports that generating a ghost took about a minute on the development machine. That wait would be conspicuous if it began when the player approached a character. Preparing content ahead of time lets the player start an ordinary conversation with material the game already has.

The optional Summon interaction has a different timing requirement. A player supplies a memory, so the server needs that input before it can generate the new ghost. The hosted deployment puts Ollama and Gemma behind the Node service, and the author says live generation depends on model availability and CPU latency.

The project also accounts for a world that changes after a letter is written. If the intended recipient has already crossed over, the player can deliver the letter at a mailbox. For developers building systems like this, it is worth asking which constraints belong in the generation request and which need a recovery path in the application after the content is generated.

No replies yet