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 +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Container management Rate Topic: -----

#16 User is offline   ETR500n30FR 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 16
  • Joined: 21-May 15
  • Simulator:OpenRails
  • Country:

Posted 17 April 2022 - 11:26 PM

Carlo,

sorry for the question but once released will it be inserted in the "MG" or in the "unstable" version?

Edoardo

#17 User is offline   Laci1959 

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

Posted 18 April 2022 - 12:04 AM

View PostCsantucci, on 17 April 2022 - 12:14 AM, said:

Hi Peter,
at the moment I will stick with containers.

Re your other point, containers are not .wag files, but at the moment are inserted as part of a freight animation within a wagon. So I don't see issues related to articulated wagons or their new strictures.
I am rather thinking to create a new type of file (e.g. a .loa file) that contains the data for a container. Initial associations between wagons and containers could be inserted in the .con file. This way it is not necessary to create a separate .wag file for each wagon-container couple.
I think this is something that has been sketched in Amtrak115 post.


Hello.

Using multiple FreightAnimDiscrete blocks is not a viable option? Would you really complicate the code or the wag file, i.e. the ORTSFreightAnims block?

Sincerely, Laci 1959

#18 User is offline   Csantucci 

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

Posted 18 April 2022 - 11:55 AM

Edoardo,
this will first appear in ORNYMG and then, when both the Blueprint is approved and the code is sufficiently stable, also in the Unstable release.

Laci,
sorry but I dont' understand well your question. What do you do with multiple FreightAnimDiscrete blocks? Why should the ORTSFreightAnims block be complicated in my solution?

#19 User is offline   Laci1959 

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

Posted 18 April 2022 - 01:18 PM

	ORTSFreightAnims (
		MSTSFreightAnimEnabled ( 0 )
		WagonEmptyWeight( 12.575t )	comment ( az üres kocsi tömege, továbbiakban minden bejegyzés az üres kocsira vonatkozik )
		EmptyMaxBrakeForce ( 47kN )	comment ( fékerő )
		EmptyMaxHandbrakeForce ( 15kN )	comment ( kézifék ereje )
		EmptyORTSDavis_A ( 465.8 )	comment ( gördülési ellenállás )
		EmptyORTSDavis_B ( 3.2 )	comment ( gördülési ellenállás )
		EmptyORTSDavis_C ( 0.9942 )	comment ( gördülési ellenállás )
		EmptyCentreOfGravity_Y ( 2.02 )	comment ( súlypont )
		IsGondola ( 0 )			comment ( nem buktatással ürít )
		UnloadingStartDelay ( 2 )	comment ( kirakodás megkezdésének a késleltetése )
		LoadingEndDelay ( 2 )		comment ( berakodás megkezdésének a késleltetése )
		
		FreightAnimDiscrete (			comment ( a rakodás típusa )
                        IntakePoint ( 3.07937 6.0 Container )	comment ( alul külön részletezve  )
                        FreightWeightWhenFull ( 26.7t )		comment ( a rakomány tömege, továbbiakban minden bejegyzés a rakott kocsira vonatkozik )
                        LoadedAtStart ( 1 )			comment ( a játék indulásakor rakott, az üres kocsinál ez 0 )
                        FullMaxBrakeForce ( 112kN )		comment ( fékerő, továbbiakban minden bejegyzés az rakott kocsira vonatkozik )
                        FullMaxHandbrakeForce ( 35kN )		comment ( kézifék ereje )
                        FullORTSDavis_A ( 793.1 )		comment ( gördülési ellenállás )
                        FullORTSDavis_B ( 10.52 )		comment ( gördülési ellenállás )
                        FullORTSDavis_C ( 0.9942 )		comment ( gördülési ellenállás )
                        FullCentreOfGravity_Y ( 1.72 )		comment ( súlypont )
                        Offset( 0.0, 0.0, 0.0 )			comment ( elvileg a rakomány pozíciója, szerintem ide nem kell )
                        Container (
                                Shape(  "../COMMON.FREIGHT/Container/Hapag-Loyd_40ft.s" )	comment ( a felvehető konténer shape neve )
                                ContainerType ( C40ftHC )	comment ( a felrakható konténer típusa, alul külön részletezve )
                                IntrinsicShapeOffset ( 0 1.17 3.07937 )	comment ( a konténer pivotpontjának az eltolása, alul külön részletezve )
                                Flip ( 0 )			comment ( a kontérer megfordítása 180 fokkal )
                        )
                )
		FreightAnimDiscrete (			comment ( a rakodás típusa )
                        IntakePoint ( 3.07937 6.0 Container )	comment ( alul külön részletezve  )
                        FreightWeightWhenFull ( 26.7t )		comment ( a rakomány tömege, továbbiakban minden bejegyzés a rakott kocsira vonatkozik )
                        LoadedAtStart ( 1 )			comment ( a játék indulásakor rakott, az üres kocsinál ez 0 )
                        FullMaxBrakeForce ( 112kN )		comment ( fékerő, továbbiakban minden bejegyzés az rakott kocsira vonatkozik )
                        FullMaxHandbrakeForce ( 35kN )		comment ( kézifék ereje )
                        FullORTSDavis_A ( 793.1 )		comment ( gördülési ellenállás )
                        FullORTSDavis_B ( 10.52 )		comment ( gördülési ellenállás )
                        FullORTSDavis_C ( 0.9942 )		comment ( gördülési ellenállás )
                        FullCentreOfGravity_Y ( 1.72 )		comment ( súlypont )
                        Offset( 0.0, 0.0, 0.0 )			comment ( elvileg a rakomány pozíciója, szerintem ide nem kell )
                        Container (
                                Shape(  "../COMMON.FREIGHT/Container/Maersk_40ft.s" )	comment ( a felvehető konténer shape neve )
                                ContainerType ( C40ftHC )	comment ( a felrakható konténer típusa, alul külön részletezve )
                                IntrinsicShapeOffset ( 0 1.17 3.07937 )	comment ( a konténer pivotpontjának az eltolása, alul külön részletezve )
                                Flip ( 0 )			comment ( a kontérer megfordítása 180 fokkal )
                        )
                )
        )


