Advanced smoke types

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Advanced smoke types

Post by Lobby »

As mentioned here you can add one or multiple smoke sources to your plugin. The definition to use smoke might look like

Code: Select all

"smoke":[{"id":"$smoke07","x":13,"y":-14}]
Where tags x and y define the relative position of the smoke source. Tag id defines which smoke object to use. We also defined the following smoke objects for you:
  • $smoke00
    Image
  • $smoke01
    Image
  • $smoke02
    Image
  • $smoke03
    Image
  • $smoke04
    Image
  • $smoke05
    Image
  • $smoke06
    Image
  • $smoke07
    Image
  • $watervapor00
    Image
  • $qualm00
    Image
The preview is just for impression. The animated version in the game might differ in size and frame count. Most of the smokes don't make sense for a chimney on a normal house. We encourage you to use either $smoke06 or $smoke07 for this purpose.
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced smoke types

Post by Bearbear76 »

Lancaster Kingdom wrote: 27 Sep 2017, 22:55 Can you explain more about x and y? How do I get the smoke in the bottom of the building that's possible? I'm reading all the tutorials. :)
This thread should help you
http://www.theotown.com/forum/viewtopic.php?f=42&t=4147
Just my opinion
retired
User avatar
AntarcticTreay
Villager
Reactions:
Posts: 16
Joined: 07 Nov 2019, 06:06
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by AntarcticTreay »

Can smoke be added to a train?
If the short answer is yes, what would it be like?
STEAM 1.png
Smoke:
smoke04.png
CykaTrainSuit.json
You do not have the required permissions to view the files attached to this post.
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced smoke types

Post by Bearbear76 »

Never tried it but I think you might be able to add it normally via animation.
Just my opinion
retired
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2715
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by TheFennekin »

@Naufhal yes and also cars or trams :)
Image
User avatar
CERRERA
Townsman
Reactions:
Posts: 48
Joined: 25 Jan 2020, 04:19
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by CERRERA »

Smoke animation are supported by rotation?

Code: Select all    Reset

[ {"id":"$smoke01","x":45,"y":-50,"frame":0}, {"id":"$smoke01","x":45,"y":-50,"frame":1},{"id":"$smoke01","x":45,"y":-50,"frame":2}, {"id":"$smoke01","x":45,"y":-50,"frame":3} ]
JSON checker
Check
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced smoke types

Post by JustAnyone »

No, you should use animations for that.
User avatar
Fizalis
Small-town resident
Reactions:
Posts: 30
Joined: 27 Jan 2024, 07:25
Location: Russia
Plugins: Showcase Store

Plugin Creator

Platform

как делать дым

Post by Fizalis »

Извините, а как вообще делать дым в плагин, если я создаю сам плагин в PDF? :?: :D
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: как делать дым

Post by CommanderABab »

Вениамин Кузьминов wrote: 26 Feb 2024, 16:06 Извините, а как вообще делать дым в плагин, если я создаю сам плагин в PDF? :?: :D
Follow the example in the first post to use smoke. PDF is the wrong type of file to create a plugin with.
User avatar
space_guy
Inhabitant of a Continent
Reactions:
Posts: 1279
Joined: 31 May 2023, 21:57
Location: Vladivostok, Russia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by space_guy »

What do i write if i dont want to add any smoke? I wrote [{}] because i dont need any.
User avatar
dnswodn
Inhabitant of a Conurbation
Reactions:
Posts: 387
Joined: 08 Feb 2022, 06:14
Location: Guangdong, China 🏙️
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by dnswodn »

space_guy wrote: 30 Dec 2024, 11:44 What do i write if i dont want to add any smoke? I wrote [{}] because i dont need any.
Just don't add smoke to your JSON code, it is not a integral option.
s
spoidyjan
Villager
Reactions:
Posts: 17
Joined: 26 Nov 2024, 12:07

Re: Advanced smoke types

Post by spoidyjan »

If we want to use unique smoke textures, is there any recommended resolution or format for custom images? Also, can we use tools to optimize these textures for better performance in the game?
S
S.S.C.A.F
Settler
Reactions:
Posts: 1
Joined: 17 Jan 2024, 10:39

Re: Advanced smoke types

Post by S.S.C.A.F »

I'm starting using smoke. I made some plugins with it and they work. I tried to create a plugin with three types of smoke but only one is working.
These are the positions:
"smoke":[{"id":"$smoke00","x":95,"y":-109}],
"smoke":[{"id":"$smoke00","x":143,"y":-85}],
"smoke":[{"id":"$smoke00","x":20,"y":-64}]
For knowing the positions immediately I used animation dev tool.
I thought that I had to use the same smoke but It didn't work.
How can I make functional the other two smokes? The only one that is working is: x20,y-64 (I obtained this position using the lights of animation dev tool and then writing the numbers. Thank you for your help
User avatar
zybsy
Settler
Reactions:
Posts: 4
Joined: 12 Oct 2025, 12:30

Platform

Re: Advanced smoke types

Post by zybsy »

I'm curious about how to use this smoke feature/plug-in? After integrating it into my code, it keeps showing "not found". Maybe it's due to a version update?
User avatar
dnswodn
Inhabitant of a Conurbation
Reactions:
Posts: 387
Joined: 08 Feb 2022, 06:14
Location: Guangdong, China 🏙️
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

Post by dnswodn »

zybsy wrote: 14 Jun 2026, 13:25 I'm curious about how to use this smoke feature/plug-in? After integrating it into my code, it keeps showing "not found". Maybe it's due to a version update?
There is probably a mistake in your code. You may want to review it, and if possible, you can provide your code here.
Smoke can be used like animation. Set the draft to be used and the coordinates, then it will work. For example:

Code: Select all    Reset

[ { "id": "$sample.plugin.unique.id.eee", "type": "decoration", "level": 1, "title": "Smoke_Test", "author": "Lobby & theotheoderich", "width": 1, "height": 1, "category": "$cat_public00", "frames": [ {"bmp": "sample_bmp.png"} ], "frames winter": [ {"bmp": "sample_winter_bmp.png"} ], "animation": [ {"id": "1x2l", "x": 9, "y": -4}, {"id": "1x2l", "x": 20, "y": -2} ], "smoke": [{"id": "$smoke00", "x": 13, "y": -14}] // <------- Here } ]
JSON checker
Check
Previous topicNext topic