Roads

Learn here how to create and use plugins.

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

Re: Roads

#61

Post by Tiar/A »

Brody Craft wrote:
20 Mar 2019, 00:33
Looks like someone plays Intersection Controller.
Yes I do ... is that a bad thing?

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: Roads

#62

Post by Tiar/A »

-LeoLeo- wrote:
19 Mar 2019, 23:48
@TiarDVaughn Well, lucky for you that's what I like, that's what I like!

No, seriously. I already have a plan to do something like that. With all the decos and stuff
Yay! Wait, does that mean you'll help me?

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 11:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

#63

Post by Brody Craft »

TiarDVaughn wrote:
20 Mar 2019, 16:10
Brody Craft wrote:
20 Mar 2019, 00:33
Looks like someone plays Intersection Controller.
Yes I do ... is that a bad thing?
No, i play it as well, im trying to build a big town thing.

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: Roads

#64

Post by Tiar/A »

Brody Craft wrote:
21 Mar 2019, 09:33

No, i play it as well, im trying to build a big town thing.
Cool! What's your game name?

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 8034
Joined: 24 Jan 2017, 11:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

#65

Post by Brody Craft »

TiarDVaughn wrote:
21 Mar 2019, 22:29
Brody Craft wrote:
21 Mar 2019, 09:33

No, i play it as well, im trying to build a big town thing.
Cool! What's your game name?
Brody Jones.

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: Roads

#66

Post by Tiar/A »

Brody Craft wrote:
22 Mar 2019, 00:44

Brody Jones.
Okay. I'll find you on Intersection Controller.

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

Platform

Re: Roads

#67

Post by Lobby »

Added a note on how to handle terrain :66:

User avatar
yusuf8a684
Reactions:

Re: Roads

#68

Post by yusuf8a684 »

JustAnyone wrote:
30 Apr 2018, 18:13
Not sure.
Just use this code which is @Lobbu's

Code: Select all

"bridge frames":[
          {"x":512,"y":96,"w":32,"h":48,"count":12},
        {"x":896,"y":214,"w":32,"h":26,"count":4},

          {"x":512,"y":96,"w":32,"h":48,"count":4},{"x":896,"y":96,"w":32,"h":48,"count":4},{"x":768,"y":96,"w":32,"h":48,"count":4},
        {"x":896,"y":214,"w":32,"h":26,"count":4},

        {"x":512,"y":144,"w":32,"h":48,"count":12},
        {"x":896,"y":214,"w":32,"h":26,"count":4},

          {"x":512,"y":144,"w":32,"h":48,"count":4},{"x":896,"y":144,"w":32,"h":48,"count":4},{"x":768,"y":144,"w":32,"h":48,"count":4},
        {"x":896,"y":214,"w":32,"h":26,"count":4},

        {"x":512,"y":192,"w":32,"h":48,"count":12},
        {"x":896,"y":214,"w":32,"h":26,"count":4}
      ],
Will that work with new versions?

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Roads

#69

Post by JustAnyone »

Yes.

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

Plugin Creator

Platform

Re: Roads

#70

Post by CommanderABab »

Code: Select all

"frames per bridge":16,
is also required.

User avatar
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 23:59
Plugins: Showcase Store

Platform

Re: Roads

#71

Post by rickykingz »

red highway.png
red highway.png (5.37 KiB) Viewed 7833 times
Hey I want to make Highway what all I need to do far as json for it I want to make this into a highway
Bridge_frames.png
Bridge_frames.png (4.97 KiB) Viewed 7833 times
tunnel_frames.png
tunnel_frames.png (2.16 KiB) Viewed 7833 times

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

Plugin Creator

Platform

Re: Roads

#72

Post by CommanderABab »

You could try:

Code: Select all

[{  

     "active": true,
     "id":"$nmrredroad00", 
     "type":"road", 
     "author": "Commander ABab",
     "level":1,
     "width":2,
     "height":1,

     "min level":-1,"max level":3,
     "frames per bridge":16,
     "bridge height":12,
     "bridge price":100,
     "price":10,
     "tunnel frames":[
        {"bmp":"tunnel_frames.png","w":16,"count":4}
     ],
     "bridge frames":[
      {"bmp":"Bridge_frames.png","w":32,"h":48,"count":16}       
    ],
     "map color":{"r":146,"g":0,"b":0},
     "frames per bridge":16,
     "frames":[
       {"bmp":"red highway.png","w":32,"h":16,"count":16},      
       {"bmp":"red highway.png","w":32,"h":16,"count":16},
       {"bmp":"red highway.png","w":32,"h":16,"count":16},
       {"bmp":"red highway.png","w":32,"h":16,"count":16}
     ],     
     "x flags":{
      "flag normal":true, 
      "flag user2":true,
      "flag user3":true,
      "flag airport":true,
      "flag military":true
     },
     "overrunnable":         true,
     "one way":              true,    
     "speed":                4,
     "monthly price":        4,
     "auto join":      true,
     "allow bus stop": true,
     "allow crossing": true,
     "allow transfer": true,
     "pile distant": 10,
     "title":"nmr red road title", 
     "text":"nmr red road text",
     "hidden":false
      
    
}
]
:)

User avatar
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 23:59
Plugins: Showcase Store

Platform

Re: Roads

#73

Post by rickykingz »

Can I use that json n can you tell how do you understand w/h/count on json

User avatar
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 23:59
Plugins: Showcase Store

Platform

Re: Roads

#74

Post by rickykingz »

Something not right here
Something not right here

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3223
Joined: 28 May 2017, 01:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

#75

Post by Mg3094066 »

Neonmanricky wrote:
30 Nov 2019, 04:55
Capture+_2019-11-29-21-53-27.png
that frames... please dont use my frames without permission

User avatar
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 23:59
Plugins: Showcase Store

Platform

Re: Roads

#76

Post by rickykingz »

Sorry didn't know it was your n I was testing it to understand json for everything

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

Plugin Creator

Platform

Re: Roads

#77

Post by CommanderABab »

For roads, it's width 1,2,3,4 etc, but height stays at 1.

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

Plugin Creator

Platform

Re: Roads

#78

Post by CommanderABab »

Neonmanricky wrote:
30 Nov 2019, 04:45
Can I use that json n can you tell how do you understand w/h/count on json
Yes, you can use.

w is width in pixels per frame,
h is height in pixels of image,
count is number of frames per image.

User avatar
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 23:59
Plugins: Showcase Store

Platform

Re: Roads

#79

Post by rickykingz »

I'm having trouble make the cars drive in one direction

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

#80

Post by Yakka »

Can I have Railway Frame Please.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”