Page 1 of 1

showing gradual filling wagons

Posted: 29 Nov 2008 10:30
by a.locritani
Hi. quick question regarding how to show gradual filling wagons: i've read on wiki that, in action2, "If there are two load types, the first is shown below 50%, the other above 50%".

i've tried making this action 2:

Code: Select all

02 00 00 02 02 00 00 01 00 00 00 01 00
where set 00 is a spriteset showing an empty wagon and set 01 is a spriteset showing a full wagon.

in ttdpatch it works correctly (50% threshold) but in ottd spriteset 01 is used only when the wagon is completely full.
I'm making something wrong? and if not, how can I obtain the wished result?

thanks in advance

Re: showing gradual filling wagons

Posted: 30 Nov 2008 05:45
by DaleStan
In general, if it works the way you expect in Patch, but not in Open, your code is correct, and Open is interpreting it incorrectly.

I believe this is such a case, so you should make a post on the bugtracker.

Re: showing gradual filling wagons

Posted: 30 Nov 2008 11:00
by Maedhros
The code looks a little suspect to me. I think the attached patch makes it look more sensible, and should hopefully fix your problem. It seems to work better with the UKRS, but I don't think I have a set with wagons that only have two loading stages to test it with.

As DaleStan said, anyway, please post this to flyspray to get it to the attention of the other developers. :-)

Re: showing gradual filling wagons

Posted: 30 Nov 2008 15:30
by a.locritani
ok, it works as expected now, thanks to your patch.

thanks

just posting on flyspray...

edit: test grf attached