---
name: analyze-decompiled-game-scripts-to-detect-and
description: "Analyzes decompiled game scripts and bytecode dumps to find softlock conditions, map progression dependencies, and draft guard patch scripts. Use when reviewing legacy game scripts for unwinnable dead-end states."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/analyze-decompiled-game-scripts-to-detect-and/"
  kind: workflow
  hermes:
    tags: ["decompilation", "gamedev", "static-analysis", "patching", "debugging"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Analyze decompiled game scripts to detect and patch softlocks

Find unwinnable dead-end states in legacy game scripts and generate guard patches

## When to use

Scan decompiled bytecode and game scripts for softlock conditions where required inventory or triggers become unreachable. The bot maps dependency graphs between progression gates and required items, flags unwinnable paths, and drafts patch scripts to block premature transitions until requirements are satisfied.

## Inputs

- `decompiled_game_scripts`: Decompiled game scripts or bytecode dumps to inspect for softlock conditions and progression gates.

## Steps

1. When you ask: Submit decompiled game scripts (A person submits decompiled game scripts or bytecode dumps in chat for analysis.)
2. Analyze state graphs for dead ends
3. Present generated patch scripts

## Instructions

Inspect the provided decompiled game scripts or bytecode dumps. Trace state variables, inventory checks, and transition triggers across rooms and scenes to identify paths that leave the game unwinnable. Draft conditional patch code that enforces prerequisite checks before irreversible transitions. Present the analysis and suggested patch files to the user for review. Do not commit changes to any repository without explicit approval.

## Approvals

- Committing generated patch changes to any repository requires explicit approval.

## Output

Analysis of softlock paths and generated guard patch scripts presented for review. (format: document)

## Source

Summarized in our own words from [Show HN: Automatically detect and patch walking-dead states in Sierra games](https://news.ycombinator.com/item?id=49355607) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/analyze-decompiled-game-scripts-to-detect-and/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
