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 +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Container management Rate Topic: -----

#71 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 619
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 30 November 2022 - 11:14 AM

Grazie mille Carlo

only now I am comming up-to-date with the developments. got a lot to catch-up

#72 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 619
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 30 November 2022 - 12:49 PM

Carlo, my doubt remains... When loading or unloading containers... the wagon's weight remains the same? ... and other physics behavior?

#73 User is offline   Csantucci 

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

Posted 30 November 2022 - 01:42 PM

The container physics management is a TODO. The hooks where to add it in the code are present, but the code has to be written.
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.

#74 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 619
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 30 November 2022 - 03:29 PM

Got it. thanks!

#75 User is offline   Csantucci 

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

Posted 01 December 2022 - 01:58 AM

About weight, a possible solution could be this one: this solution is being implemented:
-In the .load-or file following additional fields may be optionally present (if not present, hardcoded default values are used):
EmptyWeight
MaxLoadedWeight
MinLoadedWeight.

EmptyMassKG
MaxMassWhenLoadedKG

Weight may be inserted in any weight UoM accepted by OR must be entered in Kilograms.

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) could can be added, that may have following values:
Empty
Loaded
RandomLoad

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 a random value between MaxLoadedWeight and MinLoadedWeight. MaxMassWhenLoadedKG if present in the .load-or file; else it is a default value.
Wnen RandomLoad is present, the container may be empty or partially/fully loaded, in a random way (with empty state having a low probability of 30%, e.g. 20%, because I assume that usually containers run loaded in both travel directions. (if someone has info about that, I'd be happy to get such info).
. For the remaining 70% probability, the weight is randomically selected from 30% to 100% of MaxMassWhenLoadedKG.
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, },				
			]	
		},





Are there comments about this proposal?

#76 User is offline   Jonatan 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,646
  • Joined: 29-March 10
  • Gender:Male
  • Location:Somewhere.
  • Simulator:MSTS and Vehicle Simulator
  • Country:

Posted 01 December 2022 - 11:27 AM

I have a question about this system and if it could be used for other loads than containers as well? Like a classic crane loading wooden crates from, say, a ship? Or logs onto a flatcar?

I see potential for many varying uses.

#77 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 619
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 01 December 2022 - 12:06 PM

The system, has it is now is able to accept a crane loading and unloading directly from the train to a ship. It's just a question of modelling a ship's deck as the "container station"

I'm actually trying to do it for my Route.

#78 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 619
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 02 December 2022 - 01:58 AM

I've finished converting one of my platform wagons pack to use the new container management system.
For the sake of curiosity I can share with you that this saves me 90-91% disk space.
It's a pack with 2 wagons, 24x20ft containers, 3x30ftcont and 49x40ft cont.

#79 User is offline   Laci1959 

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

Posted 02 December 2022 - 10:43 AM

View PostJonatan, on 01 December 2022 - 11:27 AM, said:

I have a question about this system and if it could be used for other loads than containers as well? Like a classic crane loading wooden crates from, say, a ship? Or logs onto a flatcar?

I see potential for many varying uses.


Hello.

In principle, yes, but it requires a crane whose bridge (XAxis) extends above the water.
Actually, there should be a crane that has YRotate next to the XAxis [ it can rotate around the vertical axis. ] part of.
I think that starting from the current basis, a crane for loading semi-trailers of semi-trailers is being made. Or at least part of the program.

Sincerely, Laci 1959

#80 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,806
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 02 December 2022 - 11:03 AM

For containers, gantry cranes with long console, spanning over the ship (re-loaders) might be used.
For general freight - as Laci have said - rotating (as variant - mounted onto portal) arm cranes are widely used.

  • 12 Pages +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • 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