PakChunk Checker
A windows batch script to check whether any of the mods in your ~mods folder use the same pakchunk. Please update to v2.0!
Public Service Announcement
If you downloaded version 1.0 or 1.1 please upgrade to version 2.0.
Version 1.0 had a bug where old manifests weren’t being deleted (so conflicts with mods that had subsequently been deleted were still being reported).
Introduction
There’s already a Chunk ID Conflict Manager to resolve pakchunk conflicts, but I didn’t want to resolve conflicts. I just wanted to check whether the mod I’d just created conflicted with any of the mods I already had. So I created this batch script to check. It doesn’t resolve any conflicts, it just tells you if there are any.
Installation
Download the mod and unzip the contents into your Steam\steamapps\common\Hogwarts Legacy\Phoenix\Content\Paks\~mods folder.
There will be a batch file called PakChunkChecker.bat and a folder called MANIFEST.
Usage
1) Open a cmd window.
2) Go to your ~mods folder.
3) Run PakChunkChecker.bat
In other words do what you see in the image below (but amend it to reflect the location of your ~mods folder). In my case the ~mods folder is on my D: drive so I have to change drive (using the “d:” command) then cd to the right folder. If your ~mods folder is on your C: drive you won’t need to change drives.
As you can see in the above example the zBPApparate_P mod (Blueprint Apparate Modloader) conflicts with pakchunk102-WindowsNoEditor (which is the mod I just created). They both have the same PackageID (which is a hashed copy of the pakchunk number). If two mods have the same PackageID then they must have been cooked using the same pakchunk number.
We can’t usually tell what pakchunk was used (because the hash function can’t be reversed) but in this case we can tell (from the filename, and because I just created it) that pakchunk102-WindowsNoEditor used pakchunk 102 so the zBPApparate_P mod must have also used pakchunk 102. I must therefore use a different pakchunk for my mod.
My zMySLowMo-103_P mod also conflicts with pakchunk103-WindowsNoEditor (which is an earlier version of the same mod which I hadn’t bothered to rename and forgot to delete).
Use the Chunk ID Conflict Manager to resolve conflicts between mods that you haven’t created.
How to Un-Install
Just delete PakChunkChecker.bat from your ~mods folder. You can also delete the MANIFEST folder unless you’ve installed my Mod Merger Checker, in which case leave MANIFEST alone or you’ll break that mod.
Known Issues
This script only searches your ~mods folder (and one level down in the sub-folders), but mods placed one folder up from there (i.e. in the Paks folder) will also be loaded into the game and won’t be found by this script. If you’ve put any mods in your Paks folder you should move them to your ~mods folder.
Acknowledgements
Thank you to Menv for UEcastoc, which my script uses to generate the manifests.