How do make smoke come out of factories like power stations

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
Dreedo
Engineer
Engineer
Posts: 41
Joined: 14 Dec 2007 18:11

How do make smoke come out of factories like power stations

Post by Dreedo »

i've seen the smoke come out of power stations funnels... but i wanted to know how the game knows to make the smoke come out of the funnel... im trying to make smoke come out of the factories funnels but i dont know how to tell the game to make smoke come out of them... (i dont think its to do with the colour or the .nfo file)
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: How do make smoke come out of factories like power stations

Post by Ameecher »

It's definitely to do with the .nfo file.
Image
Dreedo
Engineer
Engineer
Posts: 41
Joined: 14 Dec 2007 18:11

Re: How do make smoke come out of factories like power stations

Post by Dreedo »

ummm ok i guess i gotta look more closely now lol
Dreedo
Engineer
Engineer
Posts: 41
Joined: 14 Dec 2007 18:11

Re: How do make smoke come out of factories like power stations

Post by Dreedo »

hmmm i tried a few things.... i even replaced the factory .nfo line with the power station .nfo line and the factory still didnt have smoke coming out (though it was half power station half factory) im quite new a coding so is there anyway you could help me? also what does the xrel and yrel mean in the .nfo file?
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: How do make smoke come out of factories like power stations

Post by Ameecher »

xrel and yrel align the sprite. They won't cause any smoke. You need to know the ins and outs of NFO, something I have little idea of.
Image
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: How do make smoke come out of factories like power stations

Post by michael blunck »

what does the xrel and yrel mean in the .nfo file?
Look here: http://wiki.ttdpatch.net/tiki-index.php ... oordinates

regards
Michael
Image
Dreedo
Engineer
Engineer
Posts: 41
Joined: 14 Dec 2007 18:11

Re: How do make smoke come out of factories like power stations

Post by Dreedo »

to bad theres nothing in the pallette thingie for smoke... :P

i even copied the power station funnel and overwrote the factory funnel with it and that didnt work...

with my lack of knowledge on .nfo files all i see there is the .nfo telling the game what sprite to put into the game...

thanks ameecher and michael for the help
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: How do make smoke come out of factories like power stations

Post by michael blunck »

Dreedo wrote:to bad theres nothing in the pallette thingie for smoke...
Not in the Palette..., but regarding your question on xrel/yrel there´s something to be found in the ...AndCoordinates section of the page mentioned.

To put smoke to the factory´s funnels, you´ll have to set up an animation sequence either consisting of the original power plant´s smoke sprites, or self-drawn smoke sprites and applicate it to a modified version of that factory.

Which isn´t too trivial for a beginner, honestly. At least, it´d need reading the .nfo specs and documents.

regards
Michael
Image
Dreedo
Engineer
Engineer
Posts: 41
Joined: 14 Dec 2007 18:11

Re: How do make smoke come out of factories like power stations

Post by Dreedo »

i think i might leave this for another time when i know more about nfo files... i looked at some tables on that wiki page you showed me but that didnt help me much with editing the nfo file...

thanks for the help though
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 23 guests