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.

[SOLVED] REZ Files Opening from No One Lives Forever 1

Featured Replies

  • Author
  • Localization

GHFear, posted Mon Apr 01, 2019 7:26 pm (46352)


Last update to the batch files and a tiny change to the rez script aluigi posted for easy export and import.
No reimport2 because it's a padded offset. But it has normal reimport. :)

REZ_DRAGON Unpacker_ReImport 1.4.rar

  • Author
  • Localization

Tgames, posted Mon Apr 01, 2019 7:37 pm (46353)


A HUGE thanks for you two ! :shock:

You have made a really good work !

aLuigi,

LITH_PS2.REZ is now fully extracted ?
Because i still not found the voices files in the export.
It's really seems to be compressed ?

GHFear,

Don't worry i only need to extract the files not to inject them.
Because in the PC versions, it's just voices in WAV format.
So when i can get the voices from the PS2 version and convert them to WAV it will be done for me :)

-------------------------------------------------------------

I found where are stored the VOICES !

It's in all .LIT files in each LIT files it stores all WAV files :

"LithTech PSX Sound Data 1.20"

Can you make a script to extract each .LIT files ? It stores a lot of WAV files :)
  • Author
  • Localization

Tgames, posted Mon Apr 01, 2019 7:48 pm (46354)


Image

In all .lit files (extracted from LITH_PS2 thanks to aluigi) we have all sounds/voices (a lot stored in each lit files) of the game per missions.

The ID is "LithTech PSX Sound Data 1.20"

And each files in this holder are all in WAV format (maybe compressed i guess)

We just need to have a script to extract theses files and we have finished :D ! So cool !

Some .lit files example for aLuigi/GHFear :

https://we.tl/t-vXmwvd9qfa

aLuigi/GHFear, can you make a script for theses files, please ? :)

Like you can see, all WAV voices are named EXACTLY the same as the PC version.
When we will have the script to extract WAVs from LIT files, i just have to copy-paste on the PC version (everything is already done for tools for the PC version).
We are so close now ! I hope you can do something for theses LIT files :)

Again a big thanks for your work aLuigi.
  • Author
  • Localization

GHFear, posted Mon Apr 01, 2019 8:01 pm (46356)


it's weird that the extracted files are only 1GB and the archive is almost 4GB... I can't wrap my head around it.
  • Author
  • Localization

Tgames, posted Mon Apr 01, 2019 8:07 pm (46358)


GHFear wrote:
it's weird that the extracted files are only 1GB and the archive is almost 4GB... I can't wrap my head around it.


Yes indeed it's strange, i also saw that.

But don't worry, all i need are the Voices in WAV format.

To inject them in the PC version to have french voices.

Monolith only made a french version of the game for PS2.
And the PC port is english only :( !

Hopefully we have every tools to inject voice in 2 seconds in the PC port.
I just need thoses voices from the PS2. I pretty sure they are stored in theses LIT.

You think they are also in the LIT files ?


------------------------------------------------------------------------------------------

PS: Thanks to you, i finished the french translation of Dragon Lore Gold (V2.0)
All voices, all texts, all cutscenes are in french now ! It's nice because Dragon Lore Gold was a english only release !
I took the files from the V1.0, it's exactly same files, same names.
Just for people who want the french version (made thanks to GHFear) : https://mega.nz/#!z2An3IAa!1wiqgLEOA0UI ... LnZV844e2I
  • Author
  • Localization

GHFear, posted Mon Apr 01, 2019 8:20 pm (46360)


Tgames wrote:
GHFear wrote:
it's weird that the extracted files are only 1GB and the archive is almost 4GB... I can't wrap my head around it.


Yes indeed it's strange, i also saw that.

But don't worry, all i need are the Voices in WAV format.

To inject them in the PC version to have french voices.

Monolith only made a french version of the game for PS2.
And the PC port is english only :( !

Hopefully we have every tools to inject voice in 2 seconds in the PC port.
I just need thoses voices from the PS2. I pretty sure they are stored in theses LIT.

You think they are also in the LIT files ?


------------------------------------------------------------------------------------------

PS: Thanks to you, i finished the french translation of Dragon Lore Gold (V2.0)
All voices, all texts, all cutscenes are in french now ! It's nice because Dragon Lore Gold was a english only release !
I took the files from the V1.0, it's exactly same files, same names.
Just for people who want the french version (made thanks to GHFear) : https://mega.nz/#!z2An3IAa!1wiqgLEOA0UI ... LnZV844e2I


Oh it's already done? wow. :) That's really cool.

I don't know about the LIT files. Maybe there is something in there that could be extracted or used in some way. If you want, I can look at them tomorrow.
  • Author
  • Localization

Tgames, posted Mon Apr 01, 2019 8:23 pm (46361)


Yes already done thanks to you !

It's was very very fast because all files have same name in the V1.0.
So i just inject each of them in the Gold version.
And guess what it's work perfectly !

Yes please, look about theses No One Lives Forever Voices files in the LIT files, if you can extract them we have finished :).
Because in the PC port every files have same name. So exactly the same, i will just inject thoses voices in the PC port and "voila" ^^
For Zenhax viewers i will also send the final PC REZ file for No One Lives Forever with french voices injected when we have finished.

If it can helps you, here is a capture of voices files from No One Lives Forever PC Version.
They are named exactly the same on PS2

Image

Here is the [PC Port], NOLF REZ (just to compare maybe, for the PC version i use WinRez LT):
https://mega.nz/#!uvIkiYqK!_cyAbfaH6O9F ... bh1MOckJX4
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 8:23 am (46370)


I managed to read every voices in theses .LIT files.

1) Download PSounds
here :http://snailrush.online.fr/PSound/PSound201.zip

