Skip to main content

Plugin Editor for TheoTown (Unofficial)

Project description

JSON Plugin Generation Project

This project allows generating custom JSON files for plugins using Python. It is ideal for creating plugin configurations with detailed metadata and customization options.

Requirements

  • Python 3.x
  • Standard modules: uuid, json

Installation

Clone the repository or download the files directly:

git clone https://github.com/SrBolilloStudios/theotown_plugin_editor.git
cd your-repository

Usage

Generate a UUID

The project automatically generates a unique UUID:

import uuid
uuid = uuid.uuid4()
print(uuid)

Create a Manifest

The manifest function allows creating a JSON manifest with the following parameters:

manifest(id_: str, version: float, title: str, platforms, text: str, autor: str, thumbnail: str)

Example:

json_data = manifest("plugin-1", 1.0, "Sample Plugin", "Windows", "Plugin description", "Author", "url/thumbnail.png")
print(json_data)

Create a Plugin JSON

The json_plugin function allows creating a detailed JSON for a plugin with custom parameters:

json_plugin(id: str, type: str, autor: str, width: int, height: int, frame: int, smoke_add: bool, smoke_id: Optional[int] = None, smoke_positions: Optional[int] = None, level: int = 0)

Example with smoke:

plugin_data = json_plugin("plugin-2", "building", "Author", 10, 15, 1, True, 5, [3, 4])
print(plugin_data)

Contribution

Contributions are welcome. You can fork the project and submit a pull request.

License

This project is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

theotown_plugin-0.0.5-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file theotown_plugin-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for theotown_plugin-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e0db8b7d6dfdbc5ddb055e788e790d12d9b71c517c06536ed14da0cd403f8d
MD5 8aebc854837f89ccb6fe6c5e9be61207
BLAKE2b-256 917bac8e1bfb9ad04e9b39a33798ce3ece9a58e8fcb0695f5e93d728e24af98e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page