Re: Vehicle that deals with several freights
Reply #2 –
As far as I know you can have multiple types of freight (using 'freightimagetype[ x ]=") within the same goodscategory (based on "freight=") like in your dat file. But when you want to reuse the same images for vehicles to transport goods from a different category you'll have create a whole new object in your dat file....
obj=vehicle
name=Studebaker Proto-Truck
copyright=vilvoh
waytype=road
freight=Eisenerz
payload=15
speed=84
cost=514500
weight=3
power=136
gear=90
smoke=Diesel
engine_type=diesel
RunningCost=467
sound=1
intro_year=1963
retire_year=1986
Constraint[Prev][0]=none
EmptyImage[S]=stdb_a.0.0
EmptyImage[SE]=stdb_a.0.4
EmptyImage[E]=stdb_a.0.2
EmptyImage[NE]=stdb_a.0.6
EmptyImage[N]=stdb_a.0.1
EmptyImage[NW]=stdb_a.0.5
EmptyImage[W]=stdb_a.0.3
EmptyImage[SW]=stdb_a.0.7
## Iron ore
freightimagetype[1]=Eisenerz
FreightImage[1][S]=stdb_a.2.0
FreightImage[1][SE]=stdb_a.2.4
FreightImage[1][E]=stdb_a.2.2
FreightImage[1][NE]=stdb_a.2.6
FreightImage[1][N]=stdb_a.2.1
FreightImage[1][NW]=stdb_a.2.5
FreightImage[1][W]=stdb_a.2.3
FreightImage[1][SW]=stdb_a.2.7
## Coal
freightimagetype[2]=Kohle
FreightImage[2][S]=stdb_a.2.0
FreightImage[2][SE]=stdb_a.2.4
FreightImage[2][E]=stdb_a.2.2
FreightImage[2][NE]=stdb_a.2.6
FreightImage[2][N]=stdb_a.2.1
FreightImage[2][NW]=stdb_a.2.5
FreightImage[2][W]=stdb_a.2.3
FreightImage[2][SW]=stdb_a.2.7
## // Martin // Changes from here
## don't remove the next line, it is used as separator...
-------------------------------
obj=vehicle
name=Studebaker Steel_Proto-Truck
copyright=vilvoh
waytype=road
freight=Stahl
payload=15
speed=84
cost=514500
weight=3
power=136
gear=90
smoke=Diesel
engine_type=diesel
RunningCost=467
sound=1
intro_year=1963
retire_year=1986
## Empty
Constraint[Prev][0]=none
EmptyImage[S]=stdb_a.0.0
EmptyImage[SE]=stdb_a.0.4
EmptyImage[E]=stdb_a.0.2
EmptyImage[NE]=stdb_a.0.6
EmptyImage[N]=stdb_a.0.1
EmptyImage[NW]=stdb_a.0.5
EmptyImage[W]=stdb_a.0.3
EmptyImage[SW]=stdb_a.0.7
## Steel
FreightImage[S]=stdb_a.1.0
FreightImage[SE]=stdb_a.1.4
FreightImage[E]=stdb_a.1.2
FreightImage[NE]=stdb_a.1.6
FreightImage[N]=stdb_a.1.1
FreightImage[NW]=stdb_a.1.5
FreightImage[W]=stdb_a.1.3
FreightImage[SW]=stdb_a.1.