Page 1 of 6

Getting started

Posted: 04 Jun 2017, 22:32
by Lobby
TheoTown has extensive features which allow the creation of powerful plugins. However, with the vast amount of tutorials and documentations
created it could be hard to find what you are looking for. This topic was created to help you quickly find what you need. :)

‼️ Copyright (Read this before publishing plugins for the first time)
Copyright is a serious thing. Obey copyright rules or you will get punished! :fire
πŸ“— Copyright

Installation
🎬 Installing plugins in the New Way (1.9.95+)

:json JSON
Creation
πŸ“— 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
πŸ“˜ Night Animations
πŸ“™ Saving plugin space using Animations
πŸ“™ People animation
πŸ“™ Firework

Transportation
πŸ“— Higher level bridges (Note: Will need prior knowledge of bridges)
πŸ“˜ Roads
πŸ“˜ Cars
πŸ“˜ Tunnels
πŸ“˜ Car chains
πŸ“˜ Airplanes
πŸ“˜ The ACTUAL tutorial on flags
πŸ“™ Road decoration
πŸ“™ Pedestrians
πŸ“™ Helicopter
πŸ“™ Change in res/ind car identification
πŸ“™ Determining vehicle direction on roads

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

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

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

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

Misc
πŸ“˜ Categories
πŸ“˜ Templates
πŸ“˜ Custom zones
πŸ“— Preview Frames
πŸ“• Compositions
πŸ“• Biomes
πŸ“ Fences
πŸ“‹ JSON
πŸ“‹ Writing plugin.manifest files

Behavior via Fun
It's simple but also quite limited; we therefore recommend to use Lua instead for non-trivial tasks.
πŸ“™ Fun basics
πŸ“™ Functionality using fun
πŸ“™ Variables
πŸ“™ Animation control
πŸ“™ Notifications
πŸ“™ Date dependent fun condition
πŸ“™ Weather manipulation
πŸ“™ Sound with Fun
πŸ“‹ Virtual Variables
πŸ“‹ Action Index
πŸ“‹ Condition Index

:lua: Lua Scripting
πŸ“• How to use Lua scripts
πŸ“• GUI Compendium
πŸ“• Drawing basics
πŸ“• Saving data persistently
πŸ“• [792] Real time script editing
πŸ“• [1.8.95] Plugin settings
πŸ“ Tree Planter Tool Example
πŸ“ GUI example in Plugin Creator Tools
πŸ“‹ Lua API reference

:glsl OpenGL Shading Language (GLSL)
πŸ“• [1.10.50] Custom Shaders (Incomplete)

:img Graphics
Creation
πŸ“— How to create a small building in 10 steps
πŸ“˜ A visual guide for shadows, shading, depth and noise
πŸ“˜ Shadows & templates (The above tutorial is recommended instead)
πŸ“˜ 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
πŸ–ΌοΈ JSON
πŸ–ΌοΈ Tree graphics
πŸ–ΌοΈ Building templates

Legend:
πŸ“—πŸ“˜πŸ“™πŸ“• Textual, increasing difficulty. (beginner, intermediate, expert, extreme).
πŸ“ Snippets or examples.
πŸ“‹ Lists.
πŸ–ΌοΈ Images.
🎬 Video.

Special thank you to everyone who help creates tutorials and documentations. :)

Re: Getting started

Posted: 29 Aug 2019, 20:07
by Sparkle8538
...continued to 5. Graphics
Part 3. Advanced
πŸ“—Preview frames (by Sparkle8538)

Legend:
🎬 Video.
πŸ“— Beginner.
πŸ“˜ Intermediate.
πŸ“™ Expert.
πŸ“• Extreme.
πŸ–ΌοΈ Images.
πŸ“‹ Lists.
πŸ”’ Reusing certain content without permission/credit from/to a plugin creator may result in punishment.

Re: Getting started

Posted: 29 Aug 2019, 21:46
by CommanderABab
Zikomo.

Re: Getting started

Posted: 07 Sep 2019, 01:32
by KINGTUT10101
Is there no custom zone tutorial?

Re: Getting started

Posted: 18 Sep 2019, 05:14
by Deedzkie23
How to upload plugin if i am not allowed to upload here on forum? I am just a newbie here.

Re: Getting started

Posted: 27 Oct 2019, 17:46
by Lobby
It should work now.

Re: Getting started

