@@ -599,6 +599,8 @@ Here below a sample of a ``.load-or`` file::
599599 "Shape" : "COMMON_Container_3d\\Cont_40ftHC\\container-40ftHC_Triton.s",
600600 "ContainerType" : "C40ftHC",
601601 "IntrinsicShapeOffset": [0,1.175,0],
602+ "EmptyMassKG": 2100.,
603+ "MaxMassWhenLoadedKG": 28000.,
602604 }
603605 }
604606
@@ -621,20 +623,30 @@ Here below a sample of a ``.load-or`` file::
621623 container with respect to the container shape file coordinates. Unfortunately often such
622624 offset is not [0,0,0], which would be advisable for newly produced containers. A simple way to
623625 state such offset is to use the ``Show Bounding Info `` of ``Shape Viewer ``.
626+ - "EmptyMassKG" is an optional parameter that defines the tare (weight when empty) of the
627+ container. If the parameter is not present, OR uses a default parameter, specific for that
628+ ContainerType.
629+ - "MaxMassWhenLoadedKG" is an optional parameter that defines the sum of the tare plus the maximum
630+ allowed payload. As above, if the parameter is not present, OR uses a default parameter, specific for that
631+ ContainerType.
632+
624633
625634Pre-setting a .wag file to accommodate containers
626635-------------------------------------------------
627636
628637As a minimum following block must be present in the .wag file for a double stacker::
629638
630639 ORTSFreightAnims (
640+ WagonEmptyWeight ( 12.575t )
631641 LoadingAreaLength ( 12.20 )
632642 AboveLoadingAreaLength ( 12.20 )
633643 DoubleStacker ()
634644 Offset( 0 0.34 0 )
635645 IntakePoint ( 0 6.0 Container)
636646 )
637647
648+ - WagonEmptyWeight is the weight of the wagon, when it has neither containers nor other
649+ weighing freight animations on board
638650- LoadingAreaLength is the length in meters of the loading area available for containers
639651- AboveLoadingAreaLength is the length in meters of the above loading area available
640652 for containers (parameter not needed if not double stacker)
@@ -694,9 +706,9 @@ shown here::
694706
695707 Wagon (
696708 WagonData ( DTTX_620040_A ATW.DTTX_620040 )
697- LoadData ( 20cmacgm common.containerdata CenterFront)
698- LoadData ( 20hamburgsud common.containerdata CenterRear)
699- LoadData ( 40msc common.containerdata Above)
709+ LoadData ( 20cmacgm common.containerdata CenterFront Empty )
710+ LoadData ( 20hamburgsud common.containerdata CenterRear Loaded )
711+ LoadData ( 40msc common.containerdata Above Random )
700712 UiD ( 11 )
701713 )
702714
@@ -707,7 +719,17 @@ present. The meaning of the parameters is as follows:
707719- The first parameter is the name of the ``.load-or `` file
708720- The second parameter is the path (having ``Trainset `` as base path) where the ``.load-or ``
709721 file resides
710- - The third parameter indicates where the container is allocated on the wagon.
722+ - The third parameter indicates where the container is allocated on the wagon
723+ - The fourth parameter, which is optional, defines the load state of the related container,
724+ which is used to derive the weight of the container. If ``Empty `` is present, the weight
725+ of the empty container is used as actual weight; if ``Loaded `` is present, the maximum
726+ weight (tare + payload) of the container is used; if ``Random `` is present, the weight
727+ is computed as follows: a random number between 0 and 100 is generated. If the number is
728+ below 31, the container is considered empty; else the number is used as percentage of the
729+ maximum weight of the container (tare + payload). The weight of the containers are added to
730+ the empty weight of the wagon, to compute the total weight of the wagon. If the parameter
731+ is not present, the ``Random `` value is assumed.
732+
711733
712734The entry for the container allocated ``Above `` must be the last one.
713735
@@ -733,18 +755,19 @@ A minimum ``FreightAnimations`` entry in a ``.wag`` file to have the same pre-lo
733755set as in the previous paragraph is as follows::
734756
735757 ORTSFreightAnims (
736- LoadingAreaLength ( 14.6 )
737- AboveLoadingAreaLength ( 16.15 )
758+ WagonEmptyWeight ( 12.575t )
759+ LoadingAreaLength ( 14.6 )
760+ AboveLoadingAreaLength ( 16.15 )
738761 DoubleStacker ()
739762 Offset( 0 0.34 0 )
740763 IntakePoint ( 0 6.0 Container)
741- LoadData ( 20cmacgm common.containerdata CenterFront)
742- LoadData ( 20hamburgsud common.containerdata CenterRear)
743- LoadData ( 40msc common.containerdata Above)
764+ LoadData ( 20cmacgm common.containerdata CenterFront Empty )
765+ LoadData ( 20hamburgsud common.containerdata CenterRear Loaded )
766+ LoadData ( 40msc common.containerdata Above Random )
744767 )
745768
746769As can be seen, the syntax of the ``LoadData `` entries is the same as in the case of
747- the ``.con `` file.
770+ the ``.con `` file. Also here the fourth parameter is optional.
748771
749772Obviously, using ``.wag `` files for this type of info, a different ``.wag `` file must
750773be created for every desired pre-loaded set of containers.
@@ -1048,9 +1071,9 @@ The ``.load-stations-loads-or`` file is a Json file. An example is shown here be
10481071 {
10491072 "LoadStationID" : { "wfile" : "w-005354+014849.w", "UiD" : 21, },
10501073 "LoadData" : [
1051- { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, },
1052- { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, },
1053- { "File" : "20cmacgm", "Folder" : "common.containerdata", "StackLocation" : 2, },
1074+ { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, "LoadState" : "Empty" },
1075+ { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, "LoadState" : "Loaded" },
1076+ { "File" : "20cmacgm", "Folder" : "common.containerdata", "StackLocation" : 2, "LoadState" : "Random" },
10541077 { "File" : "20kline", "Folder" : "common.containerdata", "StackLocation" : 2, },
10551078 { "File" : "45HCtriton", "Folder" : "common.containerdata", "StackLocation" : 5, },
10561079 { "File" : "45HCtriton", "Folder" : "common.containerdata", "StackLocation" : 5, },
@@ -1081,6 +1104,8 @@ The file can define the population at startup of many container stations.
10811104 index refers to a child stack location.
10821105- If more than a container is defined for a stack location, they are stacked one above the
10831106 other.
1107+ - The ``LoadState `` parameter is optional, and has the same meaning and values as the
1108+ parameter of the same name which can be present in .con or .wag files.
10841109
10851110The container station population file must be written taking into account the constraints
10861111of the stack locations (container length must be smaller than stack location lenght,
0 commit comments