PLAYSTATION / DUAL SHOCK
Duke Nukem: modern controls
Two PlayStation adventures, a more familiar way to move. Separate PPF patches give Time to Kill and Land of the Babes a shared Dual Shock layout while retaining each game’s original movement system.
- Focus
- Reverse engineering
- Tools
- MIPS · DuckStation · Python
- Result
- Two reversible game patches
The change
The left stick moves forward, backward and sideways. The right stick handles turning. R1 fires and R2 jumps, swims or uses the jetpack. L2 is game-specific: hold to walk in Time to Kill, or auto target in Land of the Babes. Menu navigation keeps the original button assignments.

Working with the original engine
The patch translates stick directions into the games’ existing digital movement and turning speeds, with a central dead zone. It does not introduce proportional analog movement or vertical right-stick aiming. Analog mode must be enabled, and a saved custom layout can override the patched defaults.

UNDER THE HOOD
AI-assisted live debugging in DuckStation
The investigation combined a debugger connection to the running game with memory dumps, screenshots and logs. AI helped make sense of the evidence: which values changed, which MIPS routines handled them, and which edits were worth testing. The running game provided the feedback.
- Observe a repeatable actionCompare the game’s behavior while moving, turning, aiming or navigating a menu. Screenshots and logs connect the visible result to the state being investigated.
- Inspect the running stateDebugger access and RAM dumps expose the instructions and data actually loaded in memory. Comparing states helps narrow the search from the whole game to candidate input, aiming or drawing routines.
- Use AI to interpret the evidenceAI assists with reading MIPS instructions, following branches and reasoning about candidate values or control paths. Those interpretations are hypotheses to check against the game, not proof on their own.
- Change, replay, verifyTry a focused change and repeat the same action. Package the confirmed edits into a PPF patch, then check application, undo and disc-sector integrity. A fresh boot matters: an old savestate can reload unpatched code into RAM.
This overview combines the creator’s account of the tools used with the repository’s documented patch and validation results. It describes the method rather than reproducing a debugger transcript.
What has been verified?
Each patch passed 5,466 simulated MIPS cases and application, undo and sector checks. Land of the Babes gameplay controls were user-confirmed in DuckStation. Time to Kill still needs complete gameplay and fresh-disc-boot validation; physical hardware testing remains outstanding.
Technical notes & project sources
Read the project README for installation, current limitations, supported revisions and validation details. Images above are labelled as screenshots, artwork or explanatory diagrams.
CHRISTOPH POTHMANN /
PORTFOLIO