News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Bug in shortened .dats

Started by Flemmbrav, May 24, 2018, 10:12:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flemmbrav

weird thing, this is the bug:

The following code DOES work:

FreightImage[0][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.1.<$0>
FreightImage[1][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.2.<$0>
FreightImage[2][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.3.<$0>
FreightImage[3][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.4.<$0>
FreightImage[4][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.5.<$0>


But this one does NOT work:

FreightImage[0-4][E,S,NW,SW,W,N,SE,NE]=./image/Kohlewagen6.<$0+1>.<$1>


I don't really see what the difference between both expressions is. Is it possible it that there is no implementation of the dat shortening for freight images? Or am I just too dumb to write a dat? ^^

So what happens is that the vehicle will get pak-ed, but the freight images will not appear ingame, the vehicle will look like it is not loaded all the time, even tho it carries freight.

Dwachs

Parameter expansion of ribis only worked in the first parameter position. With r8459 this should work also for all other positions.
Parsley, sage, rosemary, and maggikraut.

Flemmbrav

Thanks a lot!
Would you mind sending me a windows version of that one?

Dwachs

Here is a makeobje exe: https://ufile.io/ajwrv

Compiled on linux, so I could not test it.
Parsley, sage, rosemary, and maggikraut.

Flemmbrav

Does work, thank you very much for your effort!

Dwachs

Parsley, sage, rosemary, and maggikraut.