Max Payne 2 *RAS ver 1.3

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
YAGAMI55
Posts: 55
Joined: Sun May 24, 2020 9:16 pm

Max Payne 2 *RAS ver 1.3

Post by YAGAMI55 »

Hello everybody. the other day I decided to sort out the resources of the game and ran into a problem. RASMaker does not unpack referring to archive version 1.30
Then I found a patch from СТРАХ-TEAM for archives 1.0
Found out that the patch just changes the version in the RASMaker itself as follows, float32
1.0 = 3f800000
1.2 = 3f99999a
1.3 = 3fa66666

But it didn't work, the program crashed)))

So I found the Ekey decryption code and it worked.

Then I remembered that Aluigi created a script to determine the type of .RAS archives
But the max_payne_ras.bms script didn't work with 1.3... hmm ... strange ... the algorithm is the same

Can anyone look at the archive and understand what the trouble is in aluigi's script?

RAS ver 1.3 from PS2

https://drive.google.com/file/d/1_ApBvx ... sp=sharing
YAGAMI55
Posts: 55
Joined: Sun May 24, 2020 9:16 pm

Re: Max Payne 2 *RAS ver 1.3

Post by YAGAMI55 »

Quick bms script max_payne_ras.bms log

Error: incomplete input file -2:
Can't read 4 bytes from offset 000001c5.
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 -2 100% 453 453 . offset 000001c5

Last script line before the error or that produced the error:
63 get DUMMY long MEMORY_FILE2

Press ENTER or close the window to quit


MPRASDecrypt for decrypt header by Ekey log

[0] : 0000021E (542) - Total Files
[1] : 00000013 (19) - Unknown Value
[2] : 0000484D (18509) - Table Size
[3] : 000001C5 (453) - Unknown Value
[4] : 3FA66666 (1067869798) - Unknown Value # Archive Version Float32-->1.3
[5] : 7E86CBFC (2122763260) - Unknown Value
[6] : 0D819E8F (226598543) - CRC for Decrypted Table
[7] : 2E51C2E5 (777110245) - Unknown Value
[8] : 00000004 (4) - Unknown Value
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Max Payne 2 *RAS ver 1.3

Post by aluigi »

I just updated the script:
http://aluigi.org/bms/max_payne_ras.bms

This RAS 1.3 has a simpler format than the previous versions.
YAGAMI55
Posts: 55
Joined: Sun May 24, 2020 9:16 pm

Re: Max Payne 2 *RAS ver 1.3

Post by YAGAMI55 »

aluigi wrote:I just updated the script:
http://aluigi.org/bms/max_payne_ras.bms

This RAS 1.3 has a simpler format than the previous versions.


Ooooo yeah!!!)))
Thanks aluigi :D
Works perfect now)

So. the version 1.3 nothing has, just a list of names . simple toc, but encrypted

understand now)