If the sounds follow the include statement - they do not work.
ORTSFreightAnims ( FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\driver01.s" ) Offset( 0.95, 1.68, 5.06 )) FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\fireman01.s" ) Offset( 0, 1.44, 5.30 )) Include ( Headcodes\\Loco_10400_Class1.inc ) ) Sound ( "..\\..\\common.sound\\RvD_2cyl\\2c_01_Eng.sms" )
If the sounds precede the include statement - they do work.
Sound ( "..\\..\\common.sound\\RvD_2cyl\\2c_01_Eng.sms" ) ORTSFreightAnims ( FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\driver01.s" ) Offset( 0.95, 1.68, 5.06 )) FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\fireman01.s" ) Offset( 0, 1.44, 5.30 )) Include ( Headcodes\\Loco_10400_Class1.inc ) )
The include file is like this
Comment ( Class 1 Headlamps - for Locomotives 10400 to 10454 ) Comment ( Express Passenger Train, or break-down van train going to clear the line, or light-engine going to assist disabled train, or fire brigade train ) FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( 0.883, 1.407, -4.904 )) FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( -0.883, 1.407, -4.904 ))
If the eng file is changed to use
ORTSFreightAnims ( FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\driver01.s" ) Offset( 0.95, 1.68, 5.06 )) FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\fireman01.s" ) Offset( 0, 1.44, 5.30 )) ) Include ( Headcodes\\Loco_10400_Class1.inc )
and the include file is changed to read
ORTSFreightAnims ( FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( 0.883, 1.407, -4.904 )) FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( -0.883, 1.407, -4.904 )) )
The results are identical. Sounds are only heard if the sound statement precedes the include statement / freight anims.
On the other hand if the include statement is replaced with the raw content thus
ORTSFreightAnims ( FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\driver01.s" ) Offset( 0.95, 1.68, 5.06 )) FreightAnimStatic ( SubType( Default ) Shape( "..\\common.crew\\Steam_Crew\\fireman01.s" ) Offset( 0, 1.44, 5.30 )) FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( 0.883, 1.407, -4.904 )) FreightAnimStatic( SubType( Default ) Shape( "..\\common.headcodes\\DS_LMS\\Head_LMS.s" ) Offset( -0.883, 1.407, -4.904 )) )
There is no problem putting the sound statement after the FreightAnims statement.