RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

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: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by Ekey »

conisdon wrote:okay i know this is off topic but i cant find anything on the internet and this is gunna get seen at least instead of posting on a dead post, has anyone got the re7 mesh.32 importer script or plugin whatever i need to import the models in?

http://forum.xentax.com/viewtopic.php?p=147501#p147501
extrme_sports
Posts: 40
Joined: Thu Jan 31, 2019 10:36 am

Please share the RE2 REMAKE PAK TOOL OR BMS SCRIPT

Post by extrme_sports »

Please share the RE2 REMAKE PAK TOOL OR BMS SCRIPT
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Please share the RE2 REMAKE PAK TOOL OR BMS SCRIPT

Post by Ekey »

extrme_sports wrote:Please share the RE2 REMAKE PAK TOOL OR BMS SCRIPT

Read topic in next time > viewtopic.php?p=42260#p42260
FluffyQuack
Posts: 8
Joined: Thu Feb 07, 2019 1:44 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by FluffyQuack »

Some files I discovered:

Code: Select all

4276567739 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_10_iam.tex.10
1009783370 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_17_iam.tex.10
1099822316 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_19_iam.tex.10
1066615369 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_20_iam.tex.10
997285612 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_47_iam.tex.10
2213997593 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_48_iam.tex.10
3451546688 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_49_iam.tex.10
2703171987 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_52_iam.tex.10
4052630212 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_53_iam.tex.10
2764238604 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_56_iam.tex.10
4203477326 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_60_iam.tex.10
3233135966 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_61_iam.tex.10
2382700333 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_68_iam.tex.10
152993830 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_69_iam.tex.10
2397797525 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_72_iam.tex.10
2888895986 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_74_iam.tex.10
2452952128 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_75_iam.tex.10
1811804475 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_76_iam.tex.10
4238592161 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_77_iam.tex.10
3634980507 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_78_iam.tex.10
2843793379 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_79_iam.tex.10
4219021676 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_80_iam.tex.10
63938658 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_82_iam.tex.10
2877999619 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_83_iam.tex.10
509135541 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_84_iam.tex.10
2322584572 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_85_iam.tex.10
3317825423 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_86_iam.tex.10
1794532140 natives/x64/sectionroot/ui/ui3200/tex/ui3210_file_89_iam.tex.10
Nemesisbg23
Posts: 1
Joined: Sun Feb 10, 2019 11:59 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by Nemesisbg23 »

Hi sorry for bothering and bumping an old thread but Anything new on the list ?

or still nothing xD
george_sears
Posts: 13
Joined: Fri Jul 28, 2017 11:03 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by george_sears »

Today RE2 got an update with Ghost Survivor mode, some new content like new cosmetics and gear, new enemies. Hook won't work anymore, needs to be updated for new logs and lists being able to be created
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by Ekey »

Hook and list is updated.
MrCreamy
Posts: 2
Joined: Fri Jan 18, 2019 11:23 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by MrCreamy »

Captured more DLC assets.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by Ekey »

MrCreamy wrote:Captured more DLC assets.

Thanks.
george_sears
Posts: 13
Joined: Fri Jul 28, 2017 11:03 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by george_sears »

Ekey wrote:
MrCreamy wrote:Captured more DLC assets.

Thanks.


Thank you for updated hook and new lists!
zero
Posts: 11
Joined: Tue Jan 29, 2019 8:02 am

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by zero »

MrCreamy wrote:Captured more DLC assets.



Hi mate thanks for your hard work.

Earlier on today there was an update on the pak files. one more was added as 2nd patch.

now the bms script does his job on everything but the main pak


the bigger pack got updated and now it crashes bms here is the crash

Image

any info would be really appreciated thanks
zero
Posts: 11
Joined: Tue Jan 29, 2019 8:02 am

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by zero »

Woops it was meant for ekey. thanks
AndehX
Posts: 1
Joined: Sat Feb 23, 2019 6:38 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by AndehX »

I have the same issue. Latest update has broken the script
MrCreamy
Posts: 2
Joined: Fri Jan 18, 2019 11:23 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by MrCreamy »

Captured more assets, mostly unused.
GHOST DEAD
Posts: 218
Joined: Wed Jul 19, 2017 5:04 am

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by GHOST DEAD »

zero wrote:Hi mate thanks for your hard work.

Earlier on today there was an update on the pak files. one more was added as 2nd patch.

now the bms script does his job on everything but the main pak


the bigger pack got updated and now it crashes bms here is the crash

Image

any info would be really appreciated thanks


Ekey, i think last update has a new compression type in main archive (re_chunk_000.pak), because i have same problem, can you check it?
FluffyQuack
Posts: 8
Joined: Thu Feb 07, 2019 1:44 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by FluffyQuack »

Here's some info about why the bms script ends up with an error with the patched PAK archive.

There was an unused Chris Redfield model among game assets, and Capcom released a small patch which removes those files from the main PAK archive. They "removed" these assets by editing the corresponding entires in the file entry list in the PAK archive.

These are the entries they changed:

Code: Select all

