Page 1 of 3

Speed limits for Road vehicles

Posted: 20 Dec 2007 12:21
by pavel1269
I was browsing forums when i saw this topic in suggestions. I liked it so i started to work on it.

I made a check if any house is present in 5x5(2tiles to each directory from vehicle) from vehicle position. And too if it's on "city land".

Done:
  • - Limit speed in the towns
    • - Normal 50km/h
      - One-way road 70km/h
    - Limit speed outside the towns
    • - Normal 90km/h
      - One-way road 130km/h
    - Setup-able speeds
Todo:
  • - Nothing i hope
When enter city, vehicle slow down
Vodovná Transport, 14. led 2060.png
(430.14 KiB) Downloaded 635 times
If limiting speed outside town is on and in town off, All roads have speed limits like outside town.
If one-way limit is set to 0, it will use speed limit from two-way.

*Update*: poll :)
*Update*: description to "5x5" and new version of patch, just added switch
*Update*: added to do thing and end of vote(who didnt vote, still can but it will end tomorow, because i dont want to delete that vote)
*Update*: new version
*Update*: final version i hope, added win32 binary, changed topic name
*Update*: new verion, now checking around tiles once per tile (~5x-50x less)

*Update*: 5x5 thing is called once per tile, only if patch to limit speed in town is on and if car is near town.

Re: Speed limit in Towns

Posted: 20 Dec 2007 12:21
by pavel1269
Here, vehicle is still in city so it doesn't speed up
Vodovná Transport, 20. led 2060.png
(425.58 KiB) Downloaded 423 times
Here, it just exited the city so it speed up
Vodovná Transport, 21. led 2060.png
(424.41 KiB) Downloaded 387 times
EDIT: here is one-way in city :) i will work on it and then release then patch
Frýdek-Místek Transport, 1. úno 2060.png
(388.64 KiB) Downloaded 399 times

Re: Speed limit in Towns

Posted: 20 Dec 2007 18:48
by Wacki
Hi Pavel,
I think it is really good!!!
I like it ;)

Re: Speed limit in Towns

Posted: 20 Dec 2007 18:50
by DeletedUser5
There should be something in patches menu like that: Limit speed outside the towns. Then people could set what they want.

Re: Speed limit in Towns

Posted: 20 Dec 2007 19:33
by Youri219
Other, just make it a patch option.

Re: Speed limit in Towns

Posted: 20 Dec 2007 19:36
by pavel1269
i think it's clear now, 4yes, 3no and 2patch option, so i will make patch option 8)

Re: Speed limit in Towns

Posted: 20 Dec 2007 19:43
by DeletedUser5
Yeah. 4 for yes 2 for patch option, but however you'll make patch option. I voted for that, because I think that's the better way to make a compromise between those who voted for yes and those who voted for no. And how about making option: Speed limit out of towns, Speed limit in towns, and something like that. There should be settings for that: XXmph and Unlimited.

Re: Speed limit in Towns

Posted: 20 Dec 2007 19:52
by pavel1269
Soeb wrote:Yeah. 4 for yes 2 for patch option, but however you'll make patch option.
4yes - 3no = 1yes :) and 2patch option :D ;)
Soeb wrote:There should be settings for that: XXmph and Unlimited.
yeah, this is almsot done, but in km/h since i can't found defined speed -> game speed ... in km/h it's ~(defined_speed/2 - 1), but not exactly

Re: Speed limit in Towns

Posted: 20 Dec 2007 22:21
by athanasios
Patch option please. I hate speed limits (in real life). :mrgreen:

Re: Speed limit in Towns

Posted: 21 Dec 2007 00:44
by Bilbo
Hmmm ... the road vehicles are pretty inferior when compared to the trains, so now they would be even worse? (by limiting their speed) I guess that would basically kill their usage completely.

Re: Speed limit in Towns

Posted: 21 Dec 2007 11:06
by pavel1269
If you play for money, then you will don't like or even hate this patch.
But, if you play for good-looking realistic nice complex system, you should like this :)
Every game i play is with daylength, so it will not kill them ;) at least, for me.

Re: Speed limit in Towns

Posted: 21 Dec 2007 16:05
by pavel1269
so, patch is done and i hope, you will bug test it :)

Re: Speed limits for Road vehicles

Posted: 21 Dec 2007 23:21
by athanasios
Original road vehicles are killed from birth!
Have to check this with LV4.

Re: Speed limits for Road vehicles

Posted: 22 Dec 2007 16:35
by Qu@rks
I think this is a good start, however, I believe it's too early for speed limits. There should be highways which have unlimited speed for road vehicles, then 2lane roads outside towns (like two one ways) that limit speed to maybe 120 km/h and regular roads outside towns which may be limited to 80 or 100. Inside towns should be no more than 50 (except on highways through towns).

Problem with this idea is: it requires much bigger towns to appear realistic. A highway between 2 towns with a population of 1000 would be quite stupid...

Re: Speed limits for Road vehicles

Posted: 23 Dec 2007 08:52
by MT3269
Is there a chance trains could also be speed limited like in real life? This would be a significant improvement in the realism side of things.

Re: Speed limits for Road vehicles

Posted: 23 Dec 2007 15:40
by LordAzamath
There is a patch option of wagon speed limit for that, I guess.

Re: Speed limits for Road vehicles

Posted: 23 Dec 2007 16:00
by Bilbo
Well, not the wagons speed limit, but perhaps limiting the speed near level crossings (trains going to crossings have some speed limit for safety, in case some vehicle got stuck there, I think about 120km/h) or other features

Re: Speed limits for Road vehicles

Posted: 23 Dec 2007 17:28
by pavel1269
1) I should easily make that vehicles will slow down on crossing, but it will kill them totaly, but it will be like in real life :P :) And with trains, sameone should make that patch ;)

2) new verion, saves CPU ;)

Re: Speed limits for Road vehicles

Posted: 24 Dec 2007 14:06
by SergeS
No - Trains on level crossings don't have any limit as far as i know - HiSpeed railroad is builded without them :-) ... but there is other thing - track for faster trains is mooooore expensive , switches have a speed limit when train is going to the side track and so on ;-)

EDIT: Speed limit for level crossing is used only when there is only red lights on crossing - and train must slow down to 40 km/h
EDIT2: Track must be repaired - and it takes some time to do this ... if not - train must slown down on this truck

Re: Speed limits for Road vehicles

Posted: 26 Dec 2007 00:11
by Bilbo
SergeS wrote:No - Trains on level crossings don't have any limit as far as i know - HiSpeed railroad is builded without them :-) ... but there is other thing - track for faster trains is mooooore expensive , switches have a speed limit when train is going to the side track and so on ;-)

EDIT: Speed limit for level crossing is used only when there is only red lights on crossing - and train must slow down to 40 km/h
EDIT2: Track must be repaired - and it takes some time to do this ... if not - train must slown down on this truck
In czech republic, trains on track with fenced level crossings have limit I think 160 km/h (only one train, Pendolino is actually limited by this). Maximal speed on track with unfenced crossings (usually some rarely-used freight tracks) is lower. These regulations will probably vary by country.