Elvas Tower: How does con editor handle unknown parameters? - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

How does con editor handle unknown parameters? Rate Topic: -----

#11 User is offline   cr-stagg 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 909
  • Joined: 16-May 05
  • Gender:Male
  • Simulator:OR
  • Country:

Posted 16 July 2018 - 02:31 PM

Goku,
What happens when your CE finds unsupported parameters? As in:

Quote

comment ( "Part 2B - Unsupported parameters based on presence or absence of a load." )
LadingName ( "Burlap bags" )
LadingWeight ( 24.45 s-t )


And Dave I am confused. The WAG filename and the Name line indicates that the load on this WAG is Hides, but the LadingName line says "Burlap bags".

#12 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 16 July 2018 - 04:48 PM

Charles... I goofed on the selection for copy paste.

The files are all standard so they're actually quite interchangeable. What isn't an Include() statement in the .wag are those few lines that will vary from one .wag instance of the class of cars for another. Sound is often one of those things that do vary. Shape and FA vary, as does name and Wagon. The rest? All standard. For this specific car I can create a dozen other .wags for it and simply change the load line.

Essentially the Empty_car.inc holds all parameters that describe the car. The load file covers the dozen or so parms that vary by weight, over-writing the empty car parms that were read before. Coupler and brakes are standard for all US cars of the era.


@Goku, thanks for the answer... I suspected it was something too simple.

Changing the one .inc file will "update" the several dozen .wags that make use of it. One edit... dozens of wags corrected. Neat, huh?




p.s. The UoM "s-t" is an approved unit meaning short tons, a.k.a. U.S. tons. It will be converted to metric tons inside the OR program. FWIW I am using a spreadsheet to generate the .wag file, the empty_car.inc file, and all of the lading files. It takes a few minutes to enter the necessary values for the empty car; lading is done entirely pull selecting from pull down lists. The copy paste portion takes a few seconds. Using the spreadsheet I can create the .inc file for the empty car .wag and half a dozen different ladings in a minute or two. Editing the .wag file for a single car takes seconds -- loads only needing the one line to be changed... two if you want different sounds.

#13 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 17 July 2018 - 12:25 AM

View Postcr-stagg, on 16 July 2018 - 02:31 PM, said:

What happens when your CE finds unsupported parameters? As in:

Nothing. TSRE just looks for some needed parameters. The rest is ignored. There is no ENG/WAG editor in TSRE, so it can work this way.
For example, for ACT files all values are parsed to data structure and it's possible to edit everything and save changes. In this case TSRE prints warning if unsupported parameter is found. For ENG/WAG file unsupported parameter warning is bad idea, because 90% or more ENG parameters are now unsupported by TSRE.

#14 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 17 July 2018 - 09:16 AM

I have another example that is problematic... probably another simple explanation but I can't find the cause:

The .wag file:
SIMISA@@@@@@@@@@JINX0D0t______

Wagon ( XM_SLSF_127149_MT
WagonShape ( FRISCO_Box_127149.s )
FreightAnim ( usra_ss_50xm_parts.s 1 1 1 )
Include ( "..\\Common.Inc\\Models\\Tim_Muir\\USRA_DS_Boxcar\\XM_USRA_DS_Empty_Car.inc" )
Include ( "..\\Common.Inc\\Fleet\\Std_Type_D_Coupler_Generic_Draft_Gear.inc" )
Include ( "..\\Common.Inc\\Fleet\\Single_Pipe_AB_Brakes.inc" )
Sound ( "genfreightwag2.sms" )
Name ( "XM 40' SLSF <USRA SS> 127149 Mty" )

)



The empty car file:
Comment ( "XM_USRA_DS_Empty_Car.inc" )

comment ( "Parts 1A and 1B are correct for all .wags of this model" )

comment ( "Part 1A - Parameters based on the model itself." )
Type ( Freight )
Size ( 3.1m 4.6m 13.275m )
WheelRadius ( 33in/2 )
NumWheels( 8 )
InertiaTensor ( Box ( 3.1m 4.6m 12.975m ) )
MaxBrakeForce (3.0611kn )
MaxHandbrakeForce (2.2958kn )
DerailRailHeight ( 4cm )
ORTSTrackGauge ( 4ft 8.5in )
ORTSRigidWheelBase (5ft 6in )
ORTSBearingType ( Friction )
ORTSUnbalancedSuperelevation ( 6in )
ORTSBearingType ( Friction )


comment ( "Part 1B - Unsupported parameters based on the model itself." )
MaxWidth ( 9 ft 3 in )
MaxHeight ( 13 ft 3 in )
BrakeShoeFriction ( 0.2)
TargetPctMtyWeight ( 0.7)
Davis Formula ( "Davis 1926" )
Number of axles ( 4 )
CAPY (80,000 lb )
LD LMT (80,000 lb )
LT WT (43,730 lb )



comment ( "Part 2A and 2B are parameters based on presence or absence of a load. " )
comment ( "Parameters for an empty car belong in the Empty_Car.inc file." )
comment ( "Parameters for a loaded car belong in a {Lading Name}_Loads.inc file." )

comment ( "Part 2A - parameters based on presence or absence of a load." )
Mass ( 21.865 s-t )
CentreOfGravity (0.85m)
DerailRailForce ( 49.5898t )
DerailBufferForce ( 327.7kn )
ORTSDavis_A ( 144.4245 lbf )
ORTSDavis_B ( 0.9839 lbf/mph )
ORTSDavis_C ( 0.0613 lbf/mph^2 )



comment ( "Part 2B - Unsupported parameters based on presence or absence of a load." )
LadingName ( "None - Mty" )
LadingWeight ( 0 s-t )


No need to go further, the con editor does not show a value for Mass(), which is in the above file.

I've counted and checked paired quotes, paired {} inside of quotes, and counted (), checked for a ) at the end of every line, checked for a ( somewhere in every line... I'm not seeing the problem. A review by a second pair of eyes would be appreciated.

#15 User is offline   Goku 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,785
  • Joined: 12-December 13
  • Gender:Male
  • Simulator:my own
  • Country:

Posted 17 July 2018 - 09:35 AM

LD LMT (80,000 lb )
LT WT (43,730 lb )

TSRE doesn't allow for Tags like this (spaces, double tags etc.).
Change it to LD_LMT or something.

#16 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 17 July 2018 - 10:03 AM

Ok, thanks.

Umm, but that didn't fix it. There's still something else there that's wrong.



Got it! Spaces in another undefined parameter name!

Thank you for your help!

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users