So I'm building the Lucasartsifier: a static analysis tool that decompiles Sierra resource files, automatically finds those states, automatically generates code to prevent the player from getting into those states, then emits loose patch files that can be placed alongside the original game resources. There's no game-specific code involved; all the logic is generic, though of course Sierra introduces new idioms and mechanics in every game so every new supported game needs a bunch of engine work.
So for example in Leisure Suit Larry 2, the patched game prevents you from boarding the cruise ship until you have both the sunscreen and the Grotesque Gulp. Without them you die on the raft 3 play-hours later.
So far this works on Leisure Suit Larry 2 (SCI0), King's Quest 4 (SCI0), King's Quest 6 (SCI1.1), and Laura Bow 2 (SCI1.1). I'm currently working on King's Quest 5 (SCI1.0).
This is work done with Claude -- I do the design and playtesting and it does the rest :D
Any feedback, play testing, and suggestions would be great!

Discussion (11 Comments)Read Original on HackerNews
[1] https://www.idlethumbs.net/designernotes/
I remember using a single save game and soft locking myself in Space Quest 2 by not getting the glowing gem, and in Space Quest 1 I think by not picking up the shard of broken glass, and being so pissed off about having to replay.
The LSL dip and sunscreen issues you fixed were particularly egregious, by that point I feel like they should have fixed things.
While Sierra should absolutely be recognized for spawning an entire genre of games that were legitimately fun, it is crazy that they were fine with shipping games with these broken states, when it was eminently preventable.
Without spoiling anything, are you accounting for stuff like a player saving in the Minotaur's Labyrinth without a... shall we say crucial item necessary for a trap scene?
[1] - https://mordenstar.com/blog/kqiv
In KQ6, the patched game prevents you from returning to the Labyrinth entrance unless you hold everything you need for inside. Stepping on the mountain will just not work. So you can save inside... you should be "safe" at that point (as safe as you can ever be in a Sierra game, lol).
Nice~
> throwing the leg of lamb at the cat to chase it away will work... but then good luck surviving the mountains.
Agree! Some of the KQs will even give you a few points (not the maximum, since it’s not the optimal action) for doing something that’s considered “good,” even though it puts the game into an unwinnable state later on.
Read the whole ReadMe to understand how you pulled this off.
Halfway through, I shiver, wait a minute I recognize this writing style…
I would have so preferred to remain impressed and excited by what a fellow human came up with - sometimes I really hate what AI is taking from us
If you came up with the design of the parser for the decompiled graphs, then I’m glad to still be impressed.
Don’t get me wrong, it’s a cool project… and I was actually impressed and excited
It's like making a beautiful chocolate praline and shipping it in a shoe.