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.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for theotown_plugin-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8090d0325f79b58dd8da7ceba5bb658ad6f1404277bfcf4b6ec5d55f26982ccd
MD5 db16a46aaa66f4d5bcc9b2464222b78c
BLAKE2b-256 ea17e2d8b72d14863c078c6163e76023df6c43e76a5f2878bb1bbd8583da1ec1

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