Elvas Tower: Container management - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 12 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Container management Rate Topic: -----

#1 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,996
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 14 April 2022 - 09:20 AM

I'm working on container management.
Here a first preview
https://youtu.be/wueTbT8Je3E

Thanks to Aldarion and QJ-6811.

More info later.

Attached Image: Containers.jpg

#2 User is offline   Laci1959 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 939
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

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

#3 User is offline   xavivilla 

  • Fireman
  • Group: Status: Active Member
  • Posts: 197
  • Joined: 12-May 12
  • Gender:Male
  • Simulator:Open Rails - RailWorks
  • Country:

Posted 14 April 2022 - 10:13 AM

:bravo: :bravo: :bravo: :bravo: :bravo: :bravo: :bravo: :bravo:

#4 User is offline   SD45T-2 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 764
  • Joined: 28-November 08
  • Gender:Male
  • Location:Louisiana
  • Simulator:OR, Trainz, and Misc. Sims.
  • Country:

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.

#5 User is offline   NZ_JOHN 

  • Fireman
  • Group: Status: Active Member
  • Posts: 179
  • Joined: 15-September 16
  • Gender:Male
  • Location:New Zealand
  • Simulator:OR
  • Country:

Posted 14 April 2022 - 03:46 PM

Fantastic

#6 User is offline   Borislav 

  • Hostler
  • Group: Status: Active Member
  • Posts: 98
  • Joined: 30-July 17
  • Gender:Male
  • Location:Gunzburg, Germany
  • Simulator:ORTS
  • Country:

Posted 15 April 2022 - 12:51 AM

I don't know what you did there, but that's fantastic!

#7 User is offline   Sid P. 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 463
  • Joined: 12-February 13
  • Gender:Male
  • Location:Canada
  • Simulator:Open Rails / MSTS
  • Country:

Posted 15 April 2022 - 06:35 AM

Outstanding!

#8 User is offline   Amtrak115 

  • Fireman
  • Group: Status: Active Member
  • Posts: 201
  • Joined: 04-August 19
  • Gender:Male
  • Location:Parker, TX
  • Simulator:open rails
  • Country:

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

#9 User is offline   alifatico 

  • Hostler
  • Group: Status: Active Member
  • Posts: 92
  • Joined: 25-April 19
  • Gender:Male
  • Simulator:open rails
  • Country:

Posted 15 April 2022 - 10:21 PM

Hi.

Nice job! Congratulations Carlo.

Pedro.

#10 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,996
  • Joined: 31-December 11
  • Gender:Male
  • Country:

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:
	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...

  • 12 Pages +
  • 1
  • 2
  • 3
  • Last »
  • 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