However I AM curious about one thing; why do you keep the cheats in instead of just disabling them... and why alter them at all? For Keen Vorticons at least they were intended to be there. (In Keen galaxy there are both intended cheats like Boss and BAT and debug cheats.) They're not exactly a flaw and I personally delete the cheat patches to play, for me it's how the games were intended to be.

I can compare that pattern, but let me be honest, but there must be a better way. What would you suggest? Can you pinpoint, how to interpret such code patterns? What would you do in my case? With data segments I have not that many problems, but this one seems to be some simple code I need to interpret.

Because I want to improve mod support it would be helpful if you'd give me a hand.

By the way, in the next release, if you choose "easy mode", The vorticon elites and robots will behave like they do in this mod.

I can compare that pattern, but let me be honest, but there must be a better way. What would you suggest? Can you pinpoint, how to interpret such code patterns? What would you do in my case? With data segments I have not that many problems, but this one seems to be some simple code I need to interpret.

I would use a complete disassembly of the target executable to find out if this patch modifies an entire instruction or if the patch inserts the code into the middle of an instruction. Then I would use that knowledge and my 80286 manual to convert the machine code into assembly mnemonics to figure out what the new code actually does. As an alternative, I guess you could also let CKPATCH produce a fully patched executable and run that through a disassembler if you don't want to convert the machine code by hand.

Unfortunately, I don't see a solution on how to handle patches like this automatically. The best you can do would be to search for recognized machine code patterns and then change the scripts/variables in CG accordingly.

For automatic handling, you'd need to run a CPU emulator that interprets the original executable, but that's not how CG works, right?