This guide will walk you through the process of setting up and using the Schedule 1 Modify Tool to modify your Schedule 1 game save files using Git for version control.
Before we start, ensure you have the following installed:
-
Git
Git is a version control system that allows you to clone the repository and manage changes.- After installing, verify that Git is installed by running the following command in your terminal or command prompt:
git --version
- After installing, verify that Git is installed by running the following command in your terminal or command prompt:
-
Node.js (v22 or later)
Node.js is a JavaScript runtime required to run the project. It also comes with npm (Node Package Manager), which is used to install dependencies.- To check if Node.js is installed, run:
node -v
- To check if Node.js is installed, run:
-
Visual Studio Code (VS Code)
This is an editor used to open and edit project files.
Now that you have Git installed, you can clone the repository to your local machine.
-
Open a terminal (Command Prompt or PowerShell on Windows, Terminal on macOS/Linux).
-
Navigate to the folder where you want to store the project (for example, your Desktop).
-
Run the following command to clone the repository from GitHub:
git clone https://github.com/cptcr/schedule-one-tool.git
This will create a folder named
schedule-one-toolcontaining all the project files.
- Open Visual Studio Code (VS Code).
- Click File > Open Folder and select the
schedule-one-toolfolder that was created when you cloned the repository.
Once the project is open in VS Code, you need to install the required packages (dependencies) for the tool to work.
-
Open the Terminal in VS Code by clicking on Terminal > New Terminal.
-
In the terminal, make sure you're inside the
schedule-one-toolfolder (the folder containingpackage.json). -
Run the following command to install the necessary dependencies:
npm install
This command will install all the required packages listed in the
package.jsonfile.
The tool is written in TypeScript, so you need TypeScript and ts-node to run the TypeScript files.
-
In the Terminal, check if TypeScript and ts-node are installed by running:
tsc -v ts-node -v
-
If TypeScript or ts-node is not installed, install them globally by running:
npm install -g typescript ts-node
Now that everything is set up, you can run the tool!
-
In the Terminal inside VS Code, run the following command:
npx ts-node src/index.ts
This will execute the index.ts file, and you will be prompted with various options to modify your Schedule 1 save files.
The tool will allow you to modify the game's save files based on the options presented to you. Here's an example of how the tool works:
- The tool will first ask you to provide the path to your Schedule 1 save folder.
- Then, it will show you a list of available accounts and allow you to select one.
- After selecting an account, it will show you the SaveGames available for that account (e.g., SaveGame_1, SaveGame_2, etc.).
- Next, you'll be asked to choose an option to modify, such as:
- Modify Business
- Modify Balance
- Modify Internal Law Intensity
- Based on your selection, you can make changes to specific JSON files, such as modifying the balance, setting businesses as owned, or adjusting the law intensity.
If you want to keep your project up-to-date with changes from the original repository, you can pull the latest updates using Git.
-
In the Terminal, make sure you're in the project directory (
schedule-one-tool). -
Run the following command to pull the latest changes from the repository:
git pull origin main
This will download and apply any changes made in the original repository to your local project.
-
Missing Packages or Errors During Installation:
If you encounter issues duringnpm install, make sure you're connected to the internet and try again. -
TypeScript Errors:
Ensure that yourtsconfig.jsonfile is set up correctly. If TypeScript is not compiling, you may need to install it globally using the command provided earlier. -
Running the Tool:
If you see any errors when runningnpx ts-node src/index.ts, make sure you're in the correct directory and all dependencies are installed.
-
Git: Git is used to track changes and update your local copy of the project. You don't need to worry about it for now unless you want to contribute changes to the project.
-
Backup Your Save Files: Always back up your Schedule 1 save files before making any modifications.
-
ts-node: This tool allows you to run TypeScript files directly, without manually compiling them into JavaScript.