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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for theotown_plugin-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 37d1ed452643f68d9ce02019b7bc7bd1cfa371daad46e5019e7d00fa3ab3436a
MD5 5e3da6ff3c326e976ede4ad6fd52ef3d
BLAKE2b-256 a7a47a5d8b58549ae2948a77f59074f9fe9d5b9182ab404258f3d6828f356a78

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