glacier-modding / RPKG-Tool

The RPKG tool allows for easy (un)packing of files from the Glacier Engine RPKG file format! Hitman 3 has the most support.
https://glaciermodding.org/rpkg/
Other
47 stars 9 forks source link

[BUG] Loading RPKGs fails #68

Closed atampy25 closed 1 year ago

atampy25 commented 1 year ago

Describe the bug Loading RPKGs immediately crashes the (CLI) application. This is reproducible for all users if loading the dynamic resources RPKG, but for some users is reproducible for all RPKGs.

To Reproduce

(can't be more specific)

Expected behavior The CLI doesn't crash.

RPKG tool version: Issue introduced by c3910c729f6ef4eee853816b2a5fe603c3d4009a.

Hitman Version: H3, but not sure if this matters.

Notexe commented 1 year ago

The issue seems to be related to the filename's length if it's 25 characters or more (30 if you count the extension) randomname123456789123456.rpkg will cause rpkg-cli to crash while randomname.rpkg will work fine