Roads

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Vax
Settler
Reactions:
Posts: 3
Joined: 23 Aug 2023, 12:54

Re: Roads

Post by Vax » 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:
[
{
"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: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab » 15 May 2024, 17:45

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.
Vax
Settler
Reactions:
Posts: 3
Joined: 23 Aug 2023, 12:54

Re: Roads

Post by Vax » 15 May 2024, 22:37

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 » 26 Aug 2024, 21:00

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 » 31 Jan 2025, 11:25

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.
KuroSgim
Settler
Reactions:
Posts: 2
Joined: 20 Jan 2024, 14:36

Re: Roads

Post by KuroSgim » 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
Diogonal
Settler
Reactions:
Posts: 2
Joined: 07 Apr 2024, 09:26

Plugin Creator

Platform

Re: Roads

Post by Diogonal » 08 Apr 2025, 10:21

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

Plugin Creator

Platform

Re: Roads

Post by Diogonal » 08 Apr 2025, 10:22

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,
Thanthan18
Settler
Reactions:
Posts: 4
Joined: 21 Jun 2025, 01:04

Re: Roads

Post by Thanthan18 » 21 Jun 2025, 01:09

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

Re: Roads

Post by gdgd54772 » 13 Jul 2025, 21:38

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 » 15 Jul 2025, 14:17

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
marcoboo87
Settler
Reactions:
Posts: 1
Joined: 14 Oct 2025, 16:35

Re: Roads

Post by marcoboo87 » 15 Oct 2025, 20:24

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

Plugin Creator

Platform

Re: Roads

Post by Syn » 14 Jan 2026, 03:51

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
Bahrom mark
Settler
Reactions:
Posts: 1
Joined: 15 Feb 2026, 12:01

Re: Roads

Post by Bahrom mark » 20 Feb 2026, 19:01

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

Plugin Creator

Platform

Re: Roads

Post by CommanderABab » 20 Feb 2026, 20:12

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: 29
Joined: 07 Jan 2021, 05:55

Plugin Creator

Platform

Re: Roads

Post by Syn » 03 Mar 2026, 13:59

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 » 17 Apr 2026, 21:36

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.
User avatar
Adexdia4343
Inhabitant of a Megacity
Reactions:
Posts: 280
Joined: 24 May 2026, 07:16
Location: Lampung
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Adexdia4343 » 24 May 2026, 22:26

:) Is there a black bridge?
User avatar
Player_no_Zero
Metropolitan
Reactions:
Posts: 132
Joined: 06 May 2019, 07:18
Location: Somewhere in Manila, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Player_no_Zero » 31 Aug 2026, 05:32

Question. How to create a one-lane road with only one lane, similar to a one-way road with two lanes in-game where only one vehicle can drive at a time. Second, is it possible to generate randomized pillars in the bridge? Third question, I may have missed this one, but how to make the ramp with a pillar?