Roads

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
BlueFlame_00
Settler
Posts: 5
Joined: 29 Jul 2020, 08:29
Location: Silesia, Poland
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Roads

#121

Post by BlueFlame_00 » 17 Nov 2023, 15:25

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.
User avatar
nanmu
Settler
Posts: 1
Joined: 28 Jan 2022, 09:04

Re: Roads

#122

Post by nanmu » 16 Mar 2024, 04:52

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

Plugin Creator

Platform

Re: Roads

#123

Post by CommanderABab » 17 Mar 2024, 19:07

nanmu wrote: 16 Mar 2024, 04: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.
User avatar
Vax
Settler
Posts: 3
Joined: 23 Aug 2023, 14:54

Re: Roads

#124

Post by Vax » 15 May 2024, 15: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
Posts: 11273
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#125

Post by CommanderABab » 15 May 2024, 19:45

Vax wrote: 15 May 2024, 15: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.
User avatar
Vax
Settler
Posts: 3
Joined: 23 Aug 2023, 14:54

Re: Roads

#126

Post by Vax » 16 May 2024, 00:37

Oh. Ok ty, im new to this plug-in stuffs.
User avatar
Ross The Mayor
Small-town resident
Posts: 26
Joined: 20 Dec 2023, 23:30

Re: Roads

#127

Post by Ross The Mayor » 26 Aug 2024, 23:00

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

Re: Roads

#128

Post by Trixie Izumi » 31 Jan 2025, 13: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
Attachments
Screenshot_20250131_181800.jpg
Last edited by Trixie Izumi on 31 Jan 2025, 15:10, edited 1 time in total.
User avatar
KuroSgim
Settler
Posts: 2
Joined: 20 Jan 2024, 16:36

Re: Roads

#129

Post by KuroSgim » 05 Mar 2025, 11: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
User avatar
Diogonal
Settler
Posts: 2
Joined: 07 Apr 2024, 11:26

Plugin Creator

Platform

Re: Roads

#130

Post by Diogonal » 08 Apr 2025, 12:21

, :space
Last edited by Diogonal on 08 Apr 2025, 12:24, edited 1 time in total.
User avatar
Diogonal
Settler
Posts: 2
Joined: 07 Apr 2024, 11:26

Plugin Creator

Platform

Re: Roads

#131

Post by Diogonal » 08 Apr 2025, 12:22

KuroSgim wrote: 05 Mar 2025, 11: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,
User avatar
Thanthan18
Settler
Posts: 2
Joined: 21 Jun 2025, 03:04

Re: Roads

#132

Post by Thanthan18 » 21 Jun 2025, 03:09

How To Make One Way Roads?
But With 16 Bridge Frames
User avatar
gdgd54772
Settler
Posts: 1
Joined: 02 Jul 2024, 13:41

Re: Roads

#133

Post by gdgd54772 » 13 Jul 2025, 23:38

Guys, I need a 4 lane highway's texture and code. Anyone please help me..
User avatar
Playerc445GDReal
Inhabitant of a Megacity
Posts: 336
Joined: 09 Feb 2025, 13:41
Location: 🌌the edge of the milky way galaxy🌠
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#134

Post by Playerc445GDReal » 15 Jul 2025, 16:17

gdgd54772 wrote: 13 Jul 2025, 23: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
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”