View Single Post
  #12  
Old 28-11-2025, 06:59
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 wrote this config a few years ago and it still holds up for XNB titles (afair I used it on Terraria)

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 = 0x81
XNB files have a byte two bytes after the 4 byte magic which is always 0x81 if the data is compressed, I was using this to simply skip uncompressed data.

Beyond this, the real magic for xcompress streams lies in xtool.ini and the parameters that get passed to the exe file.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Wanterlude (29-11-2025)