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 .ttplugin 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. :)