{"id":13337136,"url":"https://github.com/tw-tooling/tw-rule-generator","last_synced_at":"2025-03-11T04:31:34.261Z","repository":{"id":210054222,"uuid":"725606948","full_name":"tw-tooling/tw-rule-generator","owner":"tw-tooling","description":"create rules for tile replacement in Teeworlds maps","archived":false,"fork":false,"pushed_at":"2023-12-02T21:50:05.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T13:15:02.495Z","etag":null,"topics":["teeworlds"],"latest_commit_sha":null,"homepage":"https://tw-tooling.github.io/tw-rule-generator/tw-rule-generator.html","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tw-tooling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-30T13:56:34.000Z","updated_at":"2023-11-30T14:03:50.000Z","dependencies_parsed_at":"2023-12-02T00:28:22.913Z","dependency_job_id":"45df1244-f6a2-402a-af73-f4820597e538","html_url":"https://github.com/tw-tooling/tw-rule-generator","commit_stats":null,"previous_names":["tw-tooling/tw-rule-generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-rule-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-rule-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-rule-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw-tooling%2Ftw-rule-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tw-tooling","download_url":"https://codeload.github.com/tw-tooling/tw-rule-generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242972337,"owners_count":20215176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["teeworlds"],"created_at":"2024-07-29T19:11:13.587Z","updated_at":"2025-03-11T04:31:34.011Z","avatar_url":"https://github.com/tw-tooling.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Teeworlds Rule Generator\r\n\r\nThis Teeworlds Rule Generator is a web-based tool designed to create rules for tile replacement in Teeworlds game maps. It offers a simple interface to generate the rules.\r\n\r\nURL: https://tw-tooling.github.io/tw-rule-generator/tw-rule-generator.html\r\n\r\n\r\n## Features\r\n\r\nDynamic Rule Generation: Automatically generates rules based on user input for tile numbers.\r\n\r\nCustomizable Parameters:\r\n* Rule Name: Assign a unique name to each rule.\r\n* Tileset Name: The name of the tileset. Will be used for naming the downloadable file.\r\n* Base Tile: Select the tile number that will be replaced.\r\n* Border Tile: Choose the tile number for flat surfaces.\r\n* Corner Tile Outer: Specify the tile for outer (convex) corners.\r\n* Corner Tile Inner: Define the tile for inner (concave) corners.\r\n* Corner Tile Inlay: Assign the tile for inner (concave corners, that will be put in the empty space.\r\n\r\nCopy to Clipboard: Easily copy the generated rules to the clipboard for use in Teeworlds.\r\n\r\nDownload: Download the file that can be put into `.../data/editor/automap` to load the rules.\r\n\r\n\r\n## How to Use\r\n\r\n1. Input Parameters: Fill in the form with the desired tile numbers and rule name.\r\n2. Generate Rule: The tool automatically generates the rule script as you input values.\r\n3. Copy/Download Rule: Click the \"Copy Rule to Clipboard\" or \"Download\" button to use the rule in your Teeworlds map.\r\n4. Copy the file to `.../data/editor/automap` or paste the code into an existing file.\r\n\r\n\r\n## Python Version\r\n\r\nThere is also a [Jupyter notebook](tw-rule-generator-gradio.ipynb) version of the tool that can be run locally. It uses the [Gradio](https://gradio.app/) library to create an interface.\r\n\r\n\r\n## Acknowledgements\r\n\r\nThis tool utilizes Bootstrap for styling and JavaScript for its interactive features. It is intended for Teeworlds map creators and enthusiasts looking to enhance their map design process.\r\n\r\n\r\n### Helpful Rule References\r\n\r\n* Forum Post: https://www.teeworlds.com/forum/viewtopic.php?pid=92492\r\n* Forum Post: https://forum.ddnet.org/viewtopic.php?t=2428\r\n* Alternative Windows App with more options: https://github.com/ZonsaC/Teeworlds-Automapper\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw-tooling%2Ftw-rule-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftw-tooling%2Ftw-rule-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw-tooling%2Ftw-rule-generator/lists"}