Smoking ships

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
kettel
Route Supervisor
Route Supervisor
Posts: 509
Joined: 02 Jun 2008 23:08
Location: California

Smoking ships

Post by kettel »

Is there any way to make ships emit smoke like trains do?

Asking this I keep in mind Osprey and Chinook from the Planeset; those obviously have custom graphics of their double rotors, so I guess it's possible to apply some kind of animation (as long as you have one) on a (any?) vehicle.

I understand it's not easy to code and nobody's gonna explain the whole process to me, but at least tell me if it's possible at all and if yes what should I start with or where I can read about it?

P.S. I've found this old thread about smoking ships, but it was dead for about 5 years and didn't contain anything on this matter.
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Re: Smoking ships

Post by Lakie »

Planes unlike ships have 2 'vehicles', the plane itself and the shadow. Ships however only have one vehicle, the ship, so using the same system as the planeset would not work (at all really).

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Smoking ships

Post by michael blunck »

kettel wrote:Is there any way to make ships emit smoke like trains do?
Not like trains do, but in principle yes.

regards
Michael
Image
User avatar
kettel
Route Supervisor
Route Supervisor
Posts: 509
Joined: 02 Jun 2008 23:08
Location: California

Re: Smoking ships

Post by kettel »

michael blunck wrote:
kettel wrote:Is there any way to make ships emit smoke like trains do?
Not like trains do, but in principle yes.
I knew it! :D
Can you give me a hint on how to make it? Or at least what to start with?
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: Smoking ships

Post by michael blunck »

kettel wrote:Can you give me a hint on how to make it?
Well, the only way to do it would be by a very simple approach: to have a couple of different sprites containing both the vessel and the smoke, and to show these sprites according to the animation counter:

Code: Select all

// [8 "ship+smoke" sprites]

        -1 * 13       02 02 00 01 01 00 00 00 00
        -1 * 13       02 02 01 01 01 01 00 01 00
        -1 * 13       02 02 02 01 01 02 00 02 00
        -1 * 13       02 02 03 01 01 03 00 03 00
        -1 * 13       02 02 04 01 01 04 00 04 00
        -1 * 13       02 02 05 01 01 05 00 05 00
        -1 * 13       02 02 06 01 01 06 00 06 00
        -1 * 13       02 02 07 01 01 07 00 07 00

// animation
        -1 * 38       02 02 08 81 0A 00 0F 07
                                00 00 00 00
                                01 00 01 01
                                02 00 02 02
                                03 00 03 03
                                04 00 04 04
                                05 00 05 05
                                06 00 06 06
                                07 00

        -1 * 7        03 02 01 <veh-ID> 00 08 00
I´ve tested that years ago, but found the result unsuitable.

HTH
regards
Michael
Image
User avatar
kettel
Route Supervisor
Route Supervisor
Posts: 509
Joined: 02 Jun 2008 23:08
Location: California

Re: Smoking ships

Post by kettel »

michael blunck wrote:I´ve tested that years ago, but found the result unsuitable.
I agree it's not very efficient approach, but thanks for the idea!
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 2 guests