Slow ships down at locks

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Slow ships down at locks

Post by Hyronymus »

Is it possible to slow ships down when entering a lock? Currently they move at their max speed while in reality they would even require to stop (I think that is impossible to code though). Locks could be regarded as bridges with a very low speed limit.
ZxBiohazardZx
Tycoon
Tycoon
Posts: 1534
Joined: 14 Mar 2006 12:46
Location: Netherlands

Re: Slow ships down at locks

Post by ZxBiohazardZx »

and add lock-gates to the lock, default graphics all water would just flow through....
User avatar
romazoon
Tycoon
Tycoon
Posts: 1291
Joined: 20 Jun 2010 23:16

Re: Slow ships down at locks

Post by romazoon »

I think you could achieve what your looking for by placing a buoy before and after the lock, then in your order list (the timetable part) will allow you to restrict speed from first bouey to the other (you need to place those buoy in your order list)
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: Slow ships down at locks

Post by Eddi »

... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Slow ships down at locks

Post by Hyronymus »

Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
You mean invisible vehicles that move the aircraft around?
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: Slow ships down at locks

Post by Eddi »

Hyronymus wrote:
Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
You mean invisible vehicles that move the aircraft around?
no, a Finite State Machine is a concept in theoretical computer science, not actual pieces of machinery :)
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Slow ships down at locks

Post by Hyronymus »

Eddi wrote:
Hyronymus wrote:
Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
You mean invisible vehicles that move the aircraft around?
no, a Finite State Machine is a concept in theoretical computer science, not actual pieces of machinery :)
Thanks for the link, nerd ;).
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: Slow ships down at locks

Post by Eddi »

it has nothing to do with "nerdism". just if you want to talk to developers, then you need to know the language they are speaking.

Airports (in OpenTTD) already have this statemachine which limits the speed of the aircraft on the ground, and can stop it if necessary. there are proposals to allow NewGRFs to specify their own statemachines to change the movement patterns of airports, and there are also proposals to offer that same mechanism to ships and roadvehicles.

if you have all that, you can make a NewGRF which provides a lock where the ship enters at low speed, stops in the middle, raises/lowers to the other level, and moves out at low speed...

¿comprende?
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Slow ships down at locks

Post by Hyronymus »

Eddi wrote:it has nothing to do with "nerdism". just if you want to talk to developers, then you need to know the language they are speaking.

Airports (in OpenTTD) already have this statemachine which limits the speed of the aircraft on the ground, and can stop it if necessary. there are proposals to allow NewGRFs to specify their own statemachines to change the movement patterns of airports, and there are also proposals to offer that same mechanism to ships and roadvehicles.

if you have all that, you can make a NewGRF which provides a lock where the ship enters at low speed, stops in the middle, raises/lowers to the other level, and moves out at low speed...

¿comprende?
Si senor. I don't see trains mentioned though, is there a reason for it?
Eddi
Tycoon
Tycoon
Posts: 8254
Joined: 17 Jan 2007 00:14

Re: Slow ships down at locks

Post by Eddi »

no particular reason, it's just that trains already have Everything(TM) (NewGRF stations in particular) while the other transportation types still need them. so even if you find a use case (e.g. small drawbridges) they would still be the lowest priority. also since the trains are already so deeply developed, it's going to be more complicated to integrate state machines.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Slow ships down at locks

Post by michael blunck »

Hyronymus wrote: Is it possible to slow ships down when entering a lock? Currently they move at their max speed while in reality they would even require to stop (I think that is impossible to code though). [...]
Don´t you remember TTDPatch?

Only in OTTD, ships are running max speed through locks, and even glide up/down a graded slope of water! Just silly.

Whereas in TTDPatch, ships enter the locks, then stop and are lifted/lowered vertically to their new height, and only then leave the lock.

So, it´s not even "possible", it is already in existence, however not in OTTD.

regards
Michael
Image
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: Slow ships down at locks

Post by Hyronymus »

michael blunck wrote:
Hyronymus wrote: Is it possible to slow ships down when entering a lock? Currently they move at their max speed while in reality they would even require to stop (I think that is impossible to code though). [...]
Don´t you remember TTDPatch?

Only in OTTD, ships are running max speed through locks, and even glide up/down a graded slope of water! Just silly.

Whereas in TTDPatch, ships enter the locks, then stop and are lifted/lowered vertically to their new height, and only then leave the lock.

So, it´s not even "possible", it is already in existence, however not in OTTD.

regards
Michael
Sadly I don't recall that (anymore) Michael but it's good to know it's possible :).
User avatar
Voyager One
Tycoon
Tycoon
Posts: 11204
Joined: 28 Dec 2009 09:47
Location: Rijeka, Croatia

Re: Slow ships down at locks

Post by Voyager One »

So... who's going to draw and code this? :lol: :lol: :lol:

Nice idea though.
Leon

Image Image Image Image
"... all I ask is a tall ship and a star to steer her by..." - John Masefield
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Slow ships down at locks

Post by michael blunck »

Voyager One wrote:So... who's going to draw and code this? :lol: :lol: :lol:

Nice idea though.
TTDPatch_lock.gif
TTDPatch_lock.gif (74.01 KiB) Viewed 4954 times
regards
Michael
Image
J0anJosep
Traffic Manager
Traffic Manager
Posts: 139
Joined: 06 Aug 2011 15:51
Location: Spain

Re: Slow ships down at locks

Post by J0anJosep »

Voyager One wrote:So... who's going to draw and code this? :lol: :lol: :lol:

Nice idea though.
ZxBiohazardZx wrote:and add lock-gates to the lock, default graphics all water would just flow through....
I'm trying to write the code for locks with lock-gates. Trying.
Formerly known as Juanjo
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1728
Joined: 30 Mar 2005 09:43

Re: Slow ships down at locks

Post by peter1138 »

michael blunck wrote:... picture of locks in TTDPatch ...
Is there anything that governs the speed of locks in TTDPatch?
He's like, some kind of OpenTTD developer.
michael blunck
Tycoon
Tycoon
Posts: 5948
Joined: 27 Apr 2005 07:09
Contact:

Re: Slow ships down at locks

Post by michael blunck »

petern wrote:
michael blunck wrote:... picture of locks in TTDPatch ...
Is there anything that governs the speed of locks in TTDPatch?
I don´t think so.

regards
Michael
Image
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1728
Joined: 30 Mar 2005 09:43

Re: Slow ships down at locks

Post by peter1138 »

So something similar to this...
He's like, some kind of OpenTTD developer.
Supercheese
Tycoon
Tycoon
Posts: 1660
Joined: 16 Dec 2007 22:24
Location: Idaho, USA

Re: Slow ships down at locks

Post by Supercheese »

Yes, that's a definite improvement! It'd be even better with more appropriate lock graphics (gates and such), although I don't think there's a way to control the number of ships in a lock at the same time, nor a way to make gates open/close based on ship presence... :?
Eyecandy Road Vehicles | Fake Subways | Supercheese's NewObjects

"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 4 guests