SebastianRZSN / JSON-Habbo-Catalog-Generator

The Habbo Catalog Generator automates catalog creation for Arcturus Morningstar. The scripts offer options to generate the entire catalog or specific components like clothing, items, walls, and pages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

♛ JSON Habbo Catalog Generator ♛

The Habbo Catalog Generator automates catalog creation for Arcturus Morningstar. This user-friendly tool offers options to generate the entire catalog or specific components such as clothing, items, walls, and pages. It provides instant generation of queries and is accessible for users with minimal experience.

Instructions

  1. Place the furnidata.json file: Insert a furnidata.json file into the furnidata folder.

  2. Run the python generator.py script: Execute the generator.py script to access the catalog generation interface.

Available Scripts

  1. Catalog Clothing: Generates SQL queries for clothing items to populate the catalog_clothing table.

  2. Catalog Items: Generates SQL queries for items to populate the catalog_items table.

  3. Wall Catalog Items: Generates SQL queries for wall items to populate the catalog_items table.

  4. Catalog Pages: Generates SQL queries for catalog pages to populate the catalog_pages table.

  5. Items Base: Generates SQL queries for general items to populate the items_base table.

  6. Wall Items Base: Generates SQL queries for wall items to populate the items_base table.

Running the Generator

The Habbo Catalog Generator provides two interface options:

  1. Generate Catalog: Executes all the scripts located in the scripts folder to generate the catalog data. Before running this option, configure the correct ID ranges in each script file based on your furnidata.json.

  2. Run Specific Script: Allows you to run a specific script individually. This option provides a list of available scripts, and you can select the script you want to run.

Setting up the Catalog from Scratch

If you are creating a catalog from scratch, follow these steps to ensure a smooth catalog creation process:

  1. Check the "database" folder in the root directory for a SQL file called catalog_pages.sql. This file contains all the default pages required for a catalog to function correctly.

  2. Import the catalog_pages.sql file into your database management system (e.g., MySQL) to create the necessary tables and populate them with the default catalog pages.

  3. Verify that the tables and catalog pages are successfully imported into your database.

  4. Proceed with the catalog generation process using the instructions provided above.

  5. After generating your items_base queries and running them in your database, please check the "database" folder for the following SQL files and run them in your database: "interaction_type_defaults.sql," "items_base_default_values.sql," and "multiheight_defaults.sql." It is important to note that these SQL files are not fully completed and may not be entirely accurate. However, they do offer a reliable foundation for fixing furniture until mid-2023.

Note

Please note that you need to have a properly formatted furnidata.json file for this script to work correctly. If you need assistance in formatting the furnidata.json file, you can use the JSON Furnidata Formatter tool available on GitHub. This tool is specifically designed to format furnidata.json files, ensuring correct JSON syntax and proper formatting. Follow the instructions provided in the tool's repository to format your furnidata.json file using the tool.

Additionally, make sure to configure the script files properly before executing them to ensure the generated queries match your furnidata.json file.

If you have any updated versions of the SQL files mentioned (e.g., "interaction_type_defaults.sql," "items_base_default_values.sql," and "multiheight_defaults.sql"), please feel free to send them to me. I would be more than happy to incorporate them and improve the accuracy of the provided SQL queries.

Credits

This collection of scripts was created by Gizmo.

Donate

If you wish to donate, please contact Gizmo#1813 on Discord.

About

The Habbo Catalog Generator automates catalog creation for Arcturus Morningstar. The scripts offer options to generate the entire catalog or specific components like clothing, items, walls, and pages.

License:MIT License


Languages

Language:Python 100.0%