Roads

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#101

Post by CommanderABab »

Wepf wrote: 25 Nov 2021, 09:45 Screenshot_20211125-141913_TheoTown.jpg


How to make the road have seawalls, please send me the link of the tutorial or teach me
Screenshot_20211125-022109_TheoTown.jpg
It's automatic by the game when something is built on water's edge or on a slope.
User avatar
Wepf
Inhabitant of a Megacity
Reactions:
Posts: 285
Joined: 14 Oct 2021, 10:19
Location: Your lucid dream
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#102

Post by Wepf »

CommanderABab wrote: 25 Nov 2021, 10:30
Wepf wrote: 25 Nov 2021, 09:45 Screenshot_20211125-141913_TheoTown.jpg


How to make the road have seawalls, please send me the link of the tutorial or teach me
Screenshot_20211125-022109_TheoTown.jpg

It's automatic by the game when something is built on water's edge or on a slope.
But it doesn't appear when I build it from my road plugin
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#103

Post by CommanderABab »

Which plugin is that?
User avatar
Wepf
Inhabitant of a Megacity
Reactions:
Posts: 285
Joined: 14 Oct 2021, 10:19
Location: Your lucid dream
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#104

Post by Wepf »

CommanderABab wrote: 25 Nov 2021, 11:25 Which plugin is that?
Here the link
⬇️
viewtopic.php?f=59&t=14117
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Roads

#105

Post by Hadestia »

Does "frames" And "one way frames" Array are different?
User avatar
SRBAPH
Villager
Reactions:
Posts: 14
Joined: 13 Jan 2022, 05:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

#106

Post by SRBAPH »

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...
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#107

Post by Yakka »

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?
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#108

Post by Yakka »

SRBAPH wrote: 19 Jan 2022, 04: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
User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#109

Post by TheFennekin »

Naufhal wrote: 01 Mar 2022, 16: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
User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 14:00
Location: Japan Shikoku
Plugins: Showcase Store

Re: Roads

#110

Post by Marsneko »

How do you make a left-hand road?
User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#111

Post by TheFennekin »

Marsneko wrote: 04 Mar 2022, 15: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.
User avatar
Marsneko
Villager
Reactions:
Posts: 24
Joined: 04 Mar 2022, 14:00
Location: Japan Shikoku
Plugins: Showcase Store

Re: Roads

#112

Post by Marsneko »

ok.Will that be reflected in the plugin?
User avatar
yusuf8a684
Reactions:

Re: Roads

#113

Post by yusuf8a684 »

diagonal bridges possible?
User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#114

Post by TheFennekin »

Marsneko wrote: 06 Mar 2022, 05:08 ok.Will that be reflected in the plugin?
Plugin or ingame roads, it will make it LHD road
User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1453
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

#115

Post by FVI »

What can I do if I want to allow only a certain vehicle to pass through that road?
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#116

Post by CommanderABab »

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,
    ...
User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1453
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

#117

Post by FVI »

?I do not understand Can you make a summary of all the meanings of that attributes? :bt
User avatar
erionit
Metropolitan
Reactions:
Posts: 113
Joined: 31 Dec 2021, 20:56
Location: Russia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

#118

Post by erionit »

Kiki012 wrote: 01 Mar 2022, 11: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)
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Diagonal 4 lane road.

#119

Post by Yakka »

road_Asphalt_dia_white_Double.png
road_Asphalt_dia_white_Double.png (6 KiB) Viewed 4054 times
road_Asphalt_white_Double.png
road_Asphalt_white_Double.png (5.2 KiB) Viewed 4054 times
Free to use,credit is appreciated.
User avatar
PixelDubs
Inhabitant of a Conurbation
Reactions:
Posts: 530
Joined: 02 Nov 2020, 20:14
Location: Telford, England
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#120

Post by PixelDubs »

What a flipping legend
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”