Hello.

I apologize for the comments in Hungarian, but I will provide detailed explanations for other users.
There are two FreightAnimDiscrete blocks, one with a Hapag-Loyd 40ft and the other with a Maersk 40ft container.
I think he puts it on the car he finds first in the loading area. Of course, he takes it down and places it in the loading area for what he finds on the car.
Now that I’m writing this, comes the realization of what happens if you can’t find any of them.
Maybe it was a bad idea?

Sincerely, Laci 1959

#20 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 2,006
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 18 April 2022 - 10:00 PM

Hi Carlo,

Thanks for the feedback.

View PostCsantucci, on 17 April 2022 - 12:14 AM, said:

Re your other point, containers are not .wag files, but at the moment are inserted as part of a freight animation within a wagon. So I don't see issues related to articulated wagons or their new strictures.
I am rather thinking to create a new type of file (e.g. a .loa file) that contains the data for a container. Initial associations between wagons and containers could be inserted in the .con file. This way it is not necessary to create a separate .wag file for each wagon-container couple.
I think this is something that has been sketched in Amtrak115 post.

Will different scenarios, such as single and double stacked containers be done with the "freight animation" approach that you are using? Can the physics vary depending upon how many containers are added?

It could within reason fit in with the "articulated" wagons structures as it is potentially a load spanning two sets of axles.

We should also need to consider the impact on the CON file, as at the moment they are set up to accept WAG and ENG files.

Also, as you are proposing a new potential file, it might be worthwhile to start a thread in the developers forum to seek further architectural input, and hence reduce any rework that future architectural changes could impose on your work.

#21 User is offline   Laci1959 

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

Posted 18 April 2022 - 10:55 PM

Quote

