Slow ships down at locks
Moderator: OpenTTD Developers
Slow ships down at locks
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.
-
- Tycoon
- Posts: 1534
- Joined: 14 Mar 2006 12:46
- Location: Netherlands
Re: Slow ships down at locks
and add lock-gates to the lock, default graphics all water would just flow through....
Re: Slow ships down at locks
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)
Re: Slow ships down at locks
... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
Re: Slow ships down at locks
You mean invisible vehicles that move the aircraft around?Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)
Re: Slow ships down at locks
no, a Finite State Machine is a concept in theoretical computer science, not actual pieces of machineryHyronymus wrote:You mean invisible vehicles that move the aircraft around?Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)

Re: Slow ships down at locks
Thanks for the link, nerdEddi wrote:no, a Finite State Machine is a concept in theoretical computer science, not actual pieces of machineryHyronymus wrote:You mean invisible vehicles that move the aircraft around?Eddi wrote:... it would become possible to do this if objects get statemachines (similar to how aircraft are moved on an airport)

Re: Slow ships down at locks
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?
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?
Re: Slow ships down at locks
Si senor. I don't see trains mentioned though, is there a reason for it?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?
Re: Slow ships down at locks
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.
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Slow ships down at locks
Don´t you remember TTDPatch?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). [...]
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
Re: Slow ships down at locks
Sadly I don't recall that (anymore) Michael but it's good to know it's possiblemichael blunck wrote:Don´t you remember TTDPatch?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). [...]
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

- Voyager One
- Tycoon
- Posts: 11204
- Joined: 28 Dec 2009 09:47
- Location: Rijeka, Croatia
Re: Slow ships down at locks
So... who's going to draw and code this?
Nice idea though.



Nice idea though.
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Slow ships down at locks
regardsVoyager One wrote:So... who's going to draw and code this?![]()
![]()
![]()
Nice idea though.
Michael
Re: Slow ships down at locks
Voyager One wrote:So... who's going to draw and code this?![]()
![]()
Nice idea though.
I'm trying to write the code for locks with lock-gates. Trying.ZxBiohazardZx wrote:and add lock-gates to the lock, default graphics all water would just flow through....
Formerly known as Juanjo
Re: Slow ships down at locks
Is there anything that governs the speed of locks in TTDPatch?michael blunck wrote:... picture of locks in TTDPatch ...
He's like, some kind of OpenTTD developer.
-
- Tycoon
- Posts: 5954
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Slow ships down at locks
I don´t think so.petern wrote:Is there anything that governs the speed of locks in TTDPatch?michael blunck wrote:... picture of locks in TTDPatch ...
regards
Michael
Re: Slow ships down at locks
So something similar to this...
He's like, some kind of OpenTTD developer.
-
- Tycoon
- Posts: 1660
- Joined: 16 Dec 2007 22:24
- Location: Idaho, USA
Re: Slow ships down at locks
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
"Fashions and cultures change, but steam trains shall always be majestic."
-Professor Hershel Layton
- andythenorth
- Tycoon
- Posts: 5705
- Joined: 31 Mar 2007 14:23
- Location: Lost in Music
Re: Slow ships down at locks
Neat. Is that a state machine that limits the number of ships in the lock? (/me hopes notpetern wrote:So something similar to this...

Lock gates and crap are overkill.

FIRS Industry Replacement Set (released) | HEQS Heavy Equipment Set (trucks, industrial trams and more) (finished)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Unsinkable Sam (ships) (preview released) | CHIPS Has Improved Players' Stations (finished)
Iron Horse ((trains) (released) | Termite (tracks for Iron Horse) (released) | Busy Bee (game script) (released)
Road Hog (road vehicles and trams) (released)
Who is online
Users browsing this forum: No registered users and 17 guests