2) Open PSounds and go to "OPTIONS" -> "CONFIGURE"
Set "Sample Rate" to Force 16000Hz

3) Open Any .LIT files, and click "scan anyway" (it will first don't recognize the file then... magic every voices are viewable and readable !!! :O)

Can someone make a script to extract them ?

Now we are sure there are in theses files and we are able to read all of them !

Edit: Warning some WAV are not render in 16000Hz, you have to select "8000Hz" for some !

Edit 2: It seems lot of .LIT files are missing in the first extract of the LITH_PS2.REZ.
I only got the english voices in this export (it's seems !)

Edit 3: After first analyse :

- LITH_PS2.REZ is separated in 5 blocks :

1st block is english language only
2nd block is another language
3nd block is another language
4nd block is another language
5nd block is another language

The Script of aluigi only extract the 1st block (english only) for now.

The languages are (English/French/Deutsch/Espagnol/Italiano).

All .LIT files contains Sounds Effects and Voices.
In 1 .LIT file is always the same language (if the lit is french, we will have always french voices in this LIT).

LIT file contains multiple WAV file at different Sample Rate . In a same LIT file you can have 16000Hz, 10000hz, 8000hz... It's never the same Sample Rate.

Edit 4:

To aLuigi,

Indeed only 30% of the REZ file is extracted, lot of files are not extracted for now.

I have extracted myself some WAV Voices file from LIT files on the LITH_PS2.REZ.

Theses LIT files were not extracted with your script
It's some french voices.

https://we.tl/t-5CfPCVCnPN

If it can help.
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 11:17 am (46377)


I compressed to 7zip the "LITH_PS2.REZ" for aLuigi.

https://we.tl/t-4DTT772vdF

It's now only 1,40gb to download now ! For faster download.

I think you really need the file to found others blocks for the script.

Best Regards !
  • Author
  • Localization

GHFear, posted Tue Apr 02, 2019 3:23 pm (46381)


actually there are 506 different content tables with some slight differences in them in this file ".rez" lol... o_O
Now I am very confused hahahaha. So I will look at this some more, but I think aluigi will have to look at this one... I am very confused.
  • Author
  • Localization

aluigi, posted Tue Apr 02, 2019 3:37 pm (46382)


Indeed this format is very stupid.
I suspect it's a sort of patched format containing various versions of the TOC, in short the script may be perfectly correct.

I have updated the script for reading all the 506 TOCs, sorting the files and extracting those with different offsets.
It would take YEARS for sorting all those files (506 * 0x18d4).
Didn't check the whole archive, sorry.
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 3:49 pm (46385)


aluigi wrote:
Indeed this format is very stupid.
I suspect it's a sort of patched format containing various versions of the TOC, in short the script may be perfectly correct.

I have updated the script for reading all the 506 TOCs, sorting the files and extracting those with different offsets.
It would take YEARS for sorting all those files (506 * 0x18d4).
Didn't check the whole archive, sorry.


A big thanks for your hard work aluigi again !

But it now doesn't work at all.

I got an error at the beginning of the extraction :

Code:
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (Nov 25 2018 - 11:44:48)

                   quickbms.aluigi.org  Homepage
                            zenhax.com  ZenHAX Forum
                     @zenhax @quickbms  Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files
- open input file D:\Jeux\QuickBMS\REZ Unpacker\LITH_PS2.REZ
- open script D:\Jeux\QuickBMS\REZ Unpacker\nolf_ps2.bms
- set output folder D:\Jeux\QuickBMS\REZ Unpacker

  offset           filesize   filename
--------------------------------------

- error in src\extra\xalloc.c line 618: xdbg_malloc()

Error: memory allocation problem


Does this new BMS script will also extract .LIT files ?

It's look like "quickbms_4gb_files.exe" is not able allocate enough memory by xalloc function.
It's not mine memory, i have 16gb of memory ^^
  • Author
  • Localization

GHFear, posted Tue Apr 02, 2019 3:57 pm (46387)


Tgames wrote:
aluigi wrote:
Indeed this format is very stupid.
I suspect it's a sort of patched format containing various versions of the TOC, in short the script may be perfectly correct.

I have updated the script for reading all the 506 TOCs, sorting the files and extracting those with different offsets.
It would take YEARS for sorting all those files (506 * 0x18d4).
Didn't check the whole archive, sorry.


A big thanks for your hard work aluigi again !

But it now doesn't work at all.

I got an error at the beginning of the extraction :

Code:
by Luigi Auriemma
e-mail: [email protected]
web:    aluigi.org
        (Nov 25 2018 - 11:44:48)

                   quickbms.aluigi.org  Homepage
                            zenhax.com  ZenHAX Forum
                     @zenhax @quickbms  Twitter & Scripts

- GUI mode activated, remember that the tool works also from command-line
  where are available various options like folder scanning, filters and so on

- select BMS script. type ? for using the content of clipboard like a script
- select input archives/files, type * for the whole folder and subfolders
- select output folder where extracting files
- open input file D:\Jeux\QuickBMS\REZ Unpacker\LITH_PS2.REZ
- open script D:\Jeux\QuickBMS\REZ Unpacker\nolf_ps2.bms
- set output folder D:\Jeux\QuickBMS\REZ Unpacker

  offset           filesize   filename
--------------------------------------

- error in src\extra\xalloc.c line 618: xdbg_malloc()

Error: memory allocation problem


Does this new BMS script will also extract .LIT files ?

It's look like "quickbms_4gb_files.exe" is not able allocate enough memory by xalloc function.
It's not mine memory, i have 16gb of memory ^^


No it will not extract LIT files. LIT files seem to be headerless WAV files or something. So you won't be able to play them unless you run through some tool that rebuilds headers or something.
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 4:00 pm (46388)


GHFear wrote:
No it will not extract LIT files. LIT files seem to be headerless WAV files or something. So you won't be able to play them unless you run through some tool that rebuilds headers or something.


I found a tool to read them and rebuild the WAV header (PSound). It's work fine on most files.
But it's possible to just extract thoses headerlessWAV off the LIT files ? Like this i can have every headlerlessWav files separated to use with this software.

Have you been able to run the extract of the REZ now ? On my side i got a memory alloc error.
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 4:45 pm (46392)


I tried with another quickbms, still not working.
I got the "memory alloc error".
  • Author
  • Localization

GHFear, posted Tue Apr 02, 2019 5:10 pm (46393)


Tgames wrote:
I tried with another quickbms, still not working.
I got the "memory alloc error".


Yeah, weird. I get the same error.
  • Author
  • Localization

Tgames, posted Tue Apr 02, 2019 5:36 pm (46394)


Thanks for the test, we will wait the fix from aLuigi :)

Edit :

I just tested the 0.1.1.a.

For the moment i just have an empty screen who seems to load data... Maybe i have to wait i guess.

Image

Edit 1 :
After 25min.
For the moment, still a empty screen, QuickBMS seems to load something but nothing displayed on screen.
  • Author
  • Localization

aluigi, posted Tue Apr 02, 2019 11:01 pm (46399)


I'm 100% sure that they are 506 versions of the table and therefore the original script was correct.
The only thing would be understanding if table 0 or table 505 is the latest one.
In the meantime I'm going to revert the script to the original version.
  • Author
  • Localization

Tgames, posted Wed Apr 03, 2019 7:29 am (46413)


I found in your code what to change to only have french voices :

I changed "math EXTRACT_BLOCK = 0" by "math EXTRACT_BLOCK = 2"

and now i have every french voices !!! :D

So happy !!! :D

Code:
# No One Lives Forever 1 PS2 (rez) (script 0.1.2)

math EXTRACT_BLOCK = 2  # Only extract french voices

math ALIGN = 0x800
get DUMMY long  # 3
get FILES long
get DUMMY long  # 10
get DATA_OFF long
math DATA_OFF * ALIGN
get BLOCKS long

if EXTRACT_BLOCK    math EXTRACT_BLOCK = BLOCKS
   math EXTRACT_BLOCK - 1
endif

for BLOCK = 0    padding ALIGN
   for i = 0       get NAME_CRC long
      get OFFSET long
      get SIZE long
      get XSIZE long
      math OFFSET * ALIGN
      math XSIZE  * ALIGN
      if BLOCK == EXTRACT_BLOCK
         log "" OFFSET SIZE
      endif
   next i
next BLOCK


A huge huge thanks for your hard work aLuigi !!
Now i have every french files of the LITH_PS2.REZ.

Just a thing, it's possible for you to extract thoses .LIT files ?
In order to have every WAV separeted. And i will myself rebuild the header of each of them with PSound.
  • Author
  • Localization

aluigi, posted Wed Apr 03, 2019 3:08 pm (46423)


Great.
I didn't check the LIT files, if I have any result I will post in the topic in Audio
  • Author
  • Localization

raulpuro, posted Tue Jun 25, 2019 9:01 pm (49036)


Hi,

I have used the script for dragon lore gold and it works correctly, but I have a problem with a letter that is badly drawn in the font,
is it possible to modify the fonts of this game and the images of the menu?

I attach two files, but I'm not sure if they belong to the menu image and the fonts.


Greetings and thanks.
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.