Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-10-2023, 13:32
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by dixen View Post
Test pakchunk6-WindowsNoEditor.pak
ofc CRC error because this library decrypts paks only, not re-encrypts them. Re-encryption of this game is not possible.
Reply With Quote
Sponsored Links
  #2  
Old 08-10-2023, 09:00
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
Welp
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Masquerade (08-10-2023)
  #3  
Old 03-03-2024, 04:13
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
XNB
Code:
[Stream1]
Name=xnb
Codec=xmemcompress
BigEndian=0
Signature=0x77424E58
Structure=Signature(4),XNBFormatVersion(1),Compressed(1),FileSize(4),DSize(4),Stream
CompressedSize=FileSize-14
DecompressedSize=DSize
Condition1=Compressed = 0x80
Requires XCompress plugin + correct configuration in xtool.ini.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Gehrman (18-07-2024)
  #4  
Old 28-04-2024, 19:14
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
hi, anyone have plugin or other method for Megaton Musashi W ? i try use unity plugin for *.bundle file but not work

thanks
Reply With Quote
  #5  
Old 28-04-2024, 22:29
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Sample
__________________
Haters gonna hate
Reply With Quote
  #6  
Old 28-04-2024, 22:32
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Sample
this is bro

Code:
https://pixeldrain.com/u/Ng8j3XAs
Reply With Quote
  #7  
Old 29-04-2024, 05:04
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
Either not compressed, crypted or something else. There is no unityfs header, so maybe this is the problem.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
kuyhaa (29-04-2024)
  #8  
Old 07-07-2024, 00:05
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
hi, anyone have plugin or database creator The Legend of Heroes: Trails through Daybreak

.p3a files

sample

Code:
https://pixeldrain.com/u/sFp3YTHU

Last edited by kuyhaa; 07-07-2024 at 00:16.
Reply With Quote
  #9  
Old 07-07-2024, 00:49
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,684
Thanks: 1,106
Thanked 7,331 Times in 2,834 Posts
KaktoR is on a distinguished road
I will quote masquerade, maybe he will tell you how to process this.

Quote:
A game came out called The Legend of Heroes Trails through Daybreak. They used ZSTD compression on the archives yet because they used dictionary based zstd, xtool can't detect the streams let alone process them.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
kuyhaa (07-07-2024)
  #10  
Old 07-07-2024, 05:18
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
^^
These p3a archives are made with dictionary ZSTD just like Zelda Tears of the Kingdom files.

You can rebuild the archives using p3a_tool and decide for no compression. If you decide on the zstd compression with p3a_tool, you still need to brute force a stream to figure out what version and settings for ZSTD were used.

I think there is more than one dictionary, they can be dumped from memory at runtime but that's about as far as I have got.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
kuyhaa (07-07-2024)
  #11  
Old 07-07-2024, 06:53
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
I cannot believe I was unbelievably stupid to not check the archives themselves for the dictionary. After looking more closely at the syntax for the p3a_tool, there is the option "info". So:

Code:
CMD> p3a_tool.exe info scene.p3a

PH3 archive scene.p3a: 916 files, v1200
Extended header available: 16 bytes, 304 bytes per index entry
compression stats: none:0 lz4:0 zStd:0 zStdDict:916
  compressed size:   89239105 (15%)
uncompressed size:  578417191
Has dictionary, 112640 bytes
From this info, we learn that the dictionary used in the archive scene.p3a is 112640 bytes in size.
The ZSTD dictionary compression format tells us that the magic number for a ZSTD dictionary is 0xEC30A437 (little endian).

So, by searching for this magic number in HXD, sure enough we have our dictionary beginning at location 0x44000 for scene.p3a. Next, select a block and set the length to the dictionary length from earlier - 112640 bytes.

Copy the select bytes and dump them to a new file, I called it scene.zdict.

Now, if you unpack scene.p3a with:

Code:
CMD> p3a_tool extract scene.p3a
and then run:

Code:
CMD> p3a_tool archive scene.MSQ scene --comp=zstd --dictionary=scene.zdict --
We yield a CRC identical P3A archive:

