[ottd] Best spec to vary ship speed by water tile class?

Discussions about the technical aspects of graphics development, including NewGRF tools and utilities.

Moderator: Graphics Moderators

Post Reply
User avatar
andythenorth
Tycoon
Tycoon
Posts: 5705
Joined: 31 Mar 2007 14:23
Location: Lost in Music

[ottd] Best spec to vary ship speed by water tile class?

Post by andythenorth »

Use ship prop 14/15?

Or extend cb36 to run more often, and provide a new var for checking water class of current tile?

Question about best spec, not nfo/nml implementation.

This is in connection with some ponies :)
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: [ottd] Best spec to vary ship speed by water tile class?

Post by frosch »

a) If prop 14/15 suit your needs, then use them. They are available as stated in the specs.
b) If prop 14/15 do not suit your needs, then explain what interactions between canal/sea and speed are missing.
c) If you want to treat river/canal differently, I am against it :p
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: [ottd] Best spec to vary ship speed by water tile class?

Post by Eddi »

"realistically", rivers would have a flowing speed which gets added/substracted from ship speed.
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13235
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Re: [ottd] Best spec to vary ship speed by water tile class?

Post by Hyronymus »

Eddi wrote:"realistically", rivers would have a flowing speed which gets added/substracted from ship speed.
You mean there is no current in canals?
Michi_cc
OpenTTD Developer
OpenTTD Developer
Posts: 619
Joined: 14 Jun 2004 23:27
Location: Berlin, Germany
Contact:

Re: [ottd] Best spec to vary ship speed by water tile class?

Post by Michi_cc »

andythenorth wrote:Or extend cb36 to run more often, and provide a new var for checking water class of current tile?
The maximum speed is already updated with CB 36 when water class changes, only a var for water class is missing currently.
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: [ottd] Best spec to vary ship speed by water tile class?

Post by FooBar »

Hyronymus wrote:You mean there is no current in canals?
Most canals are guarded by locks. As a result, there's much less current through a canal than through a river. Of course, there may be exceptions.

So if you really wanted to implement this properly, the game should check whether a canal has a lock or not and decide the current based on that. But that's probably too much effort for too little benefit. This is a game after all :D
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 18 guests