Author Topic: CKIT.EXE hacking methods/tools  (Read 497 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 111
CKIT.EXE hacking methods/tools
« on: January 06, 2016, 05:42:00 PM »
Over the Holydays I didn't had the chance to work ont my design, but I've returned now and am a bit frustrated and demoralized.

Nearly a month ago I decided to try and rebuild the "NPC in party" event trigger condition from Brian O'Donnells OAUA (which would be used frequently in the design). This with a really simple method: I made a test module and cut out a parts of the diff.tlb to test if it still works. I managed to reduce the tlb file to the tenth but I am unsure if this is the right way to do it - I did it this way because it was the easy way. I may destroy some other parts of the code.

So I decided to do it the right way and see how the code works. Well, I failed. My first idea was to disassemble the whole code and look at the remaining code and try to figure out where the condition is tested. After I failed to find a working disassembler, I made up another plan: debug the game in dosbox. I failed again (I coudn't use the debugger I installed), and gave up to solve this on my own.

Is anyone with CKIT.EXE hacking experience still around these forums? How do you guys did the things you did? Whit what kind of tools?

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2178
    • Nol Drek's Web Site
Re: CKIT.EXE hacking methods/tools
« Reply #1 on: January 06, 2016, 07:47:52 PM »
We used to use UGE to create hacks:
http://frua.rosedragon.org/pc/misc/uge10.txt
http://frua.rosedragon.org/pc/misc/uge10.zip

We even made some modules to use with that program:
http://frua.rosedragon.org/pc/hacks/ckituge.txt
http://frua.rosedragon.org/pc/hacks/ckituge.zip

The collected knowledge of the ckit file is in "ckitform.txt", which is part of the above.

Brian O'Donnell wrote some new events in assembly language, at the expense of some little-used events.

I wrote a little jar file (Java executable) which can create a diff.tbl file from any changes you have made to your ckit.exe. The program is called "MakeDiffTbl":
http://ua.reonis.com/index.php?topic=2675.msg37054#msg37054

MakeDiffTbl assumes you have a Java Runtime Environment on your device:
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html



"Into the Drachensgrab Mountains!"

http://www.noldrek.com

Offline Adam

  • Full Member
  • ***
  • Posts: 111
Re: CKIT.EXE hacking methods/tools
« Reply #2 on: January 07, 2016, 04:47:22 PM »
Thank you, I've already read them, but the information I'm seeking is sadly not contained. My problem is how to get to these code positions, not some specific position (well, actually a specific position, but one that is not contained in those documents).

Brian O'Donnell wrote some new events in assembly language, at the expense of some little-used events.
The workflow of this is what I am curious about. To make these fit into the ckit.exe (besides being a genious) he must have known the entry points of the event condition check functions. He either had the code disassembled and found it or found it via debugging.

I already recieved the diff.tlb from Hans and there are a lot of changes in OAUA, and it seems virtually impossible to find the exact part of it which is responsible for this particular function. Had someone contact with Mr. O'Donnell during the time he did those changes? Are his assembly code snippets accessible somewhere?

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2178
    • Nol Drek's Web Site
Re: CKIT.EXE hacking methods/tools
« Reply #3 on: January 07, 2016, 07:51:49 PM »
This hack pack just makes 2 events - Special Ability and Peekaboo:
http://frua.rosedragon.org/pc/uanews/uanl34/da_specab.htm

I don't know if this smaller hack pack might be easier to decipher.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com

 

anything