Roads

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
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- » 30 Apr 2018, 15:30

Excuse me, is the in-game bridge texture 'steal'able? ('cause I want to same some space for users)
If so, what ID?
Last edited by -LeoLeo- on 30 Apr 2018, 17:25, edited 1 time in total.
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 » 30 Apr 2018, 16:13

Not sure.
Just use this code which is the game'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}
      ],
:pickle:
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- » 30 Apr 2018, 16:58

@JustAnyone

Ermmm........
You do not have the required permissions to view the files attached to this post.
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 » 30 Apr 2018, 17:00

You are on your own there o_O
: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 » 30 Apr 2018, 17:45

-LeoLeo- wrote: 30 Apr 2018, 16:58 @JustAnyone

Ermmm........
Look in the frames statement:
Screenshot_20180430-131534.jpg
You probably defined y without a value due to a quote or missing colon or comma.
You do not have the required permissions to view the files attached to this post.
my avatar:
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- » 30 Apr 2018, 18:54

Oh... They are Capital Ys....

Godamit me!
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 » 01 May 2018, 00:42

-LeoLeo- wrote: 30 Apr 2018, 18:54 Oh... They are Capital Ys....

Godamit me!
With the years comes wisdom! I am assuming you were thinking in Russian there.
my avatar:
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- » 01 May 2018, 06:23

I'm so confused. It works on a 2-way but not 1-way... But i mean... It works. (?)
You do not have the required permissions to view the files attached to this post.
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 » 01 May 2018, 07:07

That's some serious stuff you got there.
:pickle:
User avatar
NEPman
Small-town resident
Reactions:
Posts: 37
Joined: 24 Apr 2018, 11:15
Location: <..>
Plugins: Showcase Store
Version: Beta

Platform

Re: Roads

Post by NEPman » 11 Jul 2018, 03:07

How to write that fire trucks do not drive on some roads? It's just that I build sidewalks, and fire trucks go them.
setapdede
Townsman
Reactions:
Posts: 71
Joined: 27 Jun 2018, 08:27
Location: Romania
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Roads

Post by setapdede » 13 Jul 2018, 16:49

One-way road texture plz
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 » 14 Jul 2018, 01:28

my avatar:
yusuf8a684
Reactions:

Re: Roads

Post by yusuf8a684 » 22 Jul 2018, 12:15

How can i make bridge road different. I mean, i made a rail and it has no ground so ground will be show under it but i dont want to make a flying bridge too... How can i make it?
ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 294
Joined: 26 Aug 2018, 12:07
Plugins: Showcase Store

Platform

Re: Roads

Post by ElephantEthan » 07 Sep 2018, 14:37

Lobby How or when can we disable emergency cars on custom roads?
I downloaded the Pedestrian Zone plugin and I really don't like this:
Euife_18-09-07_16.32.10.png
You do not have the required permissions to view the files attached to this post.
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 Sep 2018, 21:11

Should be fixed by now.
Shama
Settler
Reactions:
Posts: 7
Joined: 08 May 2018, 09:00
Plugins: Showcase Store

Re: Roads

Post by Shama » 23 Jan 2019, 04:53

Does anyone know if there's a way to have a choice of traffic lights in game?

Like you do with "bridge frames" in the json so that when you click the bridge you can rebuild with different styles. Have traffic light designs I would like to switch on demand like the bridges.
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Roads

Post by Lobby » 23 Jan 2019, 08:33

I'm afraid there's only one traffic light supported per road.
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 » 23 Jan 2019, 18:32

Shama wrote: 23 Jan 2019, 04:53 Does anyone know if there's a way to have a choice of traffic lights in game?

Like you do with "bridge frames" in the json so that when you click the bridge you can rebuild with different styles. Have traffic light designs I would like to switch on demand like the bridges.


(https://youtu.be/Ff3a7TQJJbk I put a marker to the actual content in the comments.)

This can be done on roads with the same priority level easily.
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 » 23 Jan 2019, 18:37

You can in the settings adjust if traffic lights are built automatically with the roads. I always keep this off myself.
my avatar:
Shama
Settler
Reactions:
Posts: 7
Joined: 08 May 2018, 09:00
Plugins: Showcase Store

Re: Roads

Post by Shama » 31 Jan 2019, 05:01

Lobby wrote: 23 Jan 2019, 08:33 I'm afraid there's only one traffic light supported per road.
No big deal! Have enough variety with types of roads and sidewalks etc i don't need the extra work. Just gonna put different light types for certain roads. thinking stop signs for suburban roads and flashing four way for country expressways. Which leads me to another question. I want to make a flashing yellow for the cars on the expressway (will just use a yellow in the green phase, and use the yellow phase for the dark part of the flash) and flashing red for the cross street (same as above)... but... is there any way to make the cars actually not stop for the "flashing" yellow light (im thinking like non stopping crossings plugin) and actually stop for the "flashing" red? even if its a deco add on.
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!