3DMark99Max(PC) - *.ras

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

3DMark99Max(PC) - *.ras

Post by AnonBaiter »

apparently these *.ras files found in the 3DMark99Max software can't work with the max_payne_ras.bms script
3dmark99max_ras.7z

also included as an attachment file is the exe of said software itself, packed into a .rar file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 3DMark99Max(PC) - *.ras

Post by aluigi »

It's the correct script but it doesn't have the additional 32bit field in the header. Since there is no version tag it's not possible to guess if this field exists or not.
Open the script with a text editor and:
- replace the 2 occurencies of 0x24 with 0x20 (lines 12 and 13)
- remove the "get DUMMY long" at line 20
Siberian GRemlin
Posts: 22
Joined: Tue Aug 02, 2016 7:46 am

Re: 3DMark99Max(PC) - *.ras

Post by Siberian GRemlin »

AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: 3DMark99Max(PC) - *.ras

Post by AnonBaiter »

aluigi wrote:It's the correct script but it doesn't have the additional 32bit field in the header. Since there is no version tag it's not possible to guess if this field exists or not.
Open the script with a text editor and:
- replace the 2 occurencies of 0x24 with 0x20 (lines 12 and 13)
- remove the "get DUMMY long" at line 20
yea
i did exactly that, tested the script with this new edit and this is what i got

Code: Select all

- the script needs to load a pre-compiled function from the dll or code
  MEMORY_FILE10
  do you want to continue with this and any other requested dll/code (y/N)?
  y
- library MEMORY_FILE10 loaded at address 0E680000
- function found at offset 0E680000

Error: incomplete input file 0: G:\UL_BENCHMARKS\3DMark99Max\data1\oem.ras
       Can't read 26164 bytes from offset 003393ab.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file 0    58%   1977189    3367998    . offset 003393ab

Last script line before the error or that produced the error:
  57  log FNAME OFFSET SIZE

this on the other hand is a patcher for at least two files out of Max Payne 2 Mod Tools so that RASMaker2.exe actually works with these *.ras archives
it kinda works however so i'll keep this one for now
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: 3DMark99Max(PC) - *.ras

Post by AnonBaiter »

anyhow, here's rlmfc.dll in case just the exe isnt enough
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 3DMark99Max(PC) - *.ras

Post by aluigi »

Script 0.3:
http://aluigi.org/bms/max_payne_ras.bms

Luckily a sample of max payne ras was available in the original topic on this forum (well done Ekey!) and I was able to implement a work-around for guessing the type of archive :)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: 3DMark99Max(PC) - *.ras

Post by AnonBaiter »

good enough
did you examine the dll i just posted here though? i just want to know if ekey's code is accurate compared to that plugin or something
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: 3DMark99Max(PC) - *.ras

Post by aluigi »

The script works perfectly and Ekey's decryption is correct, no need to waste time on a dll.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: 3DMark99Max(PC) - *.ras

Post by AnonBaiter »

oh
okay then