Road decoration

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Road decoration

Post by Yakka Works » 24 Dec 2021, 04:06

Lobby wrote: 14 May 2018, 14:21

Code: Select all

"exclusive":true
Is value true enabled and value false is disabled?
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Patchouli Knowledge
Townsman
Reactions:
Posts: 64
Joined: 26 Sep 2020, 07:42

Re: Road decoration

Post by Patchouli Knowledge » 09 Apr 2022, 15:54

How to add lights to road decorations?
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Road decoration

Post by Yakka Works » 09 Apr 2022, 20:58

Patchouli Knowledge wrote: 09 Apr 2022, 15:54 How to add lights to road decorations?
Ask @Pederont for that.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
burgernamn
Inhabitant of a Megacity
Reactions:
Posts: 173
Joined: 15 Apr 2022, 08:32
Plugins: Showcase Store

Plugin Creator

Platform

Re: Road decoration

Post by burgernamn » 15 Jan 2023, 02:20

what does the ones and zeros mean
im more active on my discord
黑色高级市长
Settler
Reactions:
Posts: 6
Joined: 15 Nov 2022, 10:56

关于:道路装饰

Post by 黑色高级市长 » 29 Mar 2023, 11:07

@Lobby How to make a road decoration that can rotate on all sides? I want make a vehicle trim parked on one side on road and that looks to be in the right position from all four directions.
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 129
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: 关于:道路装饰

Post by Lakan Haraya » 04 Jun 2023, 18:59

黑色高级市长 wrote: 29 Mar 2023, 11:07 How to make a road decoration that can rotate on all sides?
Use 64 arrays

Code: Select all

"animation":[
	{"id":"$animation_A"}, //this will be your 0
	{"id":"$animation_B"}, //and this is 1
	{"id":"$animation_C"} //2
	// 3, 4, 5, ... if you add more
],
"frame animation indices":[
	[],[],[],[],		//here's for rotation 0
	[],[0,1],[],[],
	[],[],[0,2],[],
	[],[],[],[],
	
	[],[],[],[],		//for rotation 1
	[],[0,3],[],[],
	[],[],[0,4],[],
	[],[],[],[],
	
	[],[],[],[],		//rotation 2
	[],[0,5],[],[],
	[],[],[0,6],[],
	[],[],[],[],
	
	[],[],[],[],		//rotation 3
	[],[0,7],[],[],
	[],[],[0,8],[],
	[],[],[],[]
]
The placement of zeros are for frame 5 and frame 10 of road. You can also add more animations like how 1, 2, 3, ... are added in this example.
As you can see, four 16 arrays are grouped together, each 16-group is for each rotations
:teachTake note that rotationally aware road decos are only applicable for one-way roads
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
黑色高级市长
Settler
Reactions:
Posts: 6
Joined: 15 Nov 2022, 10:56

Re: Road decoration

Post by 黑色高级市长 » 30 Jul 2023, 15:10

:fire
Lakan Haraya wrote: 04 Jun 2023, 18:59
黑色高级市长 wrote: 29 Mar 2023, 11:07 How to make a road decoration that can rotate on all sides?
Use 64 arrays

Code: Select all

"animation":[
	{"id":"$animation_A"}, //this will be your 0
	{"id":"$animation_B"}, //and this is 1
	{"id":"$animation_C"} //2
	// 3, 4, 5, ... if you add more
],
"frame animation indices":[
	[],[],[],[],		//here's for rotation 0
	[],[0,1],[],[],
	[],[],[0,2],[],
	[],[],[],[],
	
	[],[],[],[],		//for rotation 1
	[],[0,3],[],[],
	[],[],[0,4],[],
	[],[],[],[],
	
	[],[],[],[],		//rotation 2
	[],[0,5],[],[],
	[],[],[0,6],[],
	[],[],[],[],
	
	[],[],[],[],		//rotation 3
	[],[0,7],[],[],
	[],[],[0,8],[],
	[],[],[],[]
]
The placement of zeros are for frame 5 and frame 10 of road. You can also add more animations like how 1, 2, 3, ... are added in this example.
As you can see, four 16 arrays are grouped together, each 16-group is for each rotations
:teachTake note that rotationally aware road decos are only applicable for one-way roads
thank you!
Jtrendz
Villager
Reactions:
Posts: 13
Joined: 25 Oct 2024, 15:15

