Container management
#61
Posted 03 June 2022 - 12:17 PM
#62
Posted 09 June 2022 - 09:39 AM
#63
Posted 10 June 2022 - 07:39 AM
#64
Posted 10 June 2022 - 10:30 AM
Only one problem, I can't download the third link, it tells me that it can't find it.
https://www.trainsim...archid=21491916 by Andrey Tucker-Wells
Kind regards.
Pedro
#65
Posted 10 June 2022 - 11:23 AM
#66
Posted 10 June 2022 - 11:48 AM
alifatico, on 10 June 2022 - 10:30 AM, said:
Only one problem, I can't download the third link, it tells me that it can't find it.
https://www.trainsim...archid=21491916 by Andrey Tucker-Wells
Kind regards.
Pedro
Hi Pedro,
probably that website does not accept that type of links. Try this: go to the search area of www.trainsim.com, and search for atwellsoceanset30.zip .
#67
Posted 10 June 2022 - 11:52 AM
#68
Posted 24 June 2022 - 11:35 PM
The documentation in the manual supersedes the technical info contained in this thread.
The demo route can still be downloaded from the link at the bottom of my download page (see signature below).
#69
Posted 30 November 2022 - 08:24 AM
I'm having trouble and doubts on one thing:
- When allocating cargo through .con file the wagons just present themselves with the weight as being unloaded. Is this a limitation from that type of allocation or am I'm forgetting to add something to the *.load-or ?
{ "Container": { "Name" : "seatrain", "Shape" : "CPV.containerdata\\40ft_maersk.s", "ContainerType" : "C40ft", "IntrinsicShapeOffset": [0,0,0], } }
*.wag file (actually in a *.inc file
ORTSFreightAnims ( MSTSFreightAnimEnabled ( 0 ) WagonEmptyWeight( 22.4t ) EmptyMaxBrakeForce ( 22kN ) EmptyMaxHandbrakeForce ( 7kN ) EmptyORTSDavis_A ( 472 ) EmptyORTSDavis_B ( 6.8 ) EmptyORTSDavis_C ( 1.47 ) EmptyCentreOfGravity_Y ( 1.02 ) IsGondola ( 0 ) UnloadingStartDelay ( 2 ) LoadingEndDelay ( 2 ) IntakePoint ( 0 6.0 Container) LoadingAreaLength ( 12.20 ) Offset( 0, 1.24, 0 ) FreightAnimDiscrete ( IntakePoint ( 0.0 10.0 Container ) MaxHeight ( 0.05 ) MinHeight ( 6.05 ) FreightWeightWhenFull ( 20.6t ) LoadedAtStart ( 1 ) FullMaxBrakeForce ( 45kN ) FullMaxHandbrakeForce ( 21kN ) FullORTSDavis_A ( 611 ) FullORTSDavis_B ( 13 ) FullORTSDavis_C ( 0.98 ) FullCentreOfGravity_Y ( 1.668 ) Offset( 0, 0, 0 ) Sound ( "" ) ) )
#70
Posted 30 November 2022 - 09:29 AM
It's convenient to you if you check the container demo pack that I have uploaded (link should be in one of the above posts).
Within "1 GP38 + container allengths.con" you find e.g.:
WagonData ( CZ-MT-Sggnss-empty "CZ-Metrans-Sggnss" ) LoadData ( 20msc common.containerdata Rear) LoadData ( 20nyk common.containerdata CenterRear) LoadData ( 20maersk3 common.containerdata CenterFront) LoadData ( 20maersk common.containerdata Front) UiD ( 14 ) )
The FreightAnim block for CZ-MT-Sggnss-empty.wag is
ORTSFreightAnims ( MSTSFreightAnimEnabled ( 0 ) WagonEmptyWeight( 21.5t ) EmptyMaxBrakeForce ( 47kN ) EmptyMaxHandbrakeForce ( 15kN ) EmptyORTSDavis_A ( 465.8 ) EmptyORTSDavis_B ( 3.2 ) EmptyORTSDavis_C ( 0.9942 ) EmptyCentreOfGravity_Y ( 2.02 ) IsGondola ( 0 ) UnloadingStartDelay ( 2 ) LoadingEndDelay ( 2 ) IntakePoint ( 0 6.0 Container) LoadingAreaLength ( 24.48 ) Offset (0 1.212 0) FreightAnimStatic ( SubType( Default ) FreightWeight( 0.01t ) Shape( "..\\COMMON_Container_3d\\FA-Sggnss\\CZ-MT-Sggnss-FA.s" ) Offset( 0.0, 0.0, 0.0 ) Flip ( 0 ) ) FreightAnimStatic ( SubType( Default ) FreightWeight( 0.01t ) Shape( "..\\COMMON_Container_3d\\FA-Sggnss\\CZ-MT-Sggnss-FA-40_40.s" ) Offset( 0.0, 0.0, 0.0 ) Flip ( 0 ) ) )
(Don't consider the two FreightAnimStatic blocks here, they only add details to the wagon).
As an example, the first of the 4 containers loaded in this wagon is described in file 20msc.load-or within folder Common.containerdata; such file has following content
{ "Container": { "Name" : "MSC", "Shape" : "COMMON_Container_3d\\Cont_20ft\\container-20ft_MSC.s", "ContainerType" : "C20ft", "IntrinsicShapeOffset": [0,1.175,0], } }
If you instead want to define the initial wagon load in the .wag file, here is an example of the FreightAnims block in the .wag file:
ORTSFreightAnims ( MSTSFreightAnimEnabled ( 0 ) WagonEmptyWeight( 12.575t ) EmptyMaxBrakeForce ( 47kN ) EmptyMaxHandbrakeForce ( 15kN ) EmptyORTSDavis_A ( 465.8 ) EmptyORTSDavis_B ( 3.2 ) EmptyORTSDavis_C ( 0.9942 ) EmptyCentreOfGravity_Y ( 2.02 ) IsGondola ( 0 ) UnloadingStartDelay ( 2 ) LoadingEndDelay ( 2 ) IntakePoint ( 0.0 6.0 Container ) Offset( 0.0, 0.34, 0.0 ) DoubleStacker () LoadingAreaLength ( 14.6 ) AboveLoadingAreaLength ( 16.15 ) LoadData ( 40msc common.containerdata Center ) LoadData ( 40chinashipping common.containerdata Above) )
In this case you don't need the LoadData lines in the reference to the wagon within the .con file.
#71
Posted 30 November 2022 - 11:14 AM
only now I am comming up-to-date with the developments. got a lot to catch-up
#72
Posted 30 November 2022 - 12:49 PM
#73
Posted 30 November 2022 - 01:42 PM
There are some problems: the same container may be empty or loaded, and if loaded it may be loaded with materials of different weight.
The resistance (friction) to the air should depend on the position of the container set on the wagon, which is not easy to implement either.
#75
Posted 01 December 2022 - 01:58 AM
-In the .load-or file following additional fields may be optionally present (if not present, hardcoded default values are used):
MaxLoadedWeight
MinLoadedWeight.
EmptyMassKG
MaxMassWhenLoadedKG
Weight
Example of a .load-or file
{ "Container": { "Name" : "NYK", "Shape" : "COMMON_Container_3d\\Cont_20ft\\container-20ft_NYK.s", "ContainerType" : "C20ft", "IntrinsicShapeOffset": [0,1.175,0], "EmptyMassKG": 2100., "MaxMassWhenLoadedKG": 28000., } }
-In the LoadData line within .con file and in the .wag file an additional optional field (let's call it load state)
Empty
Loaded
Random
Example of an excerpt of a .con file
Wagon ( WagonData ( CZ-MT-Sggnss-empty "CZ-Metrans-Sggnss" ) LoadData ( 20msc common.containerdata Rear Loaded) LoadData ( 20nyk common.containerdata CenterRear Empty) LoadData ( 20maersk3 common.containerdata CenterFront Random) LoadData ( 20maersk common.containerdata Front) UiD ( 14 ) )
Example of an excerpt of a .wag file
ORTSFreightAnims ( MSTSFreightAnimEnabled ( 0 ) WagonEmptyWeight( 12.575t ) EmptyMaxBrakeForce ( 47kN ) EmptyMaxHandbrakeForce ( 15kN ) EmptyORTSDavis_A ( 465.8 ) EmptyORTSDavis_B ( 3.2 ) EmptyORTSDavis_C ( 0.9942 ) EmptyCentreOfGravity_Y ( 2.02 ) IsGondola ( 0 ) UnloadingStartDelay ( 2 ) LoadingEndDelay ( 2 ) IntakePoint ( 0.0 6.0 Container ) Offset( 0.0, 0.34, 0.0 ) DoubleStacker () LoadingAreaLength ( 14.6 ) AboveLoadingAreaLength ( 16.15 ) LoadData ( 40msc common.containerdata Center Random) LoadData ( 40chinashipping common.containerdata Above) )
When Loaded is present, the weight of the container is
Wnen RandomLoad is present, the container may be empty or partially/fully loaded, in a random way (with empty state having a
When the load state parameter is not defined, Random is used as default.
The weight of the containers is added to the weight of the wagon, and therefore to the weight of the train.
The possibility of defining the load status of a container exists also in the .load-stations-loads-or file. Here a sample excerpt:
{ "LoadStationID" : { "wfile" : "w-005354+014849.w", "UiD" : 210, }, "LoadData" : [ { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, "LoadState" : "Empty"}, { "File" : "40chinashipping", "Folder" : "common.containerdata", "StackLocation" : 0, "LoadState" : "Loaded"}, { "File" : "40HCcai", "Folder" : "common.containerdata", "StackLocation" : 0, "LoadState" : "Random"}, { "File" : "40HCmaersk", "Folder" : "common.containerdata", "StackLocation" : 1, }, { "File" : "40HCapl", "Folder" : "common.containerdata", "StackLocation" : 1, }, { "File" : "20msc", "Folder" : "common.containerdata", "StackLocation" : 2, }, { "File" : "20nyk", "Folder" : "common.containerdata", "StackLocation" : 2, }, { "File" : "20msc", "Folder" : "common.containerdata", "StackLocation" : 2, }, { "File" : "53stax", "Folder" : "common.containerdata", "StackLocation" : 3, }, { "File" : "20hamburgsud", "Folder" : "common.containerdata", "StackLocation" : 14, }, { "File" : "20maersk3", "Folder" : "common.containerdata", "StackLocation" : 14, }, ] },