I'm working on container management.
Here a first preview
https://youtu.be/wueTbT8Je3E
Thanks to Aldarion and QJ-6811.
More info later.
Container management
#2
Posted 14 April 2022 - 10:05 AM
Hello.
This is a great job! Congratulations Carlo. I wish you good luck.
I’ve already looked at a nice crane from Cadnav.com.
Sincerely, Laci1959
This is a great job! Congratulations Carlo. I wish you good luck.
I’ve already looked at a nice crane from Cadnav.com.
Sincerely, Laci1959
#3
Posted 14 April 2022 - 10:13 AM
:bravo: :bravo: :bravo: :bravo: :bravo: :bravo: :bravo: :bravo:
#4
Posted 14 April 2022 - 03:25 PM
Nice! Intermodal has always been something of a interest of mine, and I can see using this with various well cars and flats.
#6
Posted 15 April 2022 - 12:51 AM
I don't know what you did there, but that's fantastic!
#8
Posted 15 April 2022 - 08:55 AM
Carlo,
some of the answers to my question may come with "more info" but I thought I'd jot them down now.
1. now each container, would have something similar to a WAG file, to define it's properties.
2. Would it require a modification to a consist file....I have a well car, with two removable contains #xxxxx, I also have the well car loaded with non-removable containers.
3. Activity editor mods...placing removable containers within a intermodal facility, with non-removeable containers etc.
4. Actifity editor mods...defining train orders to either load/unload well cars....
..
oh my head is exploding....I'll added a note to my activity editor todo list....
Amtrak115
some of the answers to my question may come with "more info" but I thought I'd jot them down now.
1. now each container, would have something similar to a WAG file, to define it's properties.
2. Would it require a modification to a consist file....I have a well car, with two removable contains #xxxxx, I also have the well car loaded with non-removable containers.
3. Activity editor mods...placing removable containers within a intermodal facility, with non-removeable containers etc.
4. Actifity editor mods...defining train orders to either load/unload well cars....
..
oh my head is exploding....I'll added a note to my activity editor todo list....
Amtrak115
#10
Posted 16 April 2022 - 07:51 AM
Thank you all!
Here some first specs.
Container station: it is composed by the comntainer crane and the areas where the containers are laid down.
The whole is defined as a Pickup in the world file and may be laid down with TSRE5.
Here is an example of such a block:
The PickupCapacityData are not used. Important is that the Pickup Type is 15.
In addition to this block, which is created by TSRE5, an integration .w file must be created in an OpenRails subfolder of the World folder, following the rules described in paragraph 15.5 of the OR manual.
See here for the integration file http://www.elvastowe...post__p__285742
The container crane must adhere to following rules:
It must have separate animations for the three axes X, Y and Z.
The related matrices must be named XAxis, YAxis and ZAxis.
Here is the animation block within the .x file for the sample crane:
Truck is not used.
Note that on the ZAxis the crane can move from position -6 to position 20. It is important that there is also a negative range, because the unload/load range for the containers is around the zero position of the Z axis.
The ZAxis positions are relative to the positions of the Main matrix; the XAxis positions are relative to the positions of the ZAxis, and the YAxis positions are relative to the positions of the XAxis.
The Hierarchy therefore is as follows:
Following discrete triggers have been introduced
Separate commands are available to load/unload containers to/from wagons:
Key T to load a container
Key Shift-T to unload a container.
The Immediate refill is Ctrl-T, while Multiplayer Texting has been moved to Alt-T.
As of now at the beginning of the game there are no containers stacked in the container station.
Containers and wagons.
Container shapes must obviously be standalone shapes.
See here http://www.elvastowe...post__p__285313 about how to define wagons with containers.
ContainerType defines the type of container, which is necessary to state the standard dimensions of the container.
Following types can be defined
Most part of the loaded wagons in the demo video have been generated starting from some wagons within this pack
http://www.trainsimh...ad.php?did=1646
which features a vast choice of container loaded wagons (on the same wagon base). I like also some weathered container textures.
The FS D145 2021 diesel locomotive has been taken from this pack http://www.trainsimh...oad.php?did=336 .
The crane has been built by Aldarion.
If someone wants to have a look at the code, he can find it in my Github repository, in the Container-handling fork.
Blueprint https://blueprints.l...spec/containers
There is still quite much to be done...
Here some first specs.
Container station: it is composed by the comntainer crane and the areas where the containers are laid down.
The whole is defined as a Pickup in the world file and may be laid down with TSRE5.
Here is an example of such a block:
Pickup ( UiD ( 21 ) SpeedRange ( 0 0 ) PickupType ( 15 1 ) PickupAnimData ( 3 20 ) PickupCapacity ( 20000 -2000 ) TrItemId ( 0 1 ) CollideFlags ( 0 ) FileName ( crane1.s ) Position ( 241.408 0.964397 -111.967 ) QDirection ( 0 0.202787 0 -0.979223 ) VDbId ( 4294967295 )
The PickupCapacityData are not used. Important is that the Pickup Type is 15.
In addition to this block, which is created by TSRE5, an integration .w file must be created in an OpenRails subfolder of the World folder, following the rules described in paragraph 15.5 of the OR manual.
See here for the integration file http://www.elvastowe...post__p__285742
The container crane must adhere to following rules:
It must have separate animations for the three axes X, Y and Z.
The related matrices must be named XAxis, YAxis and ZAxis.
Here is the animation block within the .x file for the sample crane:
animations ( 1 animation ( 2 30 anim_nodes ( 5 anim_node Main ( controllers ( 0 ) ) anim_node truck ( controllers ( 0 ) ) anim_node ZAXIS ( controllers ( 1 linear_pos ( 3 linear_key ( 0 0 0 -6) linear_key ( 1 0 0 20 ) linear_key ( 2 0 0 0 ) ) ) ) anim_node XAXIS ( controllers ( 1 linear_pos ( 3 linear_key ( 0 0 0 0 ) linear_key ( 1 -10 0 0 ) linear_key ( 2 0 0 0 ) ) ) ) anim_node YAXIS ( controllers ( 1 linear_pos ( 3 linear_key ( 0 0 3 0 ) linear_key ( 1 0 -2 0 ) linear_key ( 2 0 3 0 ) ) ) ) ) ) )
Truck is not used.
Note that on the ZAxis the crane can move from position -6 to position 20. It is important that there is also a negative range, because the unload/load range for the containers is around the zero position of the Z axis.
The ZAxis positions are relative to the positions of the Main matrix; the XAxis positions are relative to the positions of the ZAxis, and the YAxis positions are relative to the positions of the XAxis.
The Hierarchy therefore is as follows:
hierarchy ( 5 -1 0 0 2 3 )
Following discrete triggers have been introduced
case Source.ORTSContainerCrane: switch (eventID) { // Can be different from crane to crane case 1: return Event.CraneXAxisMove; case 2: return Event.CraneXAxisSlowDown; case 3: return Event.CraneYAxisMove; case 4: return Event.CraneYAxisSlowDown; case 5: return Event.CraneZAxisMove; case 6: return Event.CraneZAxisSlowDown; case 7: return Event.CraneYAxisDown; default: return 0; } default: return 0;
Separate commands are available to load/unload containers to/from wagons:
Key T to load a container
Key Shift-T to unload a container.
The Immediate refill is Ctrl-T, while Multiplayer Texting has been moved to Alt-T.
As of now at the beginning of the game there are no containers stacked in the container station.
Containers and wagons.
Container shapes must obviously be standalone shapes.
See here http://www.elvastowe...post__p__285313 about how to define wagons with containers.
ContainerType defines the type of container, which is necessary to state the standard dimensions of the container.
Following types can be defined
C20ft, C40ft, C40ftHC, C45ft, C45ftHC, C48ft, C53ft
Most part of the loaded wagons in the demo video have been generated starting from some wagons within this pack
http://www.trainsimh...ad.php?did=1646
which features a vast choice of container loaded wagons (on the same wagon base). I like also some weathered container textures.
The FS D145 2021 diesel locomotive has been taken from this pack http://www.trainsimh...oad.php?did=336 .
The crane has been built by Aldarion.
If someone wants to have a look at the code, he can find it in my Github repository, in the Container-handling fork.
Blueprint https://blueprints.l...spec/containers
There is still quite much to be done...