Elvas Tower: New Models crash Auto Pilot Mode - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

New Models crash Auto Pilot Mode Rate Topic: -----

#1 User is offline   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,237
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 01 January 2021 - 11:57 AM

I have just received the following report about a model I am building:

Quote

Oh, by the way, the 3 Jub's run nicely in a manual driving mode, but if you try to run them in OR 'Autopilot' mode for testing, all 3 crash the sim !!!

What are the likely reasons?
Would anyone like to have a look at this problem for me?


#2 User is offline   Csantucci 

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

Posted 01 January 2021 - 11:59 AM

Starting point for any analysis is the logfile.

#3 User is offline   copperpen 

  • Executive Vice President
  • Group: Status: Elite Member
  • Posts: 3,144
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 01 January 2021 - 01:13 PM

Does your tester actually mean Autopilot, or auto firing mode, big difference.

#4 User is offline   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,237
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 02 January 2021 - 04:35 AM

Thanks. Yes, just tried myself - the problem is with auto-pilot, not with manual firing.
Lots of things to look at in the log file some with the loco, some with the cab... at the end of which it says "thread hanging" I don't know if that follows on. Will explore them further.



#5 User is offline   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,237
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 22 February 2021 - 10:03 AM

Some new information, fresh from UKTS

Quote

Hi Darwin

Is it possible that the “crashing” Jubilee’s in Autopilot mode are caused by this line in the .eng file

BrakesEngineBrakeType ( "steam_brake" ).

When commented out like this

Comment (BrakesEngineBrakeType ( "steam_brake" ))

the Autopilot does not crash the sim.

Problem is of course that when the loco is used in player mode with the line commented out , the loco becomes vacuum braked.


Cheers for now

Terry



#6 User is offline   Csantucci 

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

Posted 23 February 2021 - 07:27 AM

As already written, it would be useful to get the logfile. This provides info about the code point where the crash occurs, as well indicates what OR version is concerned. Also getting he .eng file would be useful.

P.S. I got the crash too. I'll have a check.

#7 User is offline   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,237
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 23 February 2021 - 07:57 AM

Here is the eng file (or parts thereof).


Attached File  LMS_5XP_5566.zip (42.17K)
Number of downloads: 235


I may have to ask a person who has experienced the crash for their OR log file.

#8 User is offline   Csantucci 

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

Posted 23 February 2021 - 08:05 AM

OK, OR crashes here, in VacuumSinglePipe.cs
// depending upon whether steam brake fitted or not, calculate brake force to be applied
                    if (LocomotiveSteamBrakeFitted && (Car.WagonType == MSTSWagon.WagonTypes.Engine || Car.WagonType == MSTSWagon.WagonTypes.Tender))
                    {
                        f = Car.MaxBrakeForceN * Math.Min(SteamBrakeCylinderPressurePSI / lead.MaxBoilerPressurePSI, 1);
                    }

lead is null for AI trains. With this hint I expect that the author of this code will easily correct it. I don't dare doing it, because it's a genuine steam loco physics issue, and it's a fully unknown world fto me.

#9 User is offline   steamer_ctn 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,889
  • Joined: 24-June 11
  • Gender:Male
  • Country:

Posted 23 February 2021 - 10:57 PM

 Csantucci, on 23 February 2021 - 08:05 AM, said:

With this hint I expect that the author of this code will easily correct it.

@Carlo - Thanks for the hint.

I have uploaded a patch to the latest unstable version to hopefully fix it.

Can you and Darwin confirm that all is now ok.

Thanks

#10 User is offline   Csantucci 

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

Posted 24 February 2021 - 12:00 AM

Peter, that's OK now.

Page 1 of 1
  • 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