[Help] Repacking Torchlight 2 .mod files.

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
StaticSaltByte
ultra-n00b
Posts: 1
Joined: Wed Oct 16, 2019 9:06 am

[Help] Repacking Torchlight 2 .mod files.

Post by StaticSaltByte »

I’m trying to reverse-engineer the packing format Torchlight 2 uses for .mod files. For some reason the developers designed the game to only allow 10 mods to be installed at once. I’m trying to put together a tool that can automatically combine mods to get around this restriction.

The .mod format is reasonably well understood and documented at the fan wiki, but there are 4 unknown bytes in the .pak section of .mod files that are stopping me from getting it working. Unlike other unknown bytes that seem to have a “magic value,” these bytes prevent Torchlight 2 and its modding tool GUTS from opening it because it is “corrupt” or “doesn’t have files”.

In an attempt to find a pattern, I exported information of a few mods (694) to a spreadsheet. However, the values of the unknown bytes all arbitrarily range from min (0) to max (255). My best guess is it’s a CRC32 value (similar to the CRC32 in the .pak.man section) but so far I haven't been able to match it to anything.

It’s also worth noting that if I create two different mods from scratch using GUTS that have identical files, the unknown bytes will be identical between the two mods. But if I add, move, or modify any of the files then the unknown bytes change.

Any help would be greatly appreciated.
Awkward
ultra-n00b
Posts: 1
Joined: Wed Oct 07, 2020 12:19 pm

Re: [Help] Repacking Torchlight 2 .mod files.

Post by Awkward »

Is any progress since year?
Post Reply