Roads

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
B
BlueFlame_00
Settler
Reactions:
Posts: 5
Joined: 29 Jul 2020, 06:29
Location: Silesia, Poland
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by BlueFlame_00 »

Hello, how do you make an automatic barrier like on bridges to show on a road that's on the ground? Something like choggoba's diagonal overpass plugin or the built-in expressway and highway roads.
I rarely code plugins, and when I do I usually don't finish them.
:66:
n
nanmu
Settler
Reactions:
Posts: 1
Joined: 28 Jan 2022, 07:04

Re: Roads

Post by nanmu »

我是否可以做到使我的道路桥梁一边有桥梁贴图,而另一边没有。
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

nanmu wrote: 16 Mar 2024, 02:52 我是否可以做到使我的道路桥梁一边有桥梁贴图,而另一边没有。

Is it possible for me to make one side of my road bridge have a bridge texture and the other side not.
Yes, if you make a road plugin with such bridge frames.
V
Vax
Settler
Reactions:
Posts: 3
Joined: 23 Aug 2023, 12:54

Re: Roads

Post by Vax »

Im having trouble here. Can anyone help me? The bridge is glitchy and has a white background that is annoying, btw im a new plugin creator. My code looks like this:
[
{
"id":"$Road00",
"title":"Red-lined Country Road",
"text":"A country road designed to have Red lines.",
"type":"road",
"level":1,
"speed":2.5,

"frames":[{"bmp":"Country_roads_redlines.png","w":32,"h":16,"count":16}],

"slope frames":[
{"x":120,"y":311,"w":32,"h":32,"count":4,"offset x":2048,"offset y":1024}],

"bridge frames":[{"bmp":"Bridge.png","w":32,"h":48,"count":12}],
"frames per bridge":12,

"traffic lights":[{"bmp":"tf.png","w":32,"h":32,"count":4}],
"green phase":3000,
"yellow phase":500,

"price":50,
"bridge price":200,
"monthly price":2
}
]
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

Vax wrote: 15 May 2024, 13:17 Im having trouble here. Can anyone help me? The bridge is glitchy and has a white background that is annoying, btw im a new plugin creator. My code looks like this:

Code: Select all

[
  {
    "id":"$Road00",
    "title":"Red-lined Country Road",
    "text":"A country road designed to have Red lines.",
    "type":"road",
    "level":1,
    "speed":2.5,

    "frames":[{"bmp":"Country_roads_redlines.png","w":32,"h":16,"count":16}],
    
    "slope frames":[
  {"x":120,"y":311,"w":32,"h":32,"count":4,"offset x":2048,"offset y":1024}],

    "bridge frames":[{"bmp":"Bridge.png","w":32,"h":48,"count":12}],
    "frames per bridge":12,

    "traffic lights":[{"bmp":"tf.png","w":32,"h":32,"count":4}],
    "green phase":3000,
    "yellow phase":500,

    "price":50,
    "bridge price":200,
    "monthly price":2
  }
]
You might upload the frames in question. Maybe the white is the background in the images and isn't transparent.
V
Vax
Settler
Reactions:
Posts: 3
Joined: 23 Aug 2023, 12:54

Re: Roads

Post by Vax »

Oh. Ok ty, im new to this plug-in stuffs.
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: Roads

Post by Ross The Mayor »

What about pedestrians only on the road? What should the code look like?
User avatar
Trixie Izumi
Settler
Reactions:
Posts: 1
Joined: 17 Jan 2025, 05:32

Platform

Re: Roads

Post by Trixie Izumi »

