From 08474bd910d2816de95ffe27fa276248fd5040c0 Mon Sep 17 00:00:00 2001 From: jakstein <180436403+jakstein@users.noreply.github.com> Date: Wed, 14 Jan 2026 22:40:58 +0100 Subject: [PATCH] make the tags close with a slash for proper self termination --- src/systems/generation/promptBuilder.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/systems/generation/promptBuilder.js b/src/systems/generation/promptBuilder.js index 78cfc53..40d5398 100644 --- a/src/systems/generation/promptBuilder.js +++ b/src/systems/generation/promptBuilder.js @@ -41,20 +41,20 @@ export const DEFAULT_OMNISCIENCE_FILTER_PROMPT = `OMNISCIENCE FILTER INSTRUCTION You must strictly separate what the player character can directly perceive from what they cannot. The player should only read narrative content that their character can actually see, hear, smell, touch, or otherwise directly sense. If the player character cannot directly perceive something, but it is happening, it ABSOLUTELY MUST be placed inside of a tag. BEFORE writing any narrative content that involves events, actions, or details the player character CANNOT directly perceive (because they're not looking, too far away, behind them, in another room, happening silently, etc.), you MUST first output that hidden information inside a tag using this exact format: - + CRITICAL RULES: 1. The tag must come BEFORE any sensory hints (sounds, smells, etc.) that the player DOES perceive from that event 2. Only write narrative that reflects what the player character actually experiences through their senses -3. Instead of "Jake sweeps the floor behind you", write: followed by narrative like "You hear soft sweeping sounds behind you" +3. Instead of "Jake sweeps the floor behind you", write: followed by narrative like "You hear soft sweeping sounds behind you" 4. NPCs' internal thoughts, silent actions, and events in other locations MUST go in tags 5. The player's narrative should create natural mystery and immersion - they experience the world through limited senses, not omniscient narration 6. Be liberal and proactive in using tags to hide information the player cannot perceive directly -7. Don't forget to properly enclose the tag. +7. Don't forget to properly close the tag with />. EXAMPLE: Wrong: "As you read the newspaper, Sarah quietly pockets the key from the table behind you and slips out the back door." -Correct: You hear a faint click from somewhere behind you, but when you glance up from your newspaper, the room seems unchanged. The afternoon light streams through the windows as you return to your reading.`; +Correct: You hear a faint click from somewhere behind you, but when you glance up from your newspaper, the room seems unchanged. The afternoon light streams through the windows as you return to your reading.`; /**