ROM Hack Question How to unpack and repack *pak files which dragon quest 11 demo has ?

Falo

Well-Known Member
Member
Joined
Jul 22, 2012
Messages
680
Trophies
2
XP
2,628
Country
Germany
The Game uses Unreal Engine 4.18.3 "SDK MW+EpicGames+UnrealEngine-4_18_3", pak is Version 4.

The compression method in this game is 0x3 -> Oodle, but since it's version 4, UnrealPak.exe detects it as Zlib (because "(0x3 & 0x1) == 0x1").
The used Oodle compression is a little bit tricky, they reversed the compression tables and switched the big endian values to little endian.

Oodle is closed source (RAD Game Tools) and so it's up to the magic from aluigi (quickbms) to implement this custom algo.
 

Pokeytax

Member
Newcomer
Joined
Oct 4, 2014
Messages
12
Trophies
0
Age
41
XP
198
Country
United States
Bumping this thread with the game release. Seems to be using similar Oodle compression to the demo. QuickBMS will need a different library for Oodle to unpack the contents.
 

Pokeytax

Member
Newcomer
Joined
Oct 4, 2014
Messages
12
Trophies
0
Age
41
XP
198
Country
United States
The Game uses Unreal Engine 4.18.3 "SDK MW+EpicGames+UnrealEngine-4_18_3", pak is Version 4.

The compression method in this game is 0x3 -> Oodle, but since it's version 4, UnrealPak.exe detects it as Zlib (because "(0x3 & 0x1) == 0x1").
The used Oodle compression is a little bit tricky, they reversed the compression tables and switched the big endian values to little endian.

Oodle is closed source (RAD Game Tools) and so it's up to the magic from aluigi (quickbms) to implement this custom algo.

Thanks for the help, I'm looking at this and willing to do some work but can't figure it out. Are you sure it's Oodle? I know compression method is 0x3, yeah, but there's no Oodle header, and it looks bytewise which seems odd. A custom Oodle LZNIB/Selkie? I tried all the existing QuickBMS compression with no luck, it's definitely little-endian like you said.
 

Nevermore

Well-Known Member
Member
Joined
Jun 16, 2014
Messages
357
Trophies
0
XP
1,243
Country
United States
I can't get the extract to work... and I just realized as I was typing up this post, is my issue because the pak file is split up from when I dumped the Romfs?

upload_2019-10-9_21-2-39.png

Welp, redumping just the file, hopefully it stays intact.

EDIT: Yup, I'm a dum-dum, I just joined the two files, then ran the quick BMS and it worked flawlessly. Thank you.

Now I wonder how we can extract the texture files. JackGame\Content\UIs_common\Texture\Map has all the ingame maps.

Before I could use this UE Viewer set to Unreal 4.14 to open, but it doesn't work here :/
http://www.gildor.org/en/projects/umodel#files
 
Last edited by Nevermore,

Pokeytax

Member
Newcomer
Joined
Oct 4, 2014
Messages
12
Trophies
0
Age
41
XP
198
Country
United States
The Lizard/LZ5 compression should be out of the picture now, that was the compression format of the pak and now the files are decompressed. I think unfortunately it’s a UE Viewer issue (which I know little about). DQXI S probably runs on Unreal 4.15 or higher (one of the reasons for the game taking so long was updating from Unreal 4.13).

The original version of my bms script output some uncompressed files at 0 bytes, so that could also cause an issue.
 
Last edited by Pokeytax,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • a_username_that_is_cool @ a_username_that_is_cool:
    DDDS . Dual Developer Dedede System :)
    +1
  • BakerMan @ BakerMan:
    also happy birthday @Xdqwerty
    +1
  • BigOnYa @ BigOnYa:
    Is it me you're looking for?
  • MysticStarlight @ MysticStarlight:
    'Cause I wonder where you are
  • MysticStarlight @ MysticStarlight:
    wait I got the lyrics mixed up
    +1
  • BigOnYa @ BigOnYa:
    And I wonder what you do...Lol
  • BigOnYa @ BigOnYa:
    Its all good, I'm here to talk to you.
  • BigOnYa @ BigOnYa:
    Hello
  • BigOnYa @ BigOnYa:
    I've been playing fallout4 all day, I went into a elevator and it kept going, never stopped, waited 5 minutes, must of been a bug. How bout you, whatcha do today?
    +1
  • MysticStarlight @ MysticStarlight:
    I'm wondering why a stray tuxedo cat has a cloudy eye
  • MysticStarlight @ MysticStarlight:
    I've been playing TOTK all day also
    +1
  • MysticStarlight @ MysticStarlight:
    Oh you reminded me of those elevator nightmares
  • BigOnYa @ BigOnYa:
    Awesome game, fun how they force you to build, but you can build as you want
  • MysticStarlight @ MysticStarlight:
    It is super fun, I actually prefer it over BoTW
    +1
  • BigOnYa @ BigOnYa:
    The guy holding the sign always cracked me up, esp when you fail, and it falls
  • MysticStarlight @ MysticStarlight:
    Ah yes, that guy lol. I still need to find all his signs. The game has a lot to do though so I don't know what to finish first
  • MysticStarlight @ MysticStarlight:
    I'm 120 hours in and am still like 44.4% done
    +1
  • BigOnYa @ BigOnYa:
    Good times. Building is starting to get good around now for you. You making me want to make run thru again.
  • BigOnYa @ BigOnYa:
    Ok good chatting, enjoy your gaming, and avoid the lightning, or put your sword away. Good night.
  • K3Nv2 @ K3Nv2:
    All I gotta do is not spend $10 in the next 5 days and I'll break even this month lol
  • K3Nv2 @ K3Nv2:
    @BigOnYa, tell your wife not to forget her wallet
    +1
    K3Nv2 @ K3Nv2: https://youtu.be/YMAa6obDNZs?si=rymChLKeTdyS8nqk