Roads

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

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl » 19 Mar 2019, 18:59

Okay, so aside from the Walmart plugin, I want to create a new freeway.

It will consist of three kinds of one-way roads.

Screenshot_2019-03-19-11-48-38.png
Screenshot_2019-03-19-11-48-43.png
Screenshot_2019-03-19-11-48-48.png
The "Inner freeway" will have a solid yellow line on the left side.

The "Center freeway" will be a filler in case you want that side of the freeway to have more lanes ...

And the "Outer freeway" will have a solid WHITE line on the RIGHT side.

When put together,vthe freeway should look like this ...

Screenshot_2019-03-19-11-49-16.png

... or like this, if you want more lanes.

Screenshot_2019-03-19-11-49-22.png

When utilizing the Center Freeway, there is no limit to how many lanes are on one side of your freeway.

I may need help with this, as there is a specific way I want to do the lane separation lines. I want them to be 6 pixels wide, and 3 pixels tall.
You do not have the required permissions to view the files attached to this post.
User avatar
-LeoLeo-
Inhabitant of a Solar System
Reactions:
Posts: 1623
Joined: 08 Jul 2017, 10:46
Location: Usa
Skype: magHibVE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by -LeoLeo- » 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
User avatar
Vahlee Airbusgirl
Inhabitant of a Conurbation
Reactions:
Posts: 464
Joined: 04 Mar 2018, 17:40
Location: Spokane Valley
Plugins: Showcase Store

Plugin Creator

Platform

Re: Roads

Post by Vahlee Airbusgirl » 20 Mar 2019, 14:12

-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
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Roads

Post by Lobby » 08 Jun 2019, 15:48

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

Re: Roads

Post by yusuf8a684 » 11 Jun 2019, 11:00

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: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Roads

Post by JustAnyone » 11 Jun 2019, 15:19

Yes.
:pickle:
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 » 11 Jun 2019, 16:29

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 » 29 Nov 2019, 23:49

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

Plugin Creator

Platform

Re: Roads

Post by CommanderABab » 30 Nov 2019, 01:13

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 » 30 Nov 2019, 02:45

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 » 30 Nov 2019, 02:55

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 » 30 Nov 2019, 03:51

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 » 30 Nov 2019, 03:53

Sorry didn't know it was your n I was testing it to understand json for everything
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 » 30 Nov 2019, 04:36

For roads, it's width 1,2,3,4 etc, but height stays at 1.
my avatar:
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 » 30 Nov 2019, 04:40

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 » 30 Nov 2019, 04:43

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 » 10 Jan 2020, 03:19

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
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Roads

Post by Lobby » 10 Jan 2020, 14:53

Do you mean these?
image.png
You do not have the required permissions to view the files attached to this post.
User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 129
Joined: 28 Mar 2019, 07:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by Lakan Haraya » 27 Jan 2020, 02:54

Excuse me :') what does offset x/y mean? :/
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors

“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
OnlyMe
Settler
Reactions:
Posts: 1
Joined: 07 Feb 2020, 00:51
Plugins: Showcase Store

Re: Roads

Post by OnlyMe » 12 Feb 2020, 01:45

How would it look like for high ways. Do you have a template for it.