Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Neverwinter Nights: Enhanced Edition has been released! Visit to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

Trim unused resources from Haks?

A server I work with has recently transitioned to NWSync, which is working to great effect and we are very happy with.

Our understanding of the nwsync data is that resources are now stored on a per-resource basis and - for example should we use CEP and another NWsync server also use CEP - that data will not be downloaded again (assuming identical copies of the specific resource). In the past, our Hak files included the full CEP haks, even though we did not utilise the entire package, in order to save the need to re-download this content for players who already had the CEP.

Given out understanding of the anti-duplication above, the idea has therefore arise to strip the manifest of all such shared-data and only include the resources which the server actually uses. This will reduce the hak files, but additionally minimise the size (mb) and length (#of items) for the Manifest, which must be downloaded and parsed each time the server manifest updates.

I ask therefore whether a tool currently exists which can:
1: Identify all resources referenced within a Module
2: Compare this to a list of all resources in the associated hak files
3: and remove all resources not referenced from the hak?

or alternatively do any part of the above three.

I'm familiar with the work Niv has done on neverwinter_utils library, which seems like the starting point for items 1 and 2 perhaps? I have an amateur interest in learning nim myself, but it's a long way from being able to fully comprehend and adapt the tools if needed.

Thanks for any assistance that can be provided!

Sign In or Register to comment.