Getting started

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Forum rules
This forum is for tutorials and documentation about creating TheoTown content.

Replies should be about the topic itself: questions, clarifications, corrections, or examples of how you used it. Feature requests and ideas for extending a feature belong in the Suggestions forum and will be moved there. For general problems with your plugin, please use Plugin Help.

New tutorials are welcome.
Previous topicNext topic
User avatar
blueflower
Site owner
Reactions:
Posts: 38
Joined: 19 Dec 2017, 21:41
Plugins: Showcase Store

Getting started

Post by blueflower »

Last updated: 21 Nov 2026

TheoTown has extensive features for creating plugins. This topic collects the tutorials and documentation so you can quickly find what you need.


1. Before publishing

Every Plugin Store submission is reviewed against the Plugin Store Rules, and plugins that don't meet them are rejected. Plugins for your own use don't need to be published: you can install them locally (see section 2).

πŸ“‹ Plugin Store Rules
πŸ“— Copyright

Self-check before submitting
  • It's your own work, or you have permission to use it. Giving credit is not enough.
  • It fits the game's style: isometric perspective and scale, clean pixel art, light from the left, muted colors.
  • It's more than a recolor or a small edit of an existing building.
  • If you used AI for graphics, you declare it, and the result still meets the style above.
  • It displays correctly in all city rotations, and you tested it in the game.
  • All IDs are unique, it doesn't depend on other plugins, and the minimum version is set.
  • It's balanced compared with similar in-game buildings.
  • Title, description and preview image show exactly what players get.
Simple, unfinished or low-effort plugins and color-only changes are rejected.


2. Installing plugins locally

To test a plugin, open the region view, then the game menu, then File manager β†’ plugins, and import your files. The FAQ lists the game folder locations for each platform.


3. JSON

Creation
πŸ“— How to create a small building in 10 steps
πŸ“— How to write a plugin
πŸ“‹ Advanced tags for building plugins
🎬 How to make a json with Json Genie

Animation
πŸ“— Advanced smoke types
πŸ“˜ Date dependent animations
πŸ“˜ Custom animations
πŸ“˜ Lights/Night Animations
πŸ“™ Saving plugin space using Animations
πŸ“™ People animation
πŸ“™ Firework

Transportation
πŸ“˜ Roads
πŸ“˜ Higher level bridges (requires prior knowledge of roads and bridges)
πŸ“˜ Cars
πŸ“˜ Tunnels
πŸ“˜ Car chains
πŸ“˜ Airplanes
πŸ“˜ The ACTUAL tutorial on flags
πŸ“™ Road decoration
πŸ“™ Bus stops
πŸ“™ Pedestrians
πŸ“™ Helicopter
πŸ“™ Res/ind car identification
πŸ“™ Determining vehicle direction on roads
πŸ“• Transportation System Extension

Upgrades & requirements
πŸ“™ Upgrades
πŸ“™ Enabling and Disabling Your RCI Spawning

Override
πŸ“— Explicit plugin overriding
πŸ“˜ Custom water
πŸ“˜ Override background

Security
πŸ“— Create a .ttplugin file (plugin encryption)
πŸ“— Hide id
🎬 How to Add a Hidden Signature

Translation
πŸ“— Inline translations
πŸ“˜ External translations

Misc
πŸ“˜ Custom loading texts/topics
πŸ“˜ Categories
πŸ“˜ Templates
πŸ“˜ Themes
πŸ“— Preview Frames
πŸ“• Compositions
πŸ“• Non-square buildings
πŸ“• Biomes
πŸ“ Fences
πŸ“— Heightmaps
πŸ“‹ Writing plugin.manifest files


4. Behavior via Fun

Fun is simple but quite limited, so we recommend Lua for anything non-trivial.

πŸ“™ Fun basics
πŸ“™ Functionality using fun
πŸ“™ Variables
πŸ“™ Animation control
πŸ“™ Notifications
πŸ“™ Date dependent fun condition
πŸ“™ Weather manipulation
πŸ“™ Sound with Fun
πŸ“‹ Virtual Variables
πŸ“‹ Action Index
πŸ“‹ Condition Index


5. Lua scripting

πŸ“• How to use Lua scripts
πŸ“• GUI Compendium
πŸ“• Dark mode compatible UI
πŸ“• Drawing basics
πŸ“• Saving data persistently
πŸ“• Real time script editing
πŸ“• Plugin settings
πŸ“ Tree Planter Tool Example
πŸ“ GUI example in Plugin Creator Tools
πŸ“‹ Lua API reference


6. Shaders (GLSL)

πŸ“• Custom Shaders (incomplete)


7. Graphics

Creation
πŸ“˜ A visual guide for shadows, shading, depth and noise
πŸ“˜ How to draw winter graphics
πŸ“˜ Creating a quality house plugin
πŸ“™ How to create a plugin
🎬 How to apply textures to surfaces in Pixly

Resources
πŸ–ΌοΈ World texture
πŸ–ΌοΈ Game JSON files and assets
πŸ–ΌοΈ Building templates


8. Legend

πŸ“—πŸ“˜πŸ“™πŸ“• Text tutorials by difficulty: beginner, intermediate, expert, extreme
πŸ“ Snippets or examples
πŸ“‹ Lists and references
πŸ–ΌοΈ Images and resources
🎬 Videos

Thanks to everyone who helped create these tutorials and documentation.
Previous topicNext topic