Files
SabreTools.Serialization/README.MD

95 lines
5.2 KiB
Plaintext
Raw Normal View History

2023-09-10 20:29:36 -04:00
# SabreTools.Serialization
2024-12-06 11:42:22 -05:00
[![Build and Test](https://github.com/SabreTools/SabreTools.Serialization/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/SabreTools/SabreTools.Serialization/actions/workflows/build_and_test.yml)
This meta-library comprises of serializers that both read and write from files and streams to the dedicated models as well as convert to and from the common internal models. This library is partially used by the current parsing and writing code but none of the internal model serialization is used.
2023-09-10 23:33:41 -04:00
Find the link to the Nuget package [here](https://www.nuget.org/packages/SabreTools.Serialization).
2024-11-04 13:17:55 -05:00
## Releases
For the most recent stable build, download the latest release here: [Releases Page](https://github.com/SabreTools/SabreTools.Serialization/releases)
For the latest WIP build here: [Rolling Release](https://github.com/SabreTools/SabreTools.Serialization/releases/tag/rolling)
2025-07-31 11:08:11 -04:00
## InfoPrint
**InfoPrint** is a reference implementation for the deserialization and printing features of the library, packaged as a standalone executable for all supported platforms. It will attempt to detect and display information about many supported file types, optionally both hashing the file and outputting the information to a JSON file.
2025-07-31 11:08:11 -04:00
2025-09-26 15:33:38 -04:00
```text
2025-07-31 11:08:11 -04:00
InfoPrint <options> file|directory ...
Options:
-?, -h, --help Display this help text
2025-07-31 11:08:11 -04:00
-d, --debug Enable debug mode
-c, --hash Output file hashes
2025-09-28 21:47:37 -04:00
-f, --file Print to file only
2025-07-31 11:08:11 -04:00
-j, --json Print info as JSON
2026-05-21 10:38:38 -04:00
-r, --recursive Recursively print info from embedded files
2025-07-31 11:08:11 -04:00
```
2025-08-28 20:14:08 -04:00
## ExtractionTool
**ExtractionTool** is a reference implementation for the extraction features of the library, packaged as a standalone executable for all supported platforms. It will attempt to detect and extract many supported file types. See the table below for supported extraction functionality.
2025-09-26 15:33:38 -04:00
```text
ExtractionTool <options> file|directory ...
2025-08-28 20:14:08 -04:00
Options:
-?, -h, --help Display this help text
2025-08-28 20:14:08 -04:00
-d, --debug Enable debug mode
-o, --outdir [PATH] Set output path for extraction (required)
```
| Format Name | Notes |
| --- | --- |
| 7-zip archive | .NET Framework 4.6.2 and greater |
2026-03-07 21:27:11 -05:00
| Atari 7800 (A78) Cart Image | Header and ROM data |
2026-03-10 14:28:09 -04:00
| Atari Lynx (LNX) Cart Image | Header and ROM data |
2025-08-28 20:14:08 -04:00
| BFPK custom archive format | |
| bzip2 archive | .NET Framework 4.6.2 and greater |
2025-11-17 08:33:00 -05:00
| Compound File Binary (CFB) | Only CFB common pieces extractable |
2026-03-10 17:27:58 -04:00
| fwNES FDS file | Header and disk data |
2025-08-28 20:14:08 -04:00
| gzip archive | |
| Half-Life Game Cache File (GCF) | |
| Half-Life Level (BSP) | |
| Half-Life Package File (PAK) | |
| Half-Life Texture Package File (WAD3) | |
| Half-Life 2 Level (VBSP) | |
| InstallShield Archive V3 (Z) | |
2025-08-29 12:55:21 -04:00
| InstallShield CAB | |
| ISO9660 | ISO and BIN files |
2025-08-28 20:14:08 -04:00
| Microsoft cabinet file | Does not support LZX or Quantum compression |
| Microsoft LZ-compressed files | KWAJ, QBasic, and SZDD variants |
2025-11-03 09:27:57 -05:00
| MoPaQ game data archive (MPQ) | Windows only |
2025-08-29 12:55:21 -04:00
| New Exectuable | Embedded archives and executables in the overlay and Wise installer |
2026-03-07 11:32:47 -05:00
| Nintendo Entertainment System (NES) Cart Image | Header, Trainer data, PRG-ROM, CHR-ROM, Unheadered ROM, and PlayChoice-10 INST-ROM |
2025-08-28 20:14:08 -04:00
| NovaLogic Game Archive Format (PFF) | |
| PKZIP and derived files (ZIP, etc.) | .NET Framework 4.6.2 and greater |
2025-08-29 12:55:21 -04:00
| Portable Executable | Embedded archives and executables in the resources and overlay, CExe-packed data, SFX archives (7-zip, PKZIP, and RAR), and Wise installer |
2025-08-28 20:14:08 -04:00
| Quantum archive (Q) | Currently not working |
| RAR archive (RAR) | .NET Framework 4.6.2 and greater |
| SGA game archive | |
| Tape archive (TAR) | |
| Valve Package File (VPK) | |
| XBox Package File (XZP) | |
| Xbox DVD Filesystem (XISO) | |
2025-08-28 20:14:08 -04:00
| xz archive (XZ) | .NET Framework 4.6.2 and greater |
| ZArchive | |
2025-08-28 20:14:08 -04:00
## Namespaces
2023-10-25 15:04:22 -04:00
2026-03-21 16:34:52 -04:00
Below are a list of the included namespaces with links to their README files:
2026-03-21 16:34:52 -04:00
- [SabreTools.Data.Extensions](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Data.Extensions)
- [SabreTools.Data.Models](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Data.Models)
2026-03-24 19:17:25 -04:00
- [SabreTools.Metadata.DatFiles](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Metadata.DatFiles)
- [SabreTools.Metadata.DatItems](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Metadata.Datitems)
- [SabreTools.Metadata.Filter](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Metadata.Filter)
2026-04-20 14:03:49 -04:00
- [SabreTools.Metadata.Reports](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Metadata.Reports)
2026-03-21 16:34:52 -04:00
- [SabreTools.ObjectIdentifier](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.ObjectIdentifier)
- [SabreTools.Serialization.CrossModel](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Serialization.CrossModel)
- [SabreTools.Serialization.Readers](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Serialization.Readers)
- [SabreTools.Serialization.Writers](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Serialization.Writers)
- [SabreTools.Wrappers](https://github.com/SabreTools/SabreTools.Serialization/tree/main/SabreTools.Wrappers)