A command-line utility for packing and unpacking SoulFu game data files (.sdf format).
This tool allows you to:
- Pack a directory of game assets into a single
.sdfdata file - Unpack an existing
.sdffile back into individual files - Handle various file types used by the SoulFu game with proper obfuscation
To compile the program, simply run:
makeThis will generate the executable sdp.
sdp [options]
| Option | Description |
|---|---|
-h |
Display help information |
-p |
Pack a directory into an SDF file |
-u |
Unpack an SDF file to a directory |
-i <path> |
Specify input path (directory for packing, SDF file for unpacking) |
-o <path> |
Specify output path (SDF file for packing, directory for unpacking) |
-n |
Convert \0 to LF and vice versa for text/SRC files (line ending conversion) |
- When packing (
-p): Input defaults tosfd/, output defaults todatafile.sdf - When unpacking (
-u): Input defaults todatafile.sdf, output defaults tosfd/
-
Pack a directory into an SDF file:
sdp -p -i my_assets/ -o game.sdf
-
Unpack an SDF file:
sdp -u -i game.sdf -o extracted/
-
Pack with line ending conversion for text files:
sdp -p -n -i assets/ -o data.sdf
- The tool creates the output directory when unpacking (fails if it already exists)
- Line ending conversion (
-nflag) only affectsTXTandSRCfile types - File names in the index are limited to 8 characters (plus 3-character extension)
- All numeric values in the index are stored in big-endian format
This tool is part of the SoulFu game project. See the game's documentation for licensing information.