@@ -599,6 +599,8 @@ Here below a sample of a ``.load-or`` file::
599
599
"Shape" : "COMMON_Container_3d\\Cont_40ftHC\\container-40ftHC_Triton.s",
600
600
"ContainerType" : "C40ftHC",
601
601
"IntrinsicShapeOffset": [0,1.175,0],
602
+ "EmptyMassKG": 2100.,
603
+ "MaxMassWhenLoadedKG": 28000.,
602
604
}
603
605
}
604
606
@@ -621,20 +623,30 @@ Here below a sample of a ``.load-or`` file::
621
623
container with respect to the container shape file coordinates. Unfortunately often such
622
624
offset is not [0,0,0], which would be advisable for newly produced containers. A simple way to
623
625
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
+
624
633
625
634
Pre-setting a .wag file to accommodate containers
626
635
-------------------------------------------------
627
636
628
637
As a minimum following block must be present in the .wag file for a double stacker::
629
638
630
639
ORTSFreightAnims (
640
+ WagonEmptyWeight ( 12.575t )
631
641
LoadingAreaLength ( 12.20 )
632
642
AboveLoadingAreaLength ( 12.20 )
633
643
DoubleStacker ()
634
644
Offset( 0 0.34 0 )
635
645
IntakePoint ( 0 6.0 Container)
636
646
)
637
647
648
+ - WagonEmptyWeight is the weight of the wagon, when it has neither containers nor other
649
+ weighing freight animations on board
638
650
- LoadingAreaLength is the length in meters of the loading area available for containers
639
651
- AboveLoadingAreaLength is the length in meters of the above loading area available
640
652
for containers (parameter not needed if not double stacker)
@@ -694,9 +706,9 @@ shown here::
694
706
695
707
Wagon (
696
708
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 )
700
712
UiD ( 11 )
701
713
)
702
714
@@ -707,7 +719,17 @@ present. The meaning of the parameters is as follows:
707
719
- The first parameter is the name of the ``.load-or `` file
708
720
- The second parameter is the path (having ``Trainset `` as base path) where the ``.load-or ``
709
721
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
+
711
733
712
734
The entry for the container allocated ``Above `` must be the last one.
713
735
@@ -733,18 +755,19 @@ A minimum ``FreightAnimations`` entry in a ``.wag`` file to have the same pre-lo
733
755
set as in the previous paragraph is as follows::
734
756
735
757
ORTSFreightAnims (
736
- LoadingAreaLength ( 14.6 )
737
- AboveLoadingAreaLength ( 16.15 )
758
+ WagonEmptyWeight ( 12.575t )
759
+ LoadingAreaLength ( 14.6 )
760
+ AboveLoadingAreaLength ( 16.15 )
738
761
DoubleStacker ()
739
762
Offset( 0 0.34 0 )
740
763
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 )
744
767
)
745
768
746
769
As 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.
748
771
749
772
Obviously, using ``.wag `` files for this type of info, a different ``.wag `` file must
750
773
be 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
1048
1071
{
1049
1072
"LoadStationID" : { "wfile" : "w-005354+014849.w", "UiD" : 21, },
1050
1073
"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" },
1054
1077
{ "File" : "20kline", "Folder" : "common.containerdata", "StackLocation" : 2, },
1055
1078
{ "File" : "45HCtriton", "Folder" : "common.containerdata", "StackLocation" : 5, },
1056
1079
{ "File" : "45HCtriton", "Folder" : "common.containerdata", "StackLocation" : 5, },
@@ -1081,6 +1104,8 @@ The file can define the population at startup of many container stations.
1081
1104
index refers to a child stack location.
1082
1105
- If more than a container is defined for a stack location, they are stacked one above the
1083
1106
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.
1084
1109
1085
1110
The container station population file must be written taking into account the constraints
1086
1111
of the stack locations (container length must be smaller than stack location lenght,
0 commit comments