Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Darkness II

Featured Replies

  • Author
  • Localization

patyek, posted Sat Aug 19, 2017 11:48 pm (25750)


Hi!

I used the quickmbs to extract the H.misc.cache file, and i've got the localization file (Languages.cl), but how i extract/repack or edit it?

Br.: Patyek
  • Author
  • Localization

desperado, posted Mon Aug 21, 2017 5:51 pm (25788)


Up.
  • Author
  • Localization

patyek, posted Wed Aug 23, 2017 9:09 pm (25815)


swuforce wrote:
Try the tools from the sources.
https://zenhax.com/viewtopic.php?f=12&t=645


Hi!

I installed the autolt and download the 2 script for darkness 2 (import and export) i put these files and the Languages.cl in one directory try to run the extract script and get this error (see the attachment).
  • Author
  • Localization

patyek, posted Fri Aug 25, 2017 6:40 pm (25870)


I stuck again. I tried to repack the files, and i've got an error message (in this case too, when i tried to repack the unkpacked unedited file). :(

What could be the problem?
  • Author
  • Localization

aluigi, posted Fri Aug 25, 2017 9:12 pm (25872)


Reimporting the files compressed with the "evolution" algorithm is not possible because there is no re-compressor available.
If I remember correctly that "evolution" is a known algorithm and library (lz4 maybe?) but I don't remember what it it so it can't be replaced (anyway if it was lz4, it can't be used in reimporting because the game will crash).
  • Author
  • Localization

patyek, posted Sat Aug 26, 2017 5:00 am (25886)


Unfortunately, I do not know what kind of compression algorithm used. So useless managed to extract the file that contains the text and managed to put back the original file recompression is no longer possible.
  • Author
  • Localization

aluigi, posted Sat Aug 26, 2017 6:31 am (25893)


Ok I made a check and those algorithms are, apparently, all the same:
LCF (67)
DARKSECTOR_NOCHUNKS (213)
FASTLZAH (274)
EVOLUTION (362)
UNKNOWN6 (371)
LZFX (350)

The good news is that LZFX has a recompression function and so it can be used in reimport mode :)
That does NOT mean that the game will work for sure with the edited files but now you can try.
Keep me update
  • Author
  • Localization

patyek, posted Sat Aug 26, 2017 7:22 pm (25931)


Okay, but how i reimport the languages.cl into the original files (H.Misc.cache and H.Misc.toc)? Please write it step by step. Sorry, but i don't percfect in the compression methods, i just translate texts. :( Thanks!
  • Author
  • Localization

aluigi, posted Sun Aug 27, 2017 11:10 am (25940)


Yesterday I have added the following to the rules topic:
Quote:
How to reimport files with QuickBMS?
Read section 3 of http://aluigi.org/papers/quickbms.txt
If that's still not clear take a look at this example viewtopic.php?p=23032#p23032
Long story short: the procedure is the same you used for extraction (I really mean the same: same input file and folder!)
  • Author
  • Localization

patyek, posted Sun Aug 27, 2017 1:17 pm (25946)


aluigi wrote:
Yesterday I have added the following to the rules topic:
Quote:
How to reimport files with QuickBMS?
Read section 3 of http://aluigi.org/papers/quickbms.txt
If that's still not clear take a look at this example https://zenhax.com/viewtopic.php?p=23032#p23032
Long story short: the procedure is the same you used for extraction (I really mean the same: same input file and folder!)


Hi!

1. reimport.bat file
2. browse the darkness2.mbs file
3. browse the H.Misc.toc file
4. click on the save, because i don't create a folder (but i try too)

And then the qmbs ask me a question, i answer this - y. See bellow:

- open input file D:\ds2\H.Misc.toc
- open script D:\ds2\darkness2.bms
- set output folder D:\ds2

offset filesize filename
--------------------------------------
- enter in folder D:\ds2
coverage file 0 0% 0 2754536 . offset 00000000
- open input file D:\ds2\H.Misc.toc
- enter in folder D:\ds2
- open input file D:\ds2\H.Misc.cache
- REIMPORT MEMORY_FILE WORK-AROUND: "/Languages.cl"

- Do you want to use the experimental reimporting of chunked MEMORY_FILE (y/N)?
y

Error: unsupported compression 362 in reimport mode

Last script line before the error or that produced the error:
85 clog MEMORY_FILE OFFSET CHUNK_ZSIZE CHUNK_SIZE 1

Press ENTER or close the window to quit
  • Author
  • Localization

aluigi, posted Sun Aug 27, 2017 3:31 pm (25952)


You used it correctly but you forgot to replace comtype evolution with comtype lzfx.
Anyway it's useless to do it because now I have noticed that the format uses chunks so no real working way to do reimporting.
In short: no solution.
  • Author
  • Localization

patyek, posted Sun Aug 27, 2017 5:32 pm (25964)


Thanks for your answer! :R That was exactly what I was curious about. Unfortunately, this is a dead project.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.