IndustryTile - substitute tile

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

Moderator: Graphics Moderators

Post Reply
Borg
Engineer
Engineer
Posts: 50
Joined: 21 May 2005 06:45

IndustryTile - substitute tile

Post by Borg »

Hello.

I have problem with default industry tile animations when I change some tile properties.

// Properties for Industry Tiles of Power Plant
! * 00 09 04 01 07 08 07 09 07 0B 01 08 0C 03 08
! * 00 09 04 01 09 08 09 09 09 0B 01 08 0C 03 08

As you can see, I only replace tiles with does NOT have animation or/and sounds.
When I do so, those tiles are no more animated (smoke, bzz effect etc).

I found following code in property copy:

/* A copied tile should not have the animation infos copied too.
* The anim_state should be left untouched, though
* It is up to the author to animate them himself */
tsp->anim_production = INDUSTRYTILE_NOANIM;
tsp->anim_next = INDUSTRYTILE_NOANIM;

The question is? Can I somehow reenable default tile animations? Doing RTFS it seems
I cannot redefine those 2 vars. But doing more RTFS, it seems that enabling bit1 of propery 11 of tile
should actually do the trick as there is code fallback to defaults..
Borg
Engineer
Engineer
Posts: 50
Joined: 21 May 2005 06:45

Re: IndustryTile - substitute tile

Post by Borg »

Okey, after more RTFS and testing I managed to get Power Station tile animation for
spark effect working (with sound!). As for smoke, forget it, this stuff is hardcoded for
built-in Industry.
Post Reply

Return to “NewGRF Technical Discussions”

Who is online

Users browsing this forum: No registered users and 3 guests