#config-file #glacier #file-format #rpkg #hitman #moddng #game-archive

rpkg-rs

Parse Glacier ResourcePackage (rpkg) files, allowing access to the resources stored within

11 releases (4 stable)

1.1.2 Oct 21, 2024
1.1.1 Sep 7, 2024
1.1.0-rc.2 Aug 11, 2024
1.0.0-rc.1 May 1, 2024
0.1.5 Apr 21, 2024

#227 in Game dev

Download history 14/week @ 2024-07-26 172/week @ 2024-08-02 129/week @ 2024-08-09 14/week @ 2024-08-16 8/week @ 2024-08-23 5/week @ 2024-08-30 314/week @ 2024-09-06 85/week @ 2024-09-13 10/week @ 2024-09-20 64/week @ 2024-09-27 16/week @ 2024-10-04 2/week @ 2024-10-11 164/week @ 2024-10-18 15/week @ 2024-10-25 2/week @ 2024-11-01

183 downloads per month

Apache-2.0

165KB
3.5K SLoC

rpkg-rs

Maintenance CI crates-io api-docs

rpkg-rs provides functionality for interacting with ResourcePackage (rpkg) files found within Hitman games. This crate facilitates parsing of these files, enabling seamless access to the contained resource files. By parsing configuration files such as thumbs.ini and packagedefintion.txt, rpkg-rs offers extensive support for reading and manipulating these packages.

Features

  • Parse ResourcePackage (rpkg) files, allowing access to the resources stored within.
  • Utilize the included functionality to read configuration files like thumbs.ini and packagedefintion.txt.
  • Perform various operations on thumbs files, including setting new variables, modifying existing variables, adding new include files, and more.
  • Mount all rpkg files associated with a game, providing a unified interface for accessing game resources.
  • Access API methods to mount individual ResourcePartitions or ResourcePackages, allowing better control over resource access.

Supported File Formats:

  • ResourcePackage v1 (RPKG) files found in Hitman 2016 and Hitman 2.
  • ResourcePackage v2 (RPK2) files found in Hitman 3.
  • IniFile (thumbs.dat) files.
  • PackageDefinitions (packagedefinition.txt) from Hitman 2016, Hitman 2, and Hitman 3, with API support for adding custom parsers.

Future Plans

  • Alpha Format Support: Extend ResourcePackge support for the older alpha format, enabling extraction of alpha resources.
  • RPKG File Generation: Integration of support for generating rpkg files, allowing users to efficiently create and manage their resource packages within the rpkg-rs crate.

These upcoming features are designed to further solidify rpkg-rs as a comprehensive solution for interacting with Glacier game files.

Contributions

Bug reports, PRs and feature requests are welcome.

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details.

Dependencies

~5–7.5MB
~142K SLoC