Hitman (2016) *.RPKG files [REQUEST]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Ekey »

MemeGang wrote:Where did you get the hash list from? would it be possible to get the rest of the hashes?

From alpha version.
Godxon 1
Posts: 37
Joined: Sat Feb 13, 2016 8:52 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Godxon 1 »

So, we have unpacked files and for that I thank you very much. Working someone on repacking/packing?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

Reimporting via quickbms is supported by the script so you can try that solution.
BOTLANNER
Posts: 9
Joined: Mon Mar 14, 2016 8:12 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by BOTLANNER »

aluigi wrote:Is it so simple?

Code: Select all

idstring "GKPR"
get FILES long
get OFFSET long
get SIZE long
for i = 0 < FILES
    get HASH longlong
    get OFFSET longlong
    get SIZE long
    putarray 0 i OFFSET
next i
get OFFSET asize
putarray 0 i OFFSET
for i = 0 < FILES
    getarray OFFSET 0 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    encryption xor "\xdc\x45\xa6\x9c\xd3\x72\x4c\xab"
    log "" OFFSET SIZE
next


How would I test this?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

In no way because that script is old.

You need:
QuickBMS http://quickbms.aluigi.org
latest script http://aluigi.org/bms/hitman_2016.bms
Godxon 1
Posts: 37
Joined: Sat Feb 13, 2016 8:52 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Godxon 1 »

aluigi wrote:Reimporting via quickbms is supported by the script so you can try that solution.

It doesn't work. I will send you screenshot of the error later today...
BOTLANNER
Posts: 9
Joined: Mon Mar 14, 2016 8:12 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by BOTLANNER »

Ekey wrote:Here script for unpack with names. Lots of duplicates of files.


How do I use this with the .bms script?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

@Godxon 1
If you get an error related to the size of the files, that's normal and it's a limitation of the method.
Your modified files must be smaller/equal than the original (both their uncompressed and compressed size).

@BOTLANNER
Have you read what I wrote in the previous post?
Godxon 1
Posts: 37
Joined: Sat Feb 13, 2016 8:52 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Godxon 1 »

aluigi wrote:@Godxon 1
If you get an error related to the size of the files, that's normal and it's a limitation of the method.
Your modified files must be smaller/equal than the original (both their uncompressed and compressed size).


I don't get any error, it only show, that was reimported 0 files...
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

ok Luigi, i helped him make import working :)
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by MemeGang »

We so desperately need to figure out the other hashes :(
BOTLANNER
Posts: 9
Joined: Mon Mar 14, 2016 8:12 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by BOTLANNER »

aluigi wrote:@BOTLANNER
Have you read what I wrote in the previous post?


Yes, I am now just asking in a more general sense since whenever I have a bms script I tend to have a hash.list as well and after searching all over I still don't know how to use a hashlist
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

@id-daemon
thanks :)

@BOTLANNER
If you want to use the hashlist file provided by Ekey, open my script with a text editor and uncomment (remove the '#' char) the following line:
#namecrc NAME HASH "Hitman_Hashes.list" 64
BOTLANNER
Posts: 9
Joined: Mon Mar 14, 2016 8:12 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by BOTLANNER »

.
Thanks, on Reddit the first mod using this tool has been posted.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

