Fixing problems
Learning paths through this topic
My Game Keeps Breaking: Why, and What to Tell Your AI
Your game breaks when you add something because new code touches parts that worked. Change one thing at a time and list what must keep working.
Why Does My AI Keep Forgetting My Story and Characters?
A new chat often starts empty and long chats get shortened. Keep your story in a file and a model, so any new chat can run a checker instead of guessing.
After the AI fixed a bug, some of my sentences read differently and I cannot see which
When a file is rewritten, quote marks, dashes and spacing change quietly, and now and then a whole sentence does too. This entry sorts script lines into untouched, only restyled and truly reworded, so you read only the ones that matter.
I asked my AI to fix one line and it rewrote the whole story file
A small request can come back as a full rewrite, with your wording changed and no way to see where. This entry measures how much of a file really changed, ignoring spacing, so you can refuse oversized fixes before they land.
The game worked yesterday and I made ten changes since, which one broke it
Undoing changes one by one takes ten rounds. There is a way to find the guilty one in about four, and a trap where the answer is wrong because the problem comes and goes. Your AI gets both the search and the safety check.
I told my AI that a scene is broken and it guessed wrong three times
A short complaint gives the AI nothing to hold on to, so it changes things at random. This entry checks a bug description for the parts that matter and tells you which question to answer before you ask again, including a note when the scene name does not exist.
My log is far longer than my AI can read, which lines should I keep
Pasting the whole log either gets cut off at the wrong end or drowns the one useful line. This entry picks lines in order of importance until a size limit is reached, and marks every gap so the AI knows lines are missing.
A character who died earlier still talks in a later scene on some routes
Players who took the unlucky path meet a friend who is supposed to be gone, mid-sentence and cheerful. This entry checks every route through the story at once and lists each scene where someone speaks after they have died.
My AI says the bug is fixed, but did it fix it or only stop the checks from running
Fewer red marks after a fix can mean the problem is gone, or that a check disappeared, or that a new problem replaced the old one. This entry shows your AI how to sort the before and after results into fixed, still broken, newly broken and never run.
After my AI reworked the story, a friend says an ending can no longer be reached
A rework can quietly cut the only road to one of your endings, and nobody notices until a player writes in. This entry compares the old and new story map, and lists endings lost or gained, dead ends created and choices that now lead elsewhere.
The error points to line 1 column 48213 of a file I never wrote
When a game is packed into one file, error messages point into that file, where the position means nothing to you. This entry turns a line and column into the original file and the spot inside it, and shows the text around it.
Which few recorded playthroughs should I replay to touch every choice in my story
After a fix you want to replay the story, but the thirty saved runs take hours. This entry picks a short list of runs that together touch every choice they can, and names the choices that no recorded run ever reached.