Re: Road decoration

Post by Jtrendz » 16 Nov 2024, 23:30

Does anyone know where I might be able to get a guild on creating simple decorations for cities. Stuff like phonebooths, padestrian seats, etc. I know I can make building but I don't really have any place for that or road decorations right now.
User avatar
FVI
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2441
Joined: 22 Feb 2022, 16:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Road decoration

Post by FVI » 17 Nov 2024, 07:44

Jtrendz wrote: 16 Nov 2024, 23:30 Does anyone know where I might be able to get a guild on creating simple decorations for cities. Stuff like phonebooths, padestrian seats, etc. I know I can make building but I don't really have any place for that or road decorations right now.
You might try asking someone if he's interested in collaborating with you, but it's probably generally more practical doing the textures yourself.
User avatar
Ross The Mayor
Small-town resident
Reactions:
Posts: 33
Joined: 20 Dec 2023, 21:30
Location: Jamaica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Re: Road decoration

Post by Ross The Mayor » 26 Apr 2025, 17:13

Does anyone know the code for the cross walk road deco? How do you allow pedestrians to use it and cross the road?
User avatar
dnswodn
Inhabitant of a Conurbation
Reactions:
Posts: 385
Joined: 08 Feb 2022, 06:14
Location: Guangdong, China 🏙️
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Road decoration

Post by dnswodn » 02 May 2025, 11:59

Ross The Mayor wrote: 26 Apr 2025, 17:13 Does anyone know the code for the cross walk road deco? How do you allow pedestrians to use it and cross the road?
Add this:

Code: Select all

"allow road crossing": true
User avatar
Playerc445GDReal
Inhabitant of a Megalopolis
Reactions:
Posts: 657
Joined: 09 Feb 2025, 11:41
Location: 🌌the edge of the milky way galaxy🌠
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Road decoration

Post by Playerc445GDReal » 19 May 2025, 10:33

im gonna make a book outta this
StarMohsin
Settler
Reactions:
Posts: 2
Joined: 13 Oct 2023, 08:37

Re: Road decoration

Post by StarMohsin » 28 Aug 2025, 18:12

How do one create a street light
User avatar
Vinzzxprikitiwww
Villager
Reactions:
Posts: 9
Joined: 04 Sep 2025, 06:24
Plugins: Showcase Store
Version: Beta

Platform

Re: Road decoration

Post by Vinzzxprikitiwww » 02 Oct 2025, 07:37

Is there a code for street decoration that lights up at night? Because I want to make lights.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Road decoration

Post by JustAnyone » 03 Oct 2025, 11:53

The definition is essentially the same as for any road decoration animation, the animations just have additional

Code: Select all

"light": true,"light switching": true
properties set.
User avatar
Sodor
Inhabitant of a Megacity
Reactions:
Posts: 170
Joined: 06 Sep 2024, 17:37
Location: Alabama, USA
Plugins: Showcase Store
Version: Beta

Platform

Re: Road decoration

Post by Sodor » 16 Oct 2025, 01:54

@JustAnyone I'm using Json genie, But I don't know coding period, what would be the Json for a Road deco that slows Cars down, nothing special
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Road decoration

Post by JustAnyone » 16 Oct 2025, 07:47

You'd probably set something like

Code: Select all

"speed": 0.25
User avatar
Sodor
Inhabitant of a Megacity
Reactions:
Posts: 170
Joined: 06 Sep 2024, 17:37
Location: Alabama, USA
Plugins: Showcase Store
Version: Beta

Platform

Re: Road decoration

Post by Sodor » 16 Oct 2025, 16:39

Ok