Making road speed limits based on town zone (or lack thereof)
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 9
- Joined: 16 Dec 2021 12:02
Making road speed limits based on town zone (or lack thereof)
Currently, some NewGRFs such as U&RaTT have different road types with varying speed limits, including "urban" road types which have no benefit except realism (as they are slower than equivalent non-urban which also can have houses nearby), supported by NRT. It confuses me what the point of the urban roads is as even highways (which don't spawn houses) can have a "sidewalk".
Then I thought, what if town zone (or lack thereof for roads outside a town) rather than road type (or even both, with the lower taking precedence) was used to determine speed limits, say between 50km/h and 70km/h within cities and 100km/h or higher (or unlimited) outside cities? Would this be feasible to be part of the base game or with NewGRFs? I wonder if this is even possible.
Then I thought, what if town zone (or lack thereof for roads outside a town) rather than road type (or even both, with the lower taking precedence) was used to determine speed limits, say between 50km/h and 70km/h within cities and 100km/h or higher (or unlimited) outside cities? Would this be feasible to be part of the base game or with NewGRFs? I wonder if this is even possible.
Re: Making road speed limits based on town zone (or lack thereof)
Hello
Tschö, Auge
The sidewalk is (in the most sets) the default sidewalk from the main game. It's drawn (when drawn) under the road graphic and its drawing depends on the town zone (no sidewalk or sidewalk, with or without trees or lamps …). This leads to the situation, that the default sidewalks are drawn under every road type, even this makes no sense. Unfortunately NRT does not provide a way to regulate the sidewalks road type dependent.TransportFanMar wrote: ↑10 Jan 2022 06:08 Currently, some NewGRFs such as U&RaTT have different road types with varying speed limits, including "urban" road types which have no benefit except realism (as they are slower than equivalent non-urban which also can have houses nearby), supported by NRT. It confuses me what the point of the urban roads is as even highways (which don't spawn houses) can have a "sidewalk".
No, with the current game code this isn't possible (as far as I know). All towns are generated with the fastest available roads (depending on time of game start) that are allowed as town roads. Beside of that I wouldn't like this mechanism but that's my own, private opinion.TransportFanMar wrote: ↑10 Jan 2022 06:08 Then I thought, what if town zone (or lack thereof for roads outside a town) rather than road type (or even both, with the lower taking precedence) was used to determine speed limits, say between 50km/h and 70km/h within cities and 100km/h or higher (or unlimited) outside cities? Would this be feasible to be part of the base game or with NewGRFs? I wonder if this is even possible.
Tschö, Auge
-
- Traffic Manager
- Posts: 168
- Joined: 14 Nov 2021 06:56
- Location: Canada
Re: Making road speed limits based on town zone (or lack thereof)
How do we tell what town zone is, you can't seem to see how far they go. Otherwise its a good idea, I manually put in 30 km/h roads in some towns as residential streets but as the towns grow they extend the roads with modern full speed road pieces, this doesn't look too realistic to meTransportFanMar wrote: ↑10 Jan 2022 06:08 Currently, some NewGRFs such as U&RaTT have different road types with varying speed limits, including "urban" road types which have no benefit except realism (as they are slower than equivalent non-urban which also can have houses nearby), supported by NRT. It confuses me what the point of the urban roads is as even highways (which don't spawn houses) can have a "sidewalk".
Then I thought, what if town zone (or lack thereof for roads outside a town) rather than road type (or even both, with the lower taking precedence) was used to determine speed limits, say between 50km/h and 70km/h within cities and 100km/h or higher (or unlimited) outside cities? Would this be feasible to be part of the base game or with NewGRFs? I wonder if this is even possible.
Re: Making road speed limits based on town zone (or lack thereof)
Here is a simple little tool that I am working on.
It is gpl v2 so do with it what you will.
It is object based and can be overbuilt without dynamite.
When placed within a town's limits it displays the zone of that tile.
Beyond a town's limits it displays a solid red tile.
The numbers will change as a town grows so you might have to press "Apply Changes" to see the results.
Another option to see the changes is to simply drag a mini window across the tiles.
At the moment only flat tiles are supported. Sloped tiles are in the development roadmap.
It is very much a work in progress so there is no documentation yet.It is gpl v2 so do with it what you will.
It is object based and can be overbuilt without dynamite.
When placed within a town's limits it displays the zone of that tile.
Beyond a town's limits it displays a solid red tile.
The numbers will change as a town grows so you might have to press "Apply Changes" to see the results.
Another option to see the changes is to simply drag a mini window across the tiles.
At the moment only flat tiles are supported. Sloped tiles are in the development roadmap.
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Making road speed limits based on town zone (or lack thereof)
You can grab citymania client (https://citymania.org/downloads) if you want to see town zones, it has a zoning mode that shows them all nicely.
Re: Making road speed limits based on town zone (or lack thereof)
Nice._dp_ wrote: ↑11 Jan 2022 12:26 You can grab citymania client (https://citymania.org/downloads) if you want to see town zones, it has a zoning mode that shows them all nicely.
Do you rebase it with new OpenTTD releases?
wallyweb on tt-forums: Screenshots - Wallyweb World - Projects & Releases
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
wallyweb on Simuscape: Projects - Releases
Other Stuff: TTDPatch 2.6 "Nightly" download - cirdan's OpenTTD branch (New Map Features)
Screenshot Of The Month Contest Winner: August 2015 - Tied May 2016 - January 2018 - December 2018 - May 2019
Re: Making road speed limits based on town zone (or lack thereof)
It is impossible to determine the speed limits in an town zone. Thus, there is no such thing as variable speed in the current game code. The city road is drawn on top of the sidewalk, which is used by default in the base game. For a city road, it doesn't depend on the town zone, it's just for decoration and to taste. U&RaTT has "sequence" parameters that limit the speed of movement only in the city, which are not available to the player. Unfortunately, this is not enough. For me, the speed limit on every type of road is not impressive. Thus, any vehicles, including passenger cars, move the same way with a limited speed of the road type. Therefore, passenger cars cannot catch up with the truck. This game is a bit boring.
There is another idea. Vehicles have variable speeds and so on. It's a bit like reality. But this will require a lot of work with the compatibility of road types. For example, a bus travels on non-high-speed asphalt roads, gaining a maximum speed of 120 km/h, despite the fact that the types of roads have speed limits that are much lower than the speed of the bus. If the bus is traveling on a highway where there are no speed limits, the speed will increase faster than the maximum speed. This is closer to reality.
There is another idea. Vehicles have variable speeds and so on. It's a bit like reality. But this will require a lot of work with the compatibility of road types. For example, a bus travels on non-high-speed asphalt roads, gaining a maximum speed of 120 km/h, despite the fact that the types of roads have speed limits that are much lower than the speed of the bus. If the bus is traveling on a highway where there are no speed limits, the speed will increase faster than the maximum speed. This is closer to reality.
-
- Transport Coordinator
- Posts: 287
- Joined: 18 Feb 2017 17:47
Re: Making road speed limits based on town zone (or lack thereof)
At least road vehicles can have adaptable max speed in that sense, as they can be made to go slower than the actual speed limit of the roadtype. So a truck can run at 70 kph on country roads, 90 kph on highways, or even only 40 kph on city roads, despite the roads may have higher speed limits. It is not difficult to code, but it is difficult to give support for every roadtype set out there.
Who is online
Users browsing this forum: FlyveHest and 25 guests