This script is used to fix the IDs in a furnidata JSON file and optionally set the 'offerid' as the same value as the 'id' for each entry.
-
Download or clone the repository to your local machine.
-
Navigate to the project directory.
-
Place the
furnidata.json
file you want to fix in thefurnidata
directory within the project directory. -
Open a terminal or command prompt and navigate to the project directory.
-
Run the script using the following command:
python fixer.py
-
The script will prompt you to enter the starting ID. Please enter a numeric value to set the starting range for the IDs.
-
The script will then ask whether you want the 'offerid' to be the same as 'id' for each entry. Enter 'yes' or 'no' to choose.
- If you choose 'yes', the 'offerid' will be set as the same value as the 'id' for each entry.
- If you choose 'no', the 'offerid' will be set to -1 for each entry.
-
After processing the JSON file, the script will generate an updated
furnidata.json
file in therepaired
directory within the project directory. -
The script will display a success message indicating that the IDs have been fixed and the new
furnidata.json
file has been generated. -
You can find the updated
furnidata.json
file in therepaired
directory.
- The input
furnidata.json
file should be placed in thefurnidata
directory before running the script. - The script will create the
repaired
directory if it doesn't already exist. - Make sure you have the necessary read and write permissions for the directories and files involved.
This script was created by Gizmo.
Gizmo_1813 on Discord.