Lazarus wrote:O.K. Lapdragon... <snip>
As I indicated earlier, one of things I'm trying to do is change the stack sizes of some of the consumable items, e.g. painkillers. I'm only vaguely familiar with hex editing, but I can convert decimal to hexadecimal and back again. So if the normal stacksize for painkillers is 5 ( 05 in hex ), is it simply a matter of finding that byte in the file below, and changing it to say 10 ( 0A ) with EditPad Pro?
Once that's been accomplished, how do I go about "repacking" the edited InventoryItems\painkillers.dat file back into the original pickup_database.drm file, and then incorporating the pickup_database.drm file into the patch1.000 file?
You're mostly correct - the only reason you've extracted the painkillers.dat at all is so that you can isolate the painkillers info out of the whole pickup_database.drm, which gets very confusing to look at. You'll actually be editing the whole pickup_database.drm in Editpad (which is where having Editpad's tabs is a miracle).
Open both files in Editpad, then hit ctrl+f to open the "find" function at the bottom (and then hit the little magnifying glass icon, to fully expand the find panel - you only have to do that once tho)
For Painkillers, I'd search for "CE 3C CF 3C 01 01 00 00", which is the 8 bytes just in front of the stack size byte - those 8 bytes are pretty much unique for every item, so they're good for finding your items in the pickup_database.drm. After I've found it, I change the bytes (there's actually 2 bytes to the stack size) to what I want - up to "FF 00" for 255 items to the stack, or "FF FF" for 65k items to the stack. If you're going for a number over 255, you'll need to invert the bytes - for example, 5000 is 1388 in hex, but in the game files it would have to be entered as "88 13".
After you've made your changes to the pickup_database.drm, save it to the same place in the directory structure in a copy of the patch1.000 unpack, then drag/drop that unpack folder onto Gibbed.DeusEx3.Pack.exe, and then change the name of the resultant file to patch1.000.
As that probably made no sense, I'll break the whole process down a little.
1.) Unpack bigfile.000 (c:\DXHR_Unpack\bigfile)
2.) Unpack patch1.000 (c:\DXHR_Unpack\patch1)
2a) Back up your original copy of patch1.000
3.) Make a copy of your patch1 directory (c:\DXHR_Unpack\patch1_copy)
3.) Find and edit pickup_database.drm (c:\DXHR_Unpack\bigfile\default\pc-w\pickup_database.drm)
4.) Save your edited pickup_database.drm into your copied patch1.000 directory (c:\DXHR_Unpack\patch1_copy\default\pc-w\pickup_database.drm)
4a) DO NOT SAVE YOUR EDITS TO THE ORIGINAL FILE!!!!!!!!
5.) Again use the tabs in Editpad - open the bigfile.xml that's in c:\DXHR_Unpack\bigfile, and the bigfile.xml that's in c:\DXHR_Unpack\patch1_copy
6.) Copy the bigfile.XML hash path for your edited files (if there's more than one) from bigfile's XML into the copied patch's XML. Save your changes to the patch's XML, and close Editpad.
7.) Open windows explorer, and drag/drop the whole c:\DXHR_Unpack\patch1_copy directory onto Gibbed.DeusEx3.Pack.exe in your DXHR directory. (makes patch1_copy.000)
8.) Rename your new patch1_copy.000 to patch1.000 and put it into the DXHR game directory, so that the game can use it.
9.) Play DXHR