Elvas Tower: Trying to fix starting friction myself - Elvas Tower

Jump to content

  • 7 Pages +
  • « First
  • 4
  • 5
  • 6
  • 7
  • You cannot start a new topic
  • You cannot reply to this topic

Trying to fix starting friction myself Any advice is appreciated here Rate Topic: -----

#51 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 10 February 2020 - 08:06 AM

Thanks

Testing version from January 31, but I can´t find the OpenRailsLog.txt file, only one for my other stable version. Do you think I have to delete all other ORTS installments due to overlapping?

#52 User is offline   scottb613 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,973
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 10 February 2020 - 09:57 AM

Hi Nick,

I don't think so - but there is a setting to generate log files - I believe it should just dump to you desktop - are you sure it's on in the testing version ?

Regards,
Scott

#53 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 10 February 2020 - 11:04 AM

Figured out how ORTS needs to be configured to use the log file. Here comes the crashy version...


#54 User is offline   Csantucci 

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

Posted 10 February 2020 - 01:29 PM

You are still building in release mode and not in debug mode, so the code line that crashes can't be seen.

#55 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 23 December 2020 - 08:19 AM

Well time has gone by so it´s back to the drawing board...

When I developed the extended starting friction parameters I planned on doing this for dynamic weight settings as well, as vehicles modified in this manner already have different values for the Davis lines in empty and full condition but this part still only works in conjuction with ORTSBearingType.

I just downloaded the newest code for the unstable version and... WOW, it looks quite different like when I muddled it up in a private version; some things are missing though it still works as intended, so good job folks...

As my marginal coding experience has seemingly come and gone it may be very complicated getting back into this.

#56 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 23 December 2020 - 12:05 PM

And the first slap in the face yet occured... Looks like I have to base anything new on quite old code because VisualStudio throws hundreds of erros when compiling the newer code.

For whatever reason there are at least two files concerning freight animation;
-MSTSWagon.cs
-FreightAnimations.cs

For now I foolishly modified the latter with no results.

#57 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 24 December 2020 - 02:19 AM



Now I also modified MSTSWagon.cs with everything I know so far, but still nothing changed. Can someone have a look at this please?

#58 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 03 January 2021 - 01:02 AM

I was just remembering when I made the static weight friction settings back then I made an entirely new system which was seperated by a new variable.

IsDavisFriction
IsORTSFriction


Originally when the former was 'true' ORTS uses the Davis lines and ORTSBearingType and if it´s 'false' then ORTS reverts back to the older MSTS friction settings calculateable with FCalC.

In order to introduce the new lines I basiclly copied the Davis part and replaced the entry for bearing type (three rather rigid calculations) with said replacement lines. But when this code amendment was introduced to the official ORTS code the variable 'IsORTSFriction = true' and anything written there was stuffed into 'IsDavisFriction = true'... It still works as intended, no problem there, but it now makes it quite impossible for me to make similar changes to varying weight fricion settings.

Obviously I would try to copy anything about this as well though I can´t remember well how I made things back then. Coding experience comes and goes if not steadily used... But is that really the right way if at all?

#59 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 10 January 2021 - 02:00 AM

I just tried the following settings on the PRR T1 tender though there are no noticeable differences in private vs official version sadly...

ORTSBearingType ( Low )
ORTSStandstillFriction ( 1865.9235 )
ORTSMergeSpeed ( 0.237926 )
	include ( "..\\Common.inc\\Westinghouse_26L.inc" )
comment ( 221.25 & 98.7 us tons / 8 axles / 13.05 square meters )
	ORTSFreightAnims 
	( 
		WagonEmptyWeight( 98.7t-us )
		EmptyMaxBrakeForce ( 98.7kN )
		EmptyMaxHandbrakeForce ( 50kN ) 
		EmptyORTSDavis_A ( 1317.118416 )
		EmptyORTSDavis_B ( 13.037056 )
		EmptyORTSDavis_C ( 1.56326 )
		EmptyORTSStandstillFriction ( 1865.9235 )
		EmptyORTSMergeSpeed ( 0.237926 )
		EmptyCentreOfGravity_Y ( 1.4 ) 

		FreightAnimContinuous 
		( 
			FreightWeightWhenFull( 122.55t-us )
			FullMaxBrakeForce ( 221.25kN )
			FullMaxHandbrakeForce ( 50kN ) 
			FullORTSDavis_A ( 2952.507087 )
			FullORTSDavis_B ( 29.224404 )
			FullORTSDavis_C ( 1.56326 )
			FullORTSStandstillFriction ( 4182.73125 )
			FullORTSMergeSpeed ( 0.291127 )
			FullCentreOfGravity_Y ( 1.8 ) 
		) 
	)


With this setting ORTSBearingType ( Low ) is not used because ORTSStandstillFriction & ORTSMergeSpeed are present/activated, which now means their values are always valid, not depending upon tender weight. Said lines further down still won´t work but I´m stuck with no ideas left.

#60 User is offline   NickonWheels 

  • Conductor
  • Group: Status: Active Member
  • Posts: 327
  • Joined: 05-December 19
  • Gender:Male
  • Simulator:ORTS
  • Country:

Posted 19 January 2021 - 02:08 AM

Any ideas on the theme?

I´ve copied the two lines to any place where the Davis lines are already present and in force, but there is still no response.

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