4188504230 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1277206426 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3030150209 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3114770353 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
4214057499 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1622751807 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1644753559 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3543921928 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
4212135015 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2786891068 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1944429385 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3421796144 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2604296574 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3366545223 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3755318512 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
606623237 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3724821708 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
598784071 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1068718672 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2752192551 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
954017413 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1335611325 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_alp1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_wetmask_msk1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_alp1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_alb.tex.10 (compSize: 37, realSize: 80, flag: 2049, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_emi.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_blend_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_intensity_msk4.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_wetmask_msk1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_atos.tex.10 (compSize: 37, realSize: 80, flag: 2049, offset: 788448223, unk2: 216820001, unk4: 3435973836)


They made all of those entries point to the file data of natives/x64/systems/rendering/nullwhite.tex.10

But the flag data for the edited entries is weird. It signifies ZSTD compression but nullwhite.tex is compressed using deflate. This is what's causing quickbms to stop the extraction due to decompression failing.

I don't know enough about the bms script language to know if it's possible to make it skip a file which fails decompression rather than stopping the entire process.
MuslimCyberGames
Posts: 220
Joined: Sun Nov 06, 2016 3:28 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by MuslimCyberGames »

And how to import/repack data again that we have extracted with some data that we have edited???
moiennepe
Posts: 11
Joined: Tue Feb 26, 2019 7:14 am

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by moiennepe »

FluffyQuack wrote:Here's some info about why the bms script ends up with an error with the patched PAK archive.

There was an unused Chris Redfield model among game assets, and Capcom released a small patch which removes those files from the main PAK archive. They "removed" these assets by editing the corresponding entires in the file entry list in the PAK archive.

These are the entries they changed:

Code: Select all

4188504230 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1277206426 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3030150209 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3114770353 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
4214057499 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1622751807 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1644753559 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3543921928 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
4212135015 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2786891068 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1944429385 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3421796144 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2604296574 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3366545223 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3755318512 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
606623237 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
3724821708 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
598784071 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1068718672 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
2752192551 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
954017413 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
1335611325 (compSize: 37, realSize: 80, flag: 3074, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_alp1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body02_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_wetmask_msk1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_alp1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_body01_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_alb.tex.10 (compSize: 37, realSize: 80, flag: 2049, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5400/pl5400_codexpro_emi.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_blend_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_intensity_msk4.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_face_atos.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5450/pl5450_wetmask_msk1.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_albm.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_nrmr.tex.10 (compSize: 37, realSize: 80, flag: 2050, offset: 788448223, unk2: 216820001, unk4: 3435973836)
natives/x64/sectionroot/character/player/pl5400/pl5470/pl5470_hair_atos.tex.10 (compSize: 37, realSize: 80, flag: 2049, offset: 788448223, unk2: 216820001, unk4: 3435973836)


They made all of those entries point to the file data of natives/x64/systems/rendering/nullwhite.tex.10

But the flag data for the edited entries is weird. It signifies ZSTD compression but nullwhite.tex is compressed using deflate. This is what's causing quickbms to stop the extraction due to decompression failing.

I don't know enough about the bms script language to know if it's possible to make it skip a file which fails decompression rather than stopping the entire process.


This's my way to deal with the pak from f*tgirl repack (some "optional" components not installed and filled with zeros in the main pak)

math FLAG &= 0xF

log MEMORY_FILE OFFSET 8
get isZo longlong MEMORY_FILE
if isZo == 0
math FLAG = 0
endif


check the content and reset the flag. May be useful to some of you.
ginseng
Posts: 1
Joined: Sat Apr 13, 2019 3:54 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by ginseng »

moiennepe wrote:This's my way to deal with the pak from f*tgirl repack (some "optional" components not installed and filled with zeros in the main pak)

math FLAG &= 0xF

log MEMORY_FILE OFFSET 8
get isZo longlong MEMORY_FILE
if isZo == 0
math FLAG = 0
endif


check the content and reset the flag. May be useful to some of you.


I am having some trouble with this, would you mind telling me how to properly add this?

thank you!
infinitaguy
Posts: 1
Joined: Mon Apr 22, 2019 6:19 pm

Re: RESIDENT EVIL 2 / BIOHAZARD RE:2 "1-Shot Demo" .pak

Post by infinitaguy »

I modified the bms script like suggested here:
moiennepe wrote:This's my way to deal with the pak from f*tgirl repack (some "optional" components not installed and filled with zeros in the main pak)

math FLAG &= 0xF

log MEMORY_FILE OFFSET 8
get isZo longlong MEMORY_FILE
if isZo == 0
math FLAG = 0
endif


check the content and reset the flag. May be useful to some of you.

But I still get an error at the same position.
Image
Heres the entire script I used:
idstring "KPKA"
get VERSION long
get FILES long
get DUMMY0 long

for i = 0 < FILES
get NAME_CRC_L long
get NAME_CRC_U long
get OFFSET longlong
get ZSIZE longlong
get SIZE longlong
get FLAG longlong
get DUMMY2 long
get DUMMY3 long
namecrc NAME NAME_CRC_L "re2_pak_names_release.list" 32

math FLAG &= 0xF

log MEMORY_FILE OFFSET 8
get isZo longlong MEMORY_FILE
if isZo == 0
math FLAG = 0
endif

if FLAG == 0
log NAME OFFSET SIZE
else if FLAG == 1
comtype deflate
clog NAME OFFSET ZSIZE SIZE
else if FLAG == 2
comtype zstd
clog NAME OFFSET ZSIZE SIZE
else
log NAME OFFSET SIZE
endif
next i

Did I do something wrong here? Is there a fix?