A simple PowerShell script that use repak, KDiff3 and AESDumpster to merge configs
Permissions and credits
Credits and distribution permission
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
GPL-3.0 license
File credits
Alan Paradis, GHFear for AESDumpster, Truman Kilen for repak, Joachim Eibl for KDiff3, DaPutzy for mod conflict detection script
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Fixed KDiff3 error with ini mod that don't have base
Fixed gamepass version detection
Version Vortex-v1.4
Fixed issues cause by the conversion to .exe
Version 1.5.9
Fixing minor issues due to type and some better logging
Version 1.5.8
Fixed KDiff3 error with ini mod that don't have base
Version 1.5.7
Fixed GamePasss compatibility
Version 1.5.6
Added a yes to all for deleting empty paks
Version 1.5.5
Fixed crashes
Version 1.5.4
Add GamePass support for directory picker
Version 1.5.3
Prevent the merger from merging files that don't exist
Version 1.5.2
Fixed AesDumpster and repack command
Reimplement the conflicting file deletion
Version 1.5.1
Fixed path related issues Fixed wrong path for "pakchunk0-Windows" and wrong folder chosen when files have the same name
Version 1.5
Fixed long path issue and merging with previous merge
Version 1.4.13
Fixed duplicated variable
Version 1.4.12
Rename merged mod name Renamed merged mode name from "zzzzzzzzzz-MERGED_MOD" to "zzzzzzzzzz_MERGED_MOD"
Version 1.4.11
Fixed mod backup creation
Version 1.4.10
Fixed mod repacking Fixed mod repacking which repacked with the conflicting file still inside
Version 1.4.9
Fix GamePass executable name
Version 1.4.8
Switching to a mod named base merge toa fixed named one No longer call the merge by the mod merged in but now every merge will be called "zzzzzzzzzz-MERGED_MOD"
Version 1.4.7
Use C:\S2SMM as a temporary directory to avoid hitting the limit of 256 char for a path
Version 1.4.6
Fix trailing "\" This should avoid path like C:\S.T.A.L.K.E.R. 2 Heart of Chornobyl\Stalker2\Content\Paks\\pakchunk0-Windows\
Version 1.4.5
Avoid name accumulation when remerging mods Ex: When merging mod0.pak and with ZZZZZ_mod0_mod1_merged.pak it will keep this name instead of ZZZZZ_mod0_mod1_merged_mod0_ZZZZZ_mod0_mod1_merged.pak
Version 1.4.3
Allow merging from multiple conflicting files and mods
Version 1.4.1
Add a prompt before deleting empty files
Version 1.4
Add the ability to merge only the conflicting files instead of merging everything
Version 1.3.1
Allow merging from multiple conflicting files and mods
For a version with an EXE go on Github as NexusMods will automatically quarantine exe
UTILISATION :
Backup manually your mods before doing anything
Double clic on the shortcutRun SMM
Wait for the script to download repak, KDiff3 and AESDumpster
Select the folder containing Stalker2.exe
The program will try to get the key for you game using AESDumpster, you have also the choice to enter the key manually
The will then analyze you mods to finds conflict
The script will then ask you if you want to try a manual merge or an auto merge first or skip and quit
Then the script will ask you if you want to merge only conflicting files or not
If you chose to only merge conflicting files : you should keep all the .pak (The script will ask you if you want to deletes those empty)
If you chose not to only merge conflicting files : the merged .pak will be place in a ~backup folder as .bak files. You can delete .bak files if you want to
What the difference ? Merging everything makes less files and easier roll back but will cause more merge down the line if you want to update your mods. Merging only conflicting files make you have to keep a lot of paks but it will cause less merge when updating a mod.
You can choose to skip the conflict, merge it with KDiff3 interface manually, or let KDiff3 try to merge automatically
Your merged mod will be backup in a ~backup folder and named .bak
Troubleshooting :
THE KEY CANNOT BE DUMPED FROM THE GAMEPASS VERSION, only entering it manually should work
You may need to be admin or to have the right to run script on your computer for it to work properly
Once obtained your AES Key will be saved in key.txt, delete this file if you need to change your key
If you have trouble with the folder picker, create a gamepath.txt and manually past your game path
If the script is not running try changing your execution policy with Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
You can manually download repak, KDiff3 and AESDumpster if the download is not working and place them next to the ps1 file in a 'AESDumpster' folder, a 'KDiff3-0.9.98' folder and a 'repak_cli-x86_64-pc-windows-msvc' folder