News:

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

Vehicle DAT, cant understand the wiki re EmptyImage and others

Started by cy087, February 04, 2013, 11:23:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cy087

Please forgive me. I am linguistically challenged here, I only understand english.

Given an arbitrary vehicle V and a portable good G, what is the the relationship in the game engine between the capacity of V and the current load of G regarding the display of "EmptyImage" and "FreightImage" and "FreightImagetype"? In particular
Quote
The parameters freight and FreightImagetype

The value of this parameter must be a valid object name of a type of goods. Allowable names are usually all good .*.pak files used in the pak directory. The values None, Passagiere and Post can be used in all paksets.

For a list of goods that may be used in a specific pakset, consult the pakset documentation.


QuoteThe value of this parameter must be a valid object name of a type of goods.
I am guessing that "this parameter" is 'freight' and that the value must be a "known" good, say V.freight="Passagiere" (as that is available in all paksets).

But for the life of me, I cannot understand what V.FreightImagetype does?  Even more how this relates to V.EmptyImage...


Again, please forgive me. I just can't work out what these parameters do?

tia
CY

VS


My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

An_dz

I'm working on the new page for vehicle dat. With examples and more details.


EmptyImage[] have the image for the vehicle when empty.

When you set a good on Freight parameter you can carry all goods with same category. (like bulk goods)

FreightImageType[] you set a good name that is in the same category the freight parameter. You can add as much as you want.

FreightImage[][] have the same logic from EmptyImage, but you set the 'x' value the same of FreightImageType. Thus, when you load the good you chose in FreightImageType it will use the corresponding FreightImage.