0 of 0

File information

Last updated

Original upload

Created by

icouldifiwantedto

Uploaded by

icouldifiwantedto

Virus scan

Safe to use

Tags for this mod

About this mod

A windows batch script to check whether any of the mods in your ~mods folder need to be merged because they contain localization (language) files.

Permissions and credits
Changelogs
Versions

See the "Changelogs" dropdown just above.

Introduction

Some mods need to be "merged" using the Hogwarts Mod Merger program. But which ones? It's reasonably well-known that mods which change the SQL database need to be merged. What's less well-known is that mods containing localization (language) files also need to be merged.

The reason these mods need to be merged is because they edit the game's langauge data stored in the MAIN-enUS.bin file. But the game can only hold one copy of this file, so if more than one mod tries to import an edited version of it, whichever one loads last will overwrite all of the others. The solution is to apply the changes from all your mods to a single copy of the file and then load that into the game. That is exactly what the Hogwarts Mod Merger program does. But before you use it you need to know which files need merging.

This script figures that out by unpacking every .pak file (except the ones with an associated .utoc file, because those are a different type of mod) to see if there's a copy of the MAIN-enUS.bin file inside. If there is, it will list that .pak file in red.

Or to put it another way:
Some mods contain the PhoenixShipData.sqlite SQL database. Some mods contain the MAIN-enUS.bin language file. Some mods contain both. You need to merge all the mods that contain either PhoenixShipData.sqlite or MAIN-enUS.bin or both into a single zMergedMods.pak file by loading them all into Hogwarts Mod Merger at the same time. If you've previously merged some you don't need to merge them from scratch, you can just merge any new ones with your old zMergedMods.pak file.


Installation

  • Download the mod.
  • Extract the ModLocalizationChecker.bat file and the MANIFEST folder into your
    Steam\steamapps\common\Hogwarts Legacy\Phoenix\Content\Paks\~mods\ folder.
  • Make sure the ModLocalizationChecker.bat file and the MANIFEST folder didn't end up in
    Steam\steamapps\common\Hogwarts Legacy\Phoenix\Content\Paks\~mods\Phoenix\Content\Paks\~mods\ by mistake!
    If they did, move them to
    Steam\steamapps\common\Hogwarts Legacy\Phoenix\Content\Paks\~mods\
    and delete the unnecessary
    Steam\steamapps\common\Hogwarts Legacy\Phoenix\Content\Paks\~mods\Phoenix folder.
Usage - Easy Methods

Either:

  • Double click ModLocalizationChecker.bat in Windows Explorer.
 Or:

  • Drag & drop ModLocalizationChecker.bat from Windows Explorer to your desktop while holding ALT.
  • That will create a shortcut. Feel free to rename it.
  • Double-click the shortcut to run the batch file.
Usage - Harder Method

1) Open a cmd window.
2) Go to your ~mods folder.
3) Run ModLocalizationChecker.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) and 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, there are three pak files in my ~mods folder (or sub-folders thereof) that need to be merged. I need to remove all three of these pak files from my ~mods folder and merge them into a singe zMergedMods.pak file using Hogwarts Mod Merger. That merged file should be the only one in the ~mods folder when I run the game.

How to Un-Install

Just delete ModLocalizationChecker.bat from your ~mods folder. You can also delete the MANIFEST folder unless you've installed my Pak Chunk Checker or Mod Merger Checker mod(s), in which case leave MANIFEST alone or you'll break those mods.

Known Issues

The following are known issues. If you encounter any others let me know in the POSTS section.

  • Result: pakchunk30(UETools) failed to unpack - This is nothing to worry about. UETools does not contain MAIN-enUS.bin.
  • This script will only look for the MAIN-enUS.bin file. It will not look for other language files. That's because Hogwarts Mod Merger can only merge English language files.