Posted: 30 Nov 2019, 11:06
by Ilya strigo
Как ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ Π΅Π»Π΅ΠΊΡ‚Ρ€ΠΎ ΡΡ‚Π°Π½Ρ†ΠΈΡŽ
(ΠŸΠΎΠΊΠ°Π·Π°Ρ‚ΡŒ ΠΊΠΎΠ΄Ρ‹ для Π΅Π»Π΅ΠΊΡ‚Ρ€ΠΎ станции)

Re: Getting started

Posted: 24 Jan 2020, 06:01
by RayXP
Is there any videos on how to do animations?

Re: Getting started

Posted: 30 Jan 2020, 18:35
by 1Code
KINGTUT10101 wrote: ↑
07 Sep 2019, 01:32
Is there no custom zone tutorial?
πŸ“˜Custom zones (by CommanderABab)

Re: Getting started

Posted: 01 Feb 2020, 07:10
by 1Code

Re: Getting started

Posted: 02 Feb 2020, 03:46
by Bearbear76
I don't know if it's significant enough to be on the list.

Re: Getting started

Posted: 09 Feb 2020, 16:13
by Yakka
Please Add Night Animation Tutorial I Need it

Re: Getting started

Posted: 10 Feb 2020, 03:45
by Bearbear76
Kiki012 wrote: ↑
09 Feb 2020, 16:13
Please Add Night Animation Tutorial I Need it
Ok... added.

Re: Getting started

Posted: 20 Feb 2020, 01:59
by hihihihi
How to make decals??

Re: Getting started

Posted: 20 Feb 2020, 11:36
by Bearbear76
hihihihi wrote: ↑
20 Feb 2020, 01:59
How to make decals??
Do you mean road decorations or just decorations?

Re: Getting started

Posted: 20 Feb 2020, 19:39
by CommanderABab
I think he means ground decorations like Josh made.

Re: Getting started

Posted: 21 Feb 2020, 00:13
by Bearbear76
CommanderABab wrote: ↑
20 Feb 2020, 19:39
I think he means ground decorations like Josh made.
I use this as a template for ground plugins.

Code: Select all

  ...
  "type":"ground",
  "border frames":[{"bmp":"frame.png","w":32,"h":15, "count":16, "handle y":8}],
  "edge border frames":[{"h":16,"handle x":0,"handle y":3,"w":32,"x":0,"y":320}],
  "edge frames":[{"count":12,"h":48,"w":16,"x":0,"y":96}],
  ...

Re: Getting started

Posted: 21 Feb 2020, 01:52
by hihihihi
Ølsken wrote: ↑
21 Feb 2020, 00:13
CommanderABab wrote: ↑
20 Feb 2020, 19:39
I think he means ground decorations like Josh made.
I use this as a template for ground plugins.

Code: Select all

  ...
  "type":"ground",
  "border frames":[{"bmp":"frame.png","w":32,"h":15, "count":16, "handle y":8}],
  "edge border frames":[{"h":16,"handle x":0,"handle y":3,"w":32,"x":0,"y":320}],
  "edge frames":[{"count":12,"h":48,"w":16,"x":0,"y":96}],
  ...
THXS :bc :bc :bc :bc :bc

Re: Getting started

Posted: 22 Feb 2020, 08:43
by Yakka
Please add Influence tutorial

Re: Getting started

Posted: 22 Feb 2020, 11:53
by Bearbear76
Kiki012 wrote: ↑
22 Feb 2020, 08:43
Please Add This Tutorial
How to Make train Plugin(By: Kiki012)
viewtopic.php?f=35&t=10975
That's not a tutorial, there's no teaching aspect in there.

That's like me saying this is how you do derivatives:

\(\frac{\mathrm{d} }{\mathrm{d} x} tan(sin(x^2)) = sec^2(sin(x^2)) \cdot cos(x^2) \cdot 2x\)

Instead it should have some teaching aspects such as:

First understand the power rule.

\(\frac{\mathrm{d} }{\mathrm{d} x} x^n = nx^{n - 1}\)

Then learn how to differentiate trig functions.

\(\frac{\mathrm{d} }{\mathrm{d} x} tan(x) = sec^2(x)\)

\(\frac{\mathrm{d} }{\mathrm{d} x} sin(x) = cos(x)\)

Then, use the chain rule (differentiate from outside to inside):

\(\therefore\frac{\mathrm{d} }{\mathrm{d} x} tan(sin(x^2)) = sec^2(sin(x^2)) \cdot cos(x^2) \cdot 2x\)

why math? idk just felt like it. :)