Roads

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Vahlee Airbusgirl
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 04 Mar 2018, 17:40
Location: Spokane Valley
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl »

Brody Craft wrote: 19 Mar 2019, 22:33 Looks like someone plays Intersection Controller.
Yes I do ... is that a bad thing?
User avatar
Vahlee Airbusgirl
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 04 Mar 2018, 17:40
Location: Spokane Valley
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl »

-LeoLeo- wrote: 19 Mar 2019, 21: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, 09:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

Post by Brody Craft »

TiarDVaughn wrote: 20 Mar 2019, 14:10
Brody Craft wrote: 19 Mar 2019, 22: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.
When you get to be called a Board Index because you are too good.>:3
User avatar
Vahlee Airbusgirl
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 04 Mar 2018, 17:40
Location: Spokane Valley
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl »

Brody Craft wrote: 21 Mar 2019, 07: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, 09:15
Location: SE Asia
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

Post by Brody Craft »

TiarDVaughn wrote: 21 Mar 2019, 20:29
Brody Craft wrote: 21 Mar 2019, 07:33
No, i play it as well, im trying to build a big town thing.
Cool! What's your game name?
Brody Jones.
When you get to be called a Board Index because you are too good.>:3
User avatar
Vahlee Airbusgirl
Inhabitant of a Conurbation
Reactions:
Posts: 471
Joined: 04 Mar 2018, 17:40
Location: Spokane Valley
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl »

Brody Craft wrote: 21 Mar 2019, 22:44
Brody Jones.
Okay. I'll find you on Intersection Controller.
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3760
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Roads

Post by Lobby »

Added a note on how to handle terrain :66:
yusuf8a684
Reactions:

Re: Roads

Post by yusuf8a684 »

JustAnyone wrote: 30 Apr 2018, 16: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
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Roads

Post by JustAnyone »

Yes.
:pickle:
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

Code: Select all

"frames per bridge":16,
is also required.
my avatar:
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 21:59
Plugins: Showcase Store

Platform

Re: Roads

Post by rickykingz »

red highway.png
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
tunnel_frames.png
You do not have the required permissions to view the files attached to this post.
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

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
      
    
}
]
:)
my avatar:
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 21:59
Plugins: Showcase Store

Platform

Re: Roads

Post by rickykingz »

Can I use that json n can you tell how do you understand w/h/count on json
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 21:59
Plugins: Showcase Store

Platform

Re: Roads

Post by rickykingz »

Capture+_2019-11-29-21-53-27.png
You do not have the required permissions to view the files attached to this post.
User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3217
Joined: 27 May 2017, 23:50
Location: Venezuelan Republic of Mexico
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by Mg3094066 »

Neonmanricky wrote: 30 Nov 2019, 02:55 Capture+_2019-11-29-21-53-27.png
that frames... please dont use my frames without permission
I threw my dignity to trash and downloaded Free Fire... But someway i liked it ":'D

But i think it was too early to celebrate... my internet runs at 8kb...

Just wait another month... :bb
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 21:59
Plugins: Showcase Store

Platform

Re: Roads

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: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

For roads, it's width 1,2,3,4 etc, but height stays at 1.
my avatar:
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by CommanderABab »

Neonmanricky wrote: 30 Nov 2019, 02: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.
my avatar:
rickykingz
Villager
Reactions:
Posts: 22
Joined: 10 May 2019, 21:59
Plugins: Showcase Store

Platform

Re: Roads

Post by rickykingz »

I'm having trouble make the cars drive in one direction
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 »

Can I have Railway Frame Please.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
Previous topicNext topic