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.
  • 8 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Container management Rate Topic: -----

#61 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 03 June 2022 - 12:17 PM

The feature is now available in ORNYMG 125.3 and in the Unstable release. Unfortunately I can't yet provide a demo environment, because I'm waiting for a copyright OK from some content developers.

#62 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 09 June 2022 - 09:39 AM

At last a Container Demo Pack is available. ContainerDemoPack.zip Rev. 1.0 can be downloaded from the bottom of my download page (see my signature). Unzip the pack in a temporary folder and read the readme before proceeding!

#63 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 10 June 2022 - 07:39 AM

The readme file in the pack now includes also a link to the crane files and an installation guide for such crane, for route builders.


Attached Image: Crane45t.jpg

#64 User is offline   alifatico 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 116
  • Joined: 25-April 19
  • Gender:Male
  • Simulator:open rails
  • Country:

Posted 10 June 2022 - 10:30 AM

Congratulations Carlo for the work.

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 User is offline   Laci1959 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,131
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 10 June 2022 - 11:23 AM

My link
Maybe that will help. The crane and its installation on the track.

#66 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 10 June 2022 - 11:48 AM

View Postalifatico, on 10 June 2022 - 10:30 AM, said:

Congratulations Carlo for the work.

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 User is offline   alifatico 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 116
  • Joined: 25-April 19
  • Gender:Male
  • Simulator:open rails
  • Country:

Posted 10 June 2022 - 11:52 AM

View PostCsantucci, on 10 June 2022 - 11:48 AM, said:

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 .


Now yes.

Many thanks.

#68 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 24 June 2022 - 11:35 PM

In addition to OR_NewYear_MG 126.3, the feature is now available also in the official Testing release T1.4-565. Complete info is now present also in the updated manual. Press the Documentation button on the main menu window of the Testing release and select Manual.pdf. In paragraph 7.8 "Loading and Unloading Containers" the info to play the feature can be found, while in paragraph 9.4 "Container management" the whole info for trainset, routes, container objects (containers and container cranes) and activity creators is available.
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 User is offline   Aldarion 

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

Posted 30 November 2022 - 08:24 AM

Hi. I'm starting to convert all my container transport wagons to use this feature.
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 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Posts: Elite Member
  • Posts: 7,450
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 30 November 2022 - 09:29 AM

If you are defining the loaded wagons through the .con file (which is one of the two options available to define loaded wagons), what you have to insert in the .wag file is simpler than what you have posted above.
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 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner Group
  • Posts: 663
  • 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 Group
  • Posts: 663
  • 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: Posts: Elite Member
  • Posts: 7,450
  • 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 Group
  • Posts: 663
  • 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: Posts: Elite Member
  • Posts: 7,450
  • 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?

  • 8 Pages +
  • « First
  • 3
  • 4
  • 5
  • 6
  • 7
  • 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