PZConfigHelper is a PHP tool designed to generate mod lists for Project Zomboid from a specified directory structure. It scans directories to create lists of mod IDs and workshop items, and saves these lists to text files.
Clone the repository to your local machine:
git clone https://github.com/Valgorithms/PZConfigHelper.git
Navigate to the project directory:
cd PZConfigHelper
Install dependencies using Composer:
composer install
Run the script with the --path
option to specify the directory containing the mods:
php example.php --path='D:\\SteamLibrary\\steamapps\\workshop\\content\\108600'
This will generate three files in the current working directory:
Mods.txt
: Contains a list of mod names.WorkshopItems.txt
: Contains a list of workshop item IDs.Both.txt
: Contains a combined list of mod names and workshop item IDs.
You can also use the PZConfigHelper
class in your own PHP scripts. Here is an example:
require_once 'vendor/autoload.php';
use PZConfigHelper\PZConfigHelper;
$path = 'D:\\SteamLibrary\\steamapps\\workshop\\content\\108600';
$helper = new PZConfigHelper($path);
// Manually regenerate the lists
$helper->generateModLists($path);
// Save the lists to files
$helper->saveToFile(getcwd());
// Access the generated lists directly
echo $helper->mods;
echo $helper->ids;
echo $helper->both;
This project is licensed under the MIT License. See the LICENSE file for details.
Valithor Obsidion [email protected]