6-lane road

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

6-lane road

#1

Post by Tiar/A »

Could somebody make a plugin for a 6-lane road please?

We know that each road in the game is two lanes wide, so if you stack multiple roads next to each other, the resulting number of lanes swells to (number of roads laying next to each other multiplied by 2) (e.g., 3 roads × 2 lanes per road = 6-lane road)

It should be 3 tiles wide, looking as if you put down a country road, and then a one-way road on each side.

In real life, such roads look like this:
See how the airport runway is 3 tiles wide.
See how the airport runway is 3 tiles wide.
Maybe someone could modify the game's airport runway.

The default airport runway is also 3 tiles wide.


The new plugin road should have a central tile road that has a double-yellow line down the center and no outlines, then on each side of that, a two-lane road with a blank left side and a white line on the right side.

I would do this myself, but I don't know how to create plugins, and even though I've asked what app you guys are all using to create plugins multiple times, nobody will answer me.
Attachments
Screenshot_2018-04-16-18-48-38.png

User avatar
Caliber
Metropolitan
Reactions:
Posts: 128
Joined: 24 Jan 2018, 03:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: 6-lane road

#2

Post by Caliber »

I think 6 way can't but 8 way can just use 2 one way road each side. If you want speed road one way, use Highway Road.

User avatar
SavageKingYT
Settler
Reactions:
Posts: 5
Joined: 06 Apr 2018, 16:42
Plugins: Showcase Store

Re: 6-lane road

#3

Post by SavageKingYT »

I think It would be great if they created a cloverleaf interchange or a diverging diamond

User avatar
Caliber
Metropolitan
Reactions:
Posts: 128
Joined: 24 Jan 2018, 03:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: 6-lane road

#4

Post by Caliber »


User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: 6-lane road

#5

Post by Lobby »

It can be done by using a one-way road of width 3 with a regular road as decoration (that will be used as road in the middle).

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: 6-lane road

#6

Post by Tiar/A »

Lobby wrote:
17 Apr 2018, 10:23
It can be done by using a one-way road of width 3 with a regular road as decoration (that will be used as road in the middle).
But then that way only four of the six lanes can be used for travel, if the middle road is decoration only.

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: 6-lane road

#7

Post by Tiar/A »

I'm talking about making a new road that shares the same base properties of the currect airport runway. You know how the white center line on the runway is straight down the center of the middle part?

One could possibly make a road that looks like that, but instead of the white center line, you have a double yellow line and then two sets of dashed white lines on each side of the double yellow line.

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: 6-lane road

#8

Post by Tiar/A »

And then as for the white dashed lines on the road, there can only be two of those white dashed lines on each tile. One is separating the central road and outer roads, and the next is in the middle of the tile on the outer roads.

If I do it the way I've been doing it, it looks like this:
Screenshot_2018-04-17-20-30-00.png


But I want it to look like this:
Screenshot_2018-04-17-20-31-45.png


And the runway looks like this:
Screenshot_2018-04-17-20-36-08.png


If someone could make the runway (the third picture) look like a 6-lane road (the second picture), I'd be so happy.

Like I said, if knew how to make plugins I'd try to do this myself, but I don't know how to do that, and nobody will answer me on how to.

All images are screenshots of an app called Intersection Controller.

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: 6-lane road

#9

Post by Lobby »

Using a road as decoration is how the runway works. Here's the code :json

Code: Select all

[
  {
    "hidden":true,
    "id":"$ap_field_mid00",
    "type":"road",
    "frames":[
      {"x":512,"y":512,"w":32,"h":16,"count":7,"offset y":3072},
      {"x":576,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":768,"y":512,"w":32,"h":16,"count":3,"offset y":3072},
      {"x":608,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":896,"y":512,"w":32,"h":16,"offset y":3072},
      {"x":640,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":672,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":544,"y":528,"w":32,"h":16,"offset y":3072},

      {"x":512,"y":512,"w":32,"h":16,"count":7,"offset y":3072},
      {"x":576,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":768,"y":512,"w":32,"h":16,"count":3,"offset y":3072},
      {"x":608,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":896,"y":512,"w":32,"h":16,"offset y":3072},
      {"x":640,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":672,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":512,"y":528,"w":32,"h":16,"offset y":3072},

      {"x":512,"y":512,"w":32,"h":16,"count":7,"offset y":3072},
      {"x":576,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":768,"y":512,"w":32,"h":16,"count":3,"offset y":3072},
      {"x":608,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":896,"y":512,"w":32,"h":16,"offset y":3072},
      {"x":640,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":672,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":544,"y":528,"w":32,"h":16,"offset y":3072},

      {"x":512,"y":512,"w":32,"h":16,"count":7,"offset y":3072},
      {"x":576,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":768,"y":512,"w":32,"h":16,"count":3,"offset y":3072},
      {"x":608,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":896,"y":512,"w":32,"h":16,"offset y":3072},
      {"x":640,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":672,"y":528,"w":32,"h":16,"offset y":3072},
      {"x":512,"y":528,"w":32,"h":16,"offset y":3072}
    ],
    // ...
    "level":11,
    "devoted":true,
    "one way":true,
    "flag normal":false,
    "flag airport":true,
    "connectable":false,
    "zone":"$zoneairport",
    "price":10000,
    "title id":"draft_ap_field00_title",
    "text id":"draft_ap_field00_text",
    "allow bus stop":false,
    "meta":{
      "tags":{
        "airport lane":{}
      }
    }
  },
  {
    "id":"$ap_field00",
    "type":"road",
    "width":3,
    "frames":[{"x":512,"y":512,"w":32,"h":16,"count":16,"offset y":3072}],
    // ...
    "decoration buildings":[
      "$ap_field_mid00"
    ],
    "level":10,
    "devoted":true,
    "flag normal":false,
    "flag airport":true,
    "connectable":false,
    "category":"$cat_airport00",
    "zone":"$zoneairport",
    "price":10000,
    "allow bus stop":false
  }
]
Decoration in this context means that this "object" will be used to decorate the mid lane. It has no impact on it's functionality.

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

Plugin Creator

Platform

Re: 6-lane road

#10

Post by CommanderABab »


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

Plugin Creator

Platform

Re: 6-lane road

#11

Post by CommanderABab »

Screenshot_20180418-181351.png

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: 6-lane road

#12

Post by Tiar/A »

And I don't think there should be any walls on the inner road bridges either.

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

Plugin Creator

Platform

Re: 6-lane road

#13

Post by CommanderABab »

There aren't in the plugin version. But to remove them removes the outer walls also.

User avatar
Chisako
Villager
Reactions:
Posts: 11
Joined: 31 Mar 2018, 04:35
Location: Japan
Plugins: Showcase Store

Platform

Re: 6-lane road

#14

Post by Chisako »

Maybe it's like this?

He is still alive.
He is still alive.

This is one incomplete sample I made.
I tried the "silent frames" code.
The strange color of the road is for testing, and the numbers are for hints.

I hope this will be your hint.

User avatar
Tiar/A
Former TiarDVaughn
Reactions:
Posts: 471
Joined: 04 Mar 2018, 19:40
Location: Spokane
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: 6-lane road

#15

Post by Tiar/A »

Yes, just like that but with only two white lines per road tile instead of 4. And when CommanderABab gave me permission to modify the png, I made it so the lines were six pixels long:
outerr.png
outerr.png (1.55 KiB) Viewed 7514 times

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”