Code:
    File: scene.MSQ
  CRC-32: 04492de2
     MD5: b2c8a40571e8673ed3682df82544281d
   SHA-1: 95d40b6e693641ef8c7692531370fecd0378290c
  BLAKE3: 79c13b93a662d4789949c228e116a52ac10a47d91562bd39023a61cabd09d0ca

    File: scene.p3a
  CRC-32: 04492de2
     MD5: b2c8a40571e8673ed3682df82544281d
   SHA-1: 95d40b6e693641ef8c7692531370fecd0378290c
  BLAKE3: 79c13b93a662d4789949c228e116a52ac10a47d91562bd39023a61cabd09d0ca
So there you go, that's how to repack this game.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
kuyhaa (09-07-2024)
  #12  
Old 08-07-2024, 06:44
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
i have run HxD application and open the file, but i didn't understand

Quote:
So, by searching for this magic number in HXD, sure enough we have our dictionary beginning at location 0x44000 for scene.p3a. Next, select a block and set the length to the dictionary length from earlier - 112640 bytes.

Copy the select bytes and dump them to a new file, I called it scene.zdict.


by the way, thanks Masquerade for the information
Reply With Quote
  #13  
Old 08-07-2024, 10:32
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
^^
In HXD, CTRL+F to search for "37 A4 30 EC" as shown in the image below:



Why are they reversed? Endianness.

When you find your result, place your cursor on the "37" byte, change "hex" to "dec" at the top of the screen and press CTRL+E to select a block of data.

Select the radio button for length and paste the length of the dictionary in bytes that you found from the p3a_tool info.

You will now get a selected section of bytes. CTRL+C to copy and then CTRL+N to open a new file. CTRL+V to paste these bytes (they will appear in red) and CTRL+S to save the file. The bytes will go black when saved.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
kuyhaa (13-07-2024)
  #14  
Old 13-07-2024, 08:52
kuyhaa's Avatar
kuyhaa kuyhaa is offline
Registered User
 
Join Date: Jun 2019
Location: metro
Posts: 54
Thanks: 89
Thanked 8 Times in 4 Posts
kuyhaa is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
^^
In HXD, CTRL+F to search for "37 A4 30 EC" as shown in the image below:



Why are they reversed? Endianness.

When you find your result, place your cursor on the "37" byte, change "hex" to "dec" at the top of the screen and press CTRL+E to select a block of data.

Select the radio button for length and paste the length of the dictionary in bytes that you found from the p3a_tool info.

You will now get a selected section of bytes. CTRL+C to copy and then CTRL+N to open a new file. CTRL+V to paste these bytes (they will appear in red) and CTRL+S to save the file. The bytes will go black when saved.
found it, COOL Masquerade
Reply With Quote
  #15  
Old 24-12-2024, 05:30
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
The Legend of Heroes: Trails of Cold Steel III [v1.07] [LZ4HC]
  • Extract into XTool folder and use -mLoHToCSIII
Code:
xtool precomp -mLoHToCSIII I_MG08_CARD.pkg
XTool is created by Razor12911

Version 0.8.9

Streams: 2 / 2
Time: 00:00:11 (CPU 00:00:11)

Size: 15.2 MB >> 85.3 MB
The Legend of Heroes: Trails into Reverie [v1.1.5] [LZ4HC]
  • Extract into XTool folder and use -mReverie
Code:
xtool precomp -mReverie I_MG08_CARD.pkg
XTool is created by Razor12911

Version 0.8.9

Streams: 4 / 4
Time: 00:00:02 (CPU 00:00:05)

Size: 16.2 MB >> 48.0 MB
Merry Christmas
Attached Files
File Type: 7z Legend.of.Heroes.7z (945.8 KB, 36 views)
Reply With Quote
The Following 6 Users Say Thank You to Masquerade For This Useful Post:
Cesar82 (24-12-2024), mausschieber (25-12-2024), sathex (04-03-2025), ScOOt3r (24-12-2024), shazzla (24-12-2024), wareck (24-12-2024)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XTool 2020 (Main Project) Razor12911 Conversion Tutorials 713 01-06-2026 23:52
XTool - Successor of ZTool Razor12911 Conversion Tutorials 584 22-04-2023 18:16
[Dev]XTool Razor12911 Conversion Tutorials 180 23-10-2020 06:26
XTool 2019 (Plugins) Razor12911 Conversion Tutorials 50 16-05-2020 06:14



All times are GMT -7. The time now is 15:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com