[attachment=124083:Open Rails 2023-05-08 02-21-35.jpg]
In the case of the 13 mineral wagons (0-10 through 0-22), which have been modified to utilize include files, it seems to define a brake pipe even though I have coded them to be "unfitted" (Manual_Braking).
Here's an example of what the base *.wag file looks like for one of these mineral wagons:
SIMISA@@@@@@@@@@JINX0D0t______ Wagon ( BR_16T_Min_D105_4_anE Include( "/Include/BR_16T_Min_D105_4_GeneralData_anE.inc" ) Name ( "BR_16T_Min_D105_4_anE" ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_Loose_Coupling.inc" ) Include( "/Include/BR_16T_Min_D105_4_Resistance_Empty.inc" ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_9ftWB_Resistance_Curve.inc" ) Include( "/Include/BR_16T_Min_D105_4_Brake.inc" ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_BrakeFriction_CastIron.inc" ) )
...and here's what the "BR_16T_Min_D105_4_Brake.inc" file looks like:
BrakeEquipmentType ( "Manual_brake, Handbrake" ) BrakeSystemType ( "Manual_Braking" ) MaxHandbrakeForce( 7.355kN ) Comment ( Empty weight - 7.5t, Friction - 0.5 ) NumberOfHandbrakeLeverSteps( 100 )
See? No mention of any brake pipe in there! So what gives?
There's even more odd side effects on the brake van:
[attachment=124084:Open Rails 2023-05-08 02-21-00.jpg]
Before I migrated everything to include files, I added a smoke effect to the stovepipe and modified the lights to have a flickering kerosene lamp effect. Everything worked as it should before migrating the common parameters to include files. However, after migrating all common elements to include files, I have no lights, no smoke, and no passenger view.
Here's the base *.wag file for the brake van:
SIMISA@@@@@@@@@@JINX0D0t______ Wagon ( BR_Brakevan_D504_VacPiped2_T&S Include( "/Include/BR_Brakevan_D504_GeneralData.inc" ) Name ( "BR_Brakevan_D504_VacPiped2_T&S" ) FreightAnim ( Tail&SideLamps2Bracket.s 0.0 3.0 0 ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_Loose_Coupling.inc" ) Include( "/Include/BR_Brakevan_D504_Resistance.inc" ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_16ftWB_Resistance_Curve.inc" ) Include( "/Include/BR_Brakevan_D504_Brake.inc" ) Include( "../UK_Freight_Common_Include/UK_Freight_Common_BrakeFriction_CastIron.inc" ) Include( "/Include/BR_Brakevan_D504_PassengerView.inc" ) Include( "/Include/BR_Brakevan_D504_SpecialFX.inc" ) Lights ( 10 Light ( comment( Rear tail light ) Type ( 0 ) Conditions ( Headlight ( 2 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment ( Rear left sidelamp red ) Type ( 0 ) Conditions ( Headlight ( 2 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment( Rear left sidelamp white ) Type ( 0 ) Conditions ( Headlight ( 2 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 0.0 ) LightColour ( aaffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.0 ) LightColour ( 99ffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.0 ) LightColour ( 88ffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment( Rear right sidelamp red ) Type ( 0 ) Conditions ( Headlight ( 2 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light( comment( Rear right sidelamp white ) Type ( 0 ) Conditions ( Headlight ( 2 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( aaffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 99ffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 99ffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment( Rear tail light ) Type ( 0 ) Conditions ( Headlight ( 3 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( 0.42 1.89 -2.655 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment ( Rear left sidelamp red ) Type ( 0 ) Conditions ( Headlight ( 3 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( -1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment( Rear left sidelamp white ) Type ( 0 ) Conditions ( Headlight ( 3 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( aaffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 99ffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.0 ) LightColour ( 88ffcc00 ) Position ( -1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light ( comment( Rear right sidelamp red ) Type ( 0 ) Conditions ( Headlight ( 3 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( 80ff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 6fff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 5eff0000 ) Position ( 1.18 3.15 -2.73 ) Azimuth ( -180 -180 -180 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) Light( comment( Rear right sidelamp white ) Type ( 0 ) Conditions ( Headlight ( 3 ) Unit ( 3 ) ) FadeIn ( 0.5 ) FadeOut ( 0.5 ) Cycle ( 0 ) States ( 3 State ( Duration ( 2.0 ) LightColour ( aaffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 1.0 ) LightColour ( 99ffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) State ( Duration ( 0.1 ) LightColour ( 88ffcc00 ) Position ( 1.18 3.15 -2.5 ) Azimuth ( 0 0 0 ) Transition ( 0 ) Radius ( 0.5 ) ) ) ) ) )
And here's the "BR_Brakevan_D504_SpecialFX.inc" file (which is responsible for the stovepipe smoke effect):
comment ( **Smoke Effects** ) Effects ( SpecialEffects ( comment ( **Stovepipe** ) WagonSmokeFX ( -0.745 3.575 -1.05 0 1 0 0.06 ) ) )
..and here's the "BR_Brakevan_D504_PassengerView.inc" file:
Inside ( PassengerCabinFile ( BR_Brakevan_D504_VacPiped2.s ) PassengerCabinHeadPos ( -0.6 2.6 -1.7 ) RotationLimit ( 360 360 360 ) StartDirection ( 0 180 0 ) Sound ( "uk-swb-unfit-wag01.sms" ) )
I see no problems there too!
My text editor sees no problems with these include files, and there's no mention of any errors in the LOG file. But since I have successfully modified locomotives and passenger cars/coaches without any of these problems occurring, it seems as though this is a bug that's specific to freight cars.
Is this a legitimate bug or did I just mistype something?
UPDATE: I think I found the problem--there was an extra close bracket in one of the other *.inc files.