Theme editor

Supporter bonus is liveDonate during this limited campaign to receive the advertised supporter incentive.
Limited-time supporter bonus View the deal

Sniffing XP3 files

  • Thread starter Thread starter kurgan
  • Start date Start date
  • Replies Replies 0
  • Views Views 565

kurgan

Registered
Lewd
Prestige 4
Prestige 5
Joined
Nov 28, 2023
Threads
2
Messages
504
Vouches
0
Likes
3,016
LewdCoins
⚡4,775
Donation coins
0
Platinum
0
adcoin
0
1/3
‎2 Years of Service‎
Thread owner
I have a Linux and I don't run any Windows emulator, but I wanted to take a look at the contents of some games posted here. I found some engines use the XP3 files. All the tools are available in code free portals, so I guess it's fine to share what I found here. They are created using reverse engineering, so no legal issues to share how to open these formats.

1) Unpacking XP3 file
I used xp3tools-udated

This is a python script, to run it, create a folder then:

python xp3-extract.py file.xp3 test

With some luck that will create tons of files in that folder. Between them are the audio track in .wav, music in .ogg and the pictures in tlg.

3) Converting TLG to PNG
For this step we need a tool called tpg2png. This is a legacy tool, but worked fine.

It provides binaries, but in Linux we need to compile. It says to run first the command, but in my case it was not necessary.
apt-get install libpng-dev

To compile it extract the downloaded source code and then do the following
mkdir build-dir cd build-dir cmake .. make

Once successfully compiled it can be use like this
./tlg2png 01.tlg 01.png
This tool processes a single file, so you will need to write a script to convert all the files.

(To MODs: If this kind of knowledge can't be shared here, I apologize and please delete the post)
 
Back
Top Bottom