MemeGang wrote:We so desperately need to figure out the other hashes :(


I don't think we will EVER have the other names.

I checked files, and as I can see, there are no names left there. Except maybe voice files where they are left by wwise engine as it sometimes happens.

Game doesn't need names to work. When it needs to show some object, it just has its hash, the hash of the material, texture, animation and everything else needed. So we can get this relation tree to maybe group the meshes with textures, but nothing more.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by AnonBaiter »

id-daemon wrote:Game doesn't need names to work. When it needs to show some object, it just has its hash, the hash of the material, texture, animation and everything else needed. So we can get this relation tree to maybe group the meshes with textures, but nothing more.

I agree. I'm satisfied with what I got with the extracted files.
SILENT_Pavel
Posts: 6
Joined: Sun Jul 19, 2015 11:43 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by SILENT_Pavel »

MemeGang wrote:All the WWEM files are Exporting as .wav, they should be .wem.
So, i've extracted 2110 wav files in WWEM folder from dlc0.rpkg of Hitman steam version from 11 March. If i will open this sound file, MPC displays error.
00005791.wav + 000057b8.wav + 00005794.wav
http://rghost.ru/7Psmd7Vpm

Code: Select all

Offset(d) 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15

00000000  52 49 46 46 D6 A9 4A 00 57 41 56 45 66 6D 74 20  RIFFЦ©J.WAVEfmt
00000016  42 00 00 00 FF FF 06 00 44 AC 00 00 E2 7C 00 00  B...яя..D¬..в|..
00000032  00 00 00 00 30 00 10 00 0F 06 00 00 A4 F4 66 00  ....0.......¤фf.
00000048  BC 00 00 00 14 A3 4A 00 00 00 9C 03 6C 06 00 00  ј....ЈJ...њ.l...
00000064  28 07 00 00 0F 03 9C 03 E8 41 00 00 90 43 00 00  (.....њ.иA..ђC..
00000080  03 DB 9C 07 08 0B 64 61 74 61 80 A9 4A 00 C0 42  .Ыњ...dataЂ©J.АB
00000096  25 30 00 40 13 2E 00 40 0E 2E 00 40 F2 2D 00 40  %0.@...@...@т-.@
00000112  0E 2E 00 40 0F 2E 00 40 38 2E 00 40 2E 2E 00 40  ...@...@8..@...@
00000128  63 2E 00 40 22 2E 00 40 F0 2D 00 40 00 2E 00 40  c..@"..@р-.@...@
00000144  1C 2E 00 40 03 2E 00 40 32 2E 00 40 29 2E 00 40  ...@...@2..@)..@
00000160  70 2E 00 40 16 2E 00 40 E3 2D 00 40 E3 2D 00 40  p..@...@г-.@г-.@
00000176  11 2E 00 40 D9 2D 00 40 C8 2D 00 40 E1 2D 00 40  ...@Щ-.@И-.@б-.@
00000192  D5 2D 00 40 03 2E 00 40 DF 2D 00 40 CC 2D 00 40  Х-.@...@Я-.@М-.@
00000208  AD 2D 00 40 CB 2D 00 40 9B 2D 00 40 B2 2D 00 40  .-.@Л-.@›-.@І-.@
00000224  79 2D 00 40 D1 2D 00 40 99 2D 00 40 14 2E 00 40  y-.@С-.@™-.@...@
00000240  DC 2D 00 40 41 2E 00 40 64 2E 00 40 D7 2E 00 40  Ь-.@A..@d..@Ч..@
Is it encrypted or they can be converted? Thanks.
UDP: solved
Last edited by SILENT_Pavel on Tue Apr 12, 2016 2:14 am, edited 1 time in total.
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by AnonBaiter »

SILENT_Pavel wrote:Is it encrypted or they can be converted? Thanks.

They can be converted. Use this tool for RIFF/FIFX vorbis files.
BOTLANNER
Posts: 9
Joined: Mon Mar 14, 2016 8:12 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by BOTLANNER »

id-daemon wrote:
MemeGang wrote:We so desperately need to figure out the other hashes :(


I don't think we will EVER have the other names.

I checked files, and as I can see, there are no names left there. Except maybe voice files where they are left by wwise engine as it sometimes happens.

Game doesn't need names to work. When it needs to show some object, it just has its hash, the hash of the material, texture, animation and everything else needed. So we can get this relation tree to maybe group the meshes with textures, but nothing more.


With Sapienza release tomorrow, there will be new files to extract, and we would need the other hashes for those textures and meshes.(How does a person even find a hash's name?)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by AnonBaiter »

With Sapienza release tomorrow, there will be new files to extract, and we would need the other hashes for those textures and meshes.(How does a person even find a hash's name?)

So you're suggesting we better find hashes like right now or else we're doomed? Thanks but I'll pass.