Batch Node.js tool to multiply modifier values in PDX game files. Save time, reduce error risk. Simple and practical solution.
Category
Tool
Status
Completed
GitHub Stats
Created
Jun 1, 2023
Last Updated
Jun 1, 2023
In this project, I developed a small Node.js tool to batch multiply specific modifier lines in PDX game files.
Individually updating modifier values is time-consuming and prone to errors. I solved the need to select only the relevant lines and safely change their numerical values, especially in long text files.
I set up the tool to read the input.txt file and process it line by line. It extracts comment lines and end-of-line remarks, multiplies numerical values by 3 for lines containing allowed keywords, and writes the result to output.txt. Lines containing forbidden keywords are left as is. On Windows, I can check for Node.js and re-run the application using program.bat.
The outcome is a simple yet practical editing tool that operates on a single file. I established a workflow that automates the output file generation, reducing manual modifier changes.
JavaScript, Node.js, Batchfile