It could within reason fit in with the "articulated" wagons structures as it is potentially a load spanning two sets of axles.


Hello Mr steamer_ctn.

I know it's Off, so I'm sorry. Where is the sample for that car. I’ve been trying to put it together for a long time and I can’t. It does not move in the curves as it should. It is true that it rests on the three bogie. Could this be a mistake?

Sincerely, Laci 1959

#22 User is offline   Csantucci 

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

Posted 19 April 2022 - 07:49 AM

View Poststeamer_ctn, on 18 April 2022 - 10:00 PM, said:

Hi Carlo,

Thanks for the feedback.


Will different scenarios, such as single and double stacked containers be done with the "freight animation" approach that you are using? Can the physics vary depending upon how many containers are added?

It could within reason fit in with the "articulated" wagons structures as it is potentially a load spanning two sets of axles.

We should also need to consider the impact on the CON file, as at the moment they are set up to accept WAG and ENG files.

Also, as you are proposing a new potential file, it might be worthwhile to start a thread in the developers forum to seek further architectural input, and hence reduce any rework that future architectural changes could impose on your work.

Hi Petee,
yes, double stacked containers in trains are foreseen. The physics should vary, but I won't work on this. Once the function is consolidated, I'd prefer that someone else (You know whom I'm thinking about...) inserts the needed code additions.

#23 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 2,006
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 19 April 2022 - 08:25 PM

View PostLaci1959, on 18 April 2022 - 10:55 PM, said:

I know it's Off, so I'm sorry. Where is the sample for that car. I’ve been trying to put it together for a long time and I can’t. It does not move in the curves as it should. It is true that it rests on the three bogie. Could this be a mistake?

I was merely pointing out an architectural discussion that have been taking place to facillitate multiple cars to be "combined" into an articulated (combined) car from a physics perspective. At the moment this feature does not currently exist in OR.


View PostCsantucci, on 19 April 2022 - 07:49 AM, said:

yes, double stacked containers in trains are foreseen. The physics should vary, but I won't work on this. Once the function is consolidated, I'd prefer that someone else (You know whom I'm thinking about...) inserts the needed code additions.
Thanks for the feedback on the double stacked containers.

I am happy to have a look at the physics for you.

However I would still like to see a discussion thread in the developers forum to get broader input on architectural structures, especially as these changes may impact on the CON files, and also in creating a new LOA file. Ideally it should be part of a bigger picture view.

From a physics perspective, this change is similar to the "articulated" wagon whereby they are both creating a "consolidated" wagon from multiple WAG (or LOA) files, and therefore managing the consolidated wagon from a physics perspective may even use some of the same code.

#24 User is offline   Laci1959 

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

Posted 23 April 2022 - 10:49 PM

Hello.

I have two questions.
1. Do I think the Z axis of the container crane is the same as the Z axis of the railway vehicle? At least parallel to av.
2. The animation consists of only 3 frames as in the example. This is compulsory? True, an animation of 3 cubes is simpler than an animation of 30 cubes. The cranes of the Budapest Intermodal Logistics Center are moving on a nearly 700-meter-long track. There are some restrictions on this.

I'm sorry to ask for nonsense, but I'm in an unfamiliar area.

https://kephost.net/p/2022/16/1684_7225e40d649c.png
I did it based on the characteristics of a Chinese container crane. It’s not exactly like BILK cranes, but I don’t think it will bother anyone.

Sincerely, Laci 1959

#25 User is offline   Csantucci 

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

Posted 24 April 2022 - 12:25 AM

Hi,
great that you are developing that! The Z axis of the crane should coincide with the Z axis of the train, and the Z zero should be in the middle of the extension of the Z axis (not at one end!). Please have a long extension of the Z axis (at least 100 m)! This is more realistic. X should be at one of the two internal sides of the crane. To accommodate for the longer extension of the Z axis you can do something like this:
				anim_node ZAXIS (
					controllers ( 1
						linear_pos ( 3
							linear_key ( 0 0 0 -50 )
							linear_key ( 5 0 0 50 )
							linear_key ( 10 0 0 -50 )
						)
					)
				)

This way the Z movement is five times slower than the other two. (In reality the third linear_key line can be omitted).
If you want to add the cables to raise and lower the YAxis part that enters in contact with the wagon, they must be hierarchically dependent from YAxis.

#26 User is offline   Laci1959 

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

Posted 24 April 2022 - 12:38 AM

Hello.

Thank you very much for your reply.
Helped a lot. I was thinking about parallelism. This is obviously the solution.

Quote

If you want to add the cables to raise and lower the YAxis part that enters in contact with the wagon, they must be hierarchically dependent from YAxis.

I'll cross this bridge when I get there. There is still a lot of work to be done.

Sincerely, Laci 1959

#27 User is offline   Weter 

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

Posted 24 April 2022 - 02:57 AM

God to help You!

#28 User is offline   Laci1959 

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

Posted 24 April 2022 - 09:28 AM

Thanks. And my two left hands.

#29 User is offline   Csantucci 

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

Posted 28 April 2022 - 09:02 AM

First release of double stacking containers on wagons works, and if I have time I'll provide a short video. Aldarion provided a container crane with cables and with a grabber which varies its extension depending from the length of the container, and the controls for such animations have been introduced in the code and work. Moreover now it is no more needed to move the train for every container. It is now possible to perform load/unload operations for all wagons that are within the Z-movement range of the crane.

Replying to Peter after some days of coding and testing: I'm open to discussion about file formats and so on, but I think that the best place is here, for two reasons: first, we are speaking about files that will be managed by content creators and by players, so here there is a wider audience. Second, I prefer not to duplicate the discussion.

At the moment for the containers I am using an intermediate solution: container data are stored in .inc files (one for every container type) within a directory, with a mnemonic name indicating the dimensions of the container and the brand. This way it is not needed to write specific code, and the data are centralized, easily accessible and don't require duplication. As this is a solution that didn't require writing code, another solution, if better, wouldn't mean that I have wasted time.

I am thinking at two ways to link container data to wagon data: the first way is - let's say so - an embedded way, where the .wag file contains the data of the containers carried by referencing the above .inc files. I think that wagon+container developers would like to have also this possibility. The second way is to insert the link in the .con file.
I am thinking at the following one:
                ...
		Wagon (
			WagonData ( DTTX_62142_3D ATW.DTTX_62142 )
			UiD ( 6 )
                        ContainerData (
                            Container (
                                Include ( "..//..//common.containerdata//20hamburgsud.inc")
                                Alignment (CenterRear)
                                )
                            Container (
                                Include ( "..//..//common.containerdata//20cmacgm.inc")
                                Alignment (CenterFront)
                                )
                            ...
		)
                ...


Allowed alignments are Rear, CenterRear, CenterFront, Front, Center and Above. I believe I can manage all significant container layouts this way.
Center alignment is default.
Inserting the code to manage these insertions should not be a problem, and I think that this format is easily manageable by both activity creators and players.

In addition to that, a new file format is needed to define the containers that are present at game start in the various container stations. I'd prefer to keep it in "MSTS" format, because that would be coherent with the other files, but I see that for new file formats the .json format is mandatory...
This new file could then be recalled from .act files, and also from timetable files, provided someone would implement this second link.

#30 User is offline   cjakeman 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 3,090
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 28 April 2022 - 11:51 AM

View PostCsantucci, on 28 April 2022 - 09:02 AM, said:

In addition to that, a new file format is needed to define the containers that are present at game start in the various container stations. I'd prefer to keep it in "MSTS" format, because that would be coherent with the other files, but I see that for new file formats the .json format is mandatory...

Yes, it is indeed mandatory.

Anyway, this is a terrific piece of work. Well done to everyone involved.

  • 8 Pages +
  • 1
  • 2
  • 3
  • 4
  • 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