I want to make a one way bus road, but it always error, can someone help me?
[
{
"id": "Bus WayRoad",
"title": "Bus Way Road",
"author": "Trixie Izumi",
"meta": {
"pca": {
"version": "4.4.1"
}
},
"frames": [
{"bmp":"black_road.png","w":32,"h":16,"count":16}
{"bmp":"black_road.png","w":32,"h":16,"count":16}
{"bmp":"black_road.png","w":32,"h":16,"count":16}
{"bmp":"black_road.png","w":32,"h":16,"count":16}
],
"level": 1,
"speed": 10,
"flag normal": "false",
"flag bus": "true",
"type": "road",
"one way": "true"
}
]
Screenshot_20250131_181800.jpg
*edit: Now it has been fixed by adding (,)
Sorry I didn't delete it because I didn't know how
You do not have the required permissions to view the files attached to this post.
Last edited by Trixie Izumi on 31 Jan 2025, 13:10, edited 1 time in total.
K
KuroSgim
Settler
Reactions:
Posts: 2
Joined: 20 Jan 2024, 14:36

Re: Roads

Post by KuroSgim »

I desperately need to know how to make a road that's one way road and only allow specify or a certain car :geek: i got the road frame, the car frame all i need is the json :json
D
Diogonal
Settler
Reactions:
Posts: 2
Joined: 07 Apr 2024, 09:26

Plugin Creator

Platform

Re: Roads

Post by Diogonal »

, :space
Last edited by Diogonal on 08 Apr 2025, 10:24, edited 1 time in total.
D
Diogonal
Settler
Reactions:
Posts: 2
Joined: 07 Apr 2024, 09:26

Plugin Creator

Platform

Re: Roads

Post by Diogonal »

KuroSgim wrote: 05 Mar 2025, 09:32 I desperately need to know how to make a road that's one way road and only allow specify or a certain car :geek: i got the road frame, the car frame all i need is the json :json
To make the road only one way, you need to add "one way":true,
T
Thanthan18
Settler
Reactions:
Posts: 4
Joined: 21 Jun 2025, 01:04

Re: Roads

Post by Thanthan18 »

How To Make One Way Roads?
But With 16 Bridge Frames
g
gdgd54772
Settler
Reactions:
Posts: 2
Joined: 02 Jul 2024, 11:41

Re: Roads

Post by gdgd54772 »

Guys, I need a 4 lane highway's texture and code. Anyone please help me..
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: Roads

Post by Playerc445GDReal »

gdgd54772 wrote: 13 Jul 2025, 21:38 Guys, I need a 4 lane highway's texture and code. Anyone please help me..
use philippine road pack or nrai (new roads and intersections) plugin bruh
m
marcoboo87
Settler
Reactions:
Posts: 1
Joined: 14 Oct 2025, 16:35

Re: Roads

Post by marcoboo87 »

yea
User avatar
Syn
Small-town resident
Reactions:
Posts: 28
Joined: 07 Jan 2021, 05:55

Plugin Creator

Platform

Re: Roads

Post by Syn »

Is it possible to make a pedestrian and emergency vehicle only, so I want to make a walkable city but sometimes building need access for firefighters, police and ambulance
B
Bahrom mark
Settler
Reactions:
Posts: 1
Joined: 15 Feb 2026, 12:01

Re: Roads

Post by Bahrom mark »

Salom men koʻrinmas yoʻl yaratmoqchiman unga qanday kod yozsam boʻladi
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

Bahrom mark wrote: 20 Feb 2026, 19:01 Salom men koʻrinmas yoʻl yaratmoqchiman unga qanday kod yozsam boʻladi
Hello, I want to create an invisible path, what code can I write for it?
User avatar
Syn
Small-town resident
Reactions:
Posts: 28
Joined: 07 Jan 2021, 05:55

Plugin Creator

Platform

Re: Roads

Post by Syn »

Bahrom mark wrote: 20 Feb 2026, 19:01 Salom men koʻrinmas yoʻl yaratmoqchiman unga qanday kod yozsam boʻladi
I believe you just leave the frame empty no? And the code the same as other with visible frame
User avatar
youkyuu
Villager
Reactions:
Posts: 10
Joined: 29 Jan 2025, 12:49

Re: Roads

Post by youkyuu »

is it possible to make the one-way has 64 bridge parts each of them is one-to-one correspondence to the roads? for the situation that most parts of the road are different.
Previous topicNext topic