ORTS Diesel Engine Parameter loading depends on loaction in eng-file

Bug #1572729 reported by Tim Pieta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

If you combine MSTS and OR Diesel Engine Parameters, OR uses the OR Parameters in dependence of the location in the eng-file.

Example:
If you only want to add a Diesel Engine Power Tab like
 ortsdieselengines
 ( 1
 Diesel(
   dieselpowertab(
    0 0
    400 500hp
    750 933hp
   )
  )
 )
to MT_DD_CLASS_27_27102.eng of the example material, it will be recognized by OR, if it is located e.g. as the last entry of the eng-file. Then missing OR Diesel Engine Parameters are replaced by existing MSTS parameters, as it should. If you add the same Power Tab e.g. below the MSTS Sanding Parameter, it does not work. It's resulting in zero engine rpm, power and tractive force.

Tags: physics
Revision history for this message
Tim Pieta (tipp89) wrote :
Revision history for this message
Tim Pieta (tipp89) wrote :

I think the attached patch solves the problem by executing the function

                                                                 DieselEngine -> public void InitFromMSTS

after the whole eng-file has been parsed.

Tim Pieta (tipp89)
tags: added: physics
removed: diesel engine parameter
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.