Roads

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 721
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Hadestia » 14 Dec 2021, 05:59

Does "frames" And "one way frames" Array are different?
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
SRBAPH
Villager
Reactions:
Posts: 13
Joined: 13 Jan 2022, 03:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by SRBAPH » 19 Jan 2022, 02:22

hello! I'm making a diagonal road for my own plugin, but I'm confused about the frames bc I cant make frames without any guides...
꧁༒𝔖ℜ𝔅𝔄 𝔓ℌ༒꧂

CEO of Department of Transportation and Communications
(DOTC)


Youtube Channel
https://bit.ly/3rh6hd9

I'm a 13 years old Programmer from the Philippines!
View my Site for more informations:

https://bit.ly/3FnMWfD
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: Roads

Post by Yakka Works » 01 Mar 2022, 09:38

Hello,how i can add one lane road?
And also,is it possible to force vehicle that goes to road that i made using provided V2?
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
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: Roads

Post by Yakka Works » 01 Mar 2022, 09:39

SRBAPH wrote: 19 Jan 2022, 02:22 hello! I'm making a diagonal road for my own plugin, but I'm confused about the frames bc I cant make frames without any guides...
viewtopic.php?p=171988#p171988
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
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by TheFennekin » 01 Mar 2022, 23:45

Naufhal wrote: 01 Mar 2022, 14:58 Admin. What function "count"
Number of times on how many frames will be used. Used when there is multiple frames on one image file. (Like the road image file for example)

Since we have 16 road frames to be used, we then must put "count":16 just like this:
"bmp":[{image.png},"count":16,"w":enter width of each frame, "h":enter height of each frame}]

Hope this helps Naufhal
Image
User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 12:00
Location: Japan Shikoku
Plugins: Showcase Store

Re: Roads

Post by Marsneko » 04 Mar 2022, 13:25

How do you make a left-hand road?
I am Japanese!
Please use simple English. :bc
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by TheFennekin » 06 Mar 2022, 00:21

Marsneko wrote: 04 Mar 2022, 13:25 How do you make a left-hand road?
You can't specify it on the json itself. Go to settings, turn on experimental features and debug on, then turn on the left hand drive roads option. Works on 2 way roads only.
Image
User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 12:00
Location: Japan Shikoku
Plugins: Showcase Store

Re: Roads

Post by Marsneko » 06 Mar 2022, 03:08

ok.Will that be reflected in the plugin?
I am Japanese!
Please use simple English. :bc
yusuf8a684
Reactions:

Re: Roads

Post by yusuf8a684 » 14 Mar 2022, 08:29

diagonal bridges possible?
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by TheFennekin » 14 Mar 2022, 09:11

Marsneko wrote: 06 Mar 2022, 03:08 ok.Will that be reflected in the plugin?
Plugin or ingame roads, it will make it LHD road
Image
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: Roads

Post by FVI » 22 May 2022, 19:24

What can I do if I want to allow only a certain vehicle to pass through that road?
My YT channel! https://www.youtube.com/@FVI297

(Changed the location writing, the old one sounded bad)
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 » 23 May 2022, 01:22

An example only:

Code: Select all

{ 
    "id":"abcd", 
    "type":"car", 
    "frames":[ 
      {"bmp":"yourcarframes","w":#,"count":4}
    ], 
    "capacity":355,
    "flag user3":true,
    "flag user2":true,
    "flag normal":false,
    "speed":0.35,
    "v2":true 
  },

...in some other id:
{
"car spawner":[
           {
             "cars":["abcd"],
             "count":1000,
             "radius":2000,
             "targets":[
              "$watertower00",
              "$gasplant00",
              "$windturbine00",
              "$nuclearplant00",
              "$solarpanels00"
             ]
           }
    ]   
}

You would also use these same flags in your road:

Code: Select all

...
    "flag user3":true,
    "flag user2":true,
    "flag normal":false,
    ...
my avatar:
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: Roads

Post by FVI » 29 May 2022, 19:24

?I do not understand Can you make a summary of all the meanings of that attributes? :bt
My YT channel! https://www.youtube.com/@FVI297

(Changed the location writing, the old one sounded bad)
User avatar
erionit
Metropolitan
Reactions:
Posts: 113
Joined: 31 Dec 2021, 18:56
Location: Russia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by erionit » 19 Jun 2022, 13:21

Kiki012 wrote: 01 Mar 2022, 09:38 Hello,how i can add one lane road?
And also,is it possible to force vehicle that goes to road that i made using provided V2?
the same question. how to make, for example, a road in the center of which there will be one lane, and on the sides at once pedestrian / bike paths (even if the latter are just decor)
Эрионит (Arangasit)- создатель плагинов.
I live in Russia, with my soul in Saint Kitts and Nevis
mu DC server? welcome https://discord.com/channels/1010509128 ... 3243235369
:bc
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

Diagonal 4 lane road.

Post by Yakka Works » 27 Oct 2022, 02:21

road_Asphalt_dia_white_Double.png
road_Asphalt_white_Double.png
Free to use,credit is appreciated.
You do not have the required permissions to view the files attached to this post.
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
PixelDubs
Inhabitant of a Megalopolis
Reactions:
Posts: 612
Joined: 02 Nov 2020, 18:14
Location: probably at a concert
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by PixelDubs » 27 Oct 2022, 09:50

What a flipping legend
they/them
🇬🇧🏴󠁧󠁢󠁷󠁬󠁳󠁿
Lydia
Settler
Reactions:
Posts: 1
Joined: 21 Dec 2021, 16:19

Re: Roads

Post by Lydia » 16 Oct 2023, 18:36

Can you give me texture of Diagonal road and the code so j can complete my Plasma Road Plugin
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 » 17 Nov 2023, 13: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.
I rarely code plugins, and when I do I usually don't finish them.
:66:
nanmu
Settler
Reactions:
Posts: 1
Joined: 28 Jan 2022, 07:04

Re: Roads

Post by nanmu » 16 Mar 2024, 02:52

我是否可以做到使我的道路桥梁一边有桥梁贴图,而另一边没有。
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 » 17 Mar 2024, 17:07

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.