NullreferenceExeption after Resum

Bug #1712792 reported by Roger van Duijnhoven
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Undecided
Unassigned

Bug Description

With one locomotive, when I start and play in ORTS, there are no problems.
However, after saving the game and restart (Resume) I get the message "NullreferenceExeption"?

These .ENG / .WAG files have many "new" ORTS parameters, 3D CAB, etc.
After many testing and exclusion of parameters, I have not found the problem yet.
I hope the problem or link can be found / identified.

As an attachment, the Error.log and the relevant config files.

Best regards,
Roger

Revision history for this message
Roger van Duijnhoven (qj-6811) wrote :
Revision history for this message
Carlo Santucci (carlosanit1) wrote :

Your ORTSFreightAnims block within the extended .wag file is missing an IntakePoint line. Read paragraph 9.3.3 of the manual.

Changed in or:
status: New → Invalid
Revision history for this message
Roger van Duijnhoven (qj-6811) wrote :

Maybe I miss something, but according to the manual par. 9.3.3 you do not have to mention an intake point in the extended file?
For clarification, it is a Tender of a steam locomotive.
BTW, The calculation of (separate) coal and water supply works well.

Revision history for this message
Roger van Duijnhoven (qj-6811) wrote :

Just a short test done.
If I indicate the "intake points" in the extended file as two separate blocks, the calculation does not go well. (Separate weight of water and coal supply).

But if I put both intake points (same as in the .WAG file) into the extended file as "one block", then it goes well!
IOW, the calculation of tender weight with water and coal (separate) goes well. And the "Save and Resume" works again without any problems.

Does the question remain: Is this meant in ORTS?
If yes, then the example in the manual must be adjusted as an example for a tender.

Revision history for this message
Roger van Duijnhoven (qj-6811) wrote :

Add file not work?

Well, The solution is as follows

=================

include ( ../MAV_424-365szerk.wag )

Wagon (
ORTSFreightAnims
   (
      WagonEmptyWeight( 27.6t )
  EmptyMaxBrakeForce ( 27.07kN )
  EmptyMaxHandbrakeForce ( 5.42kN )
  EmptyORTSDavis_A ( 682.19 )
  EmptyORTSDavis_B ( 12.873 )
  EmptyORTSDavis_C ( 1.44646 )
  EmptyCentreOfGravity_Y ( 1.41 )
  FreightAnimContinuous
  (
   IntakePoint ( -1.5 2.5 FuelCoal )
   IntakePoint ( 3.0 1.0 FuelWater )
   FreightWeightWhenFull( 33t )
   FullMaxBrakeForce ( 56.49kN )
   FullMaxHandbrakeForce ( 11.30kN )
   FullORTSDavis_A ( 877.25 )
   FullORTSDavis_B ( 27.976 )
   FullORTSDavis_C ( 1.44646 )
   FullCentreOfGravity_Y ( 1.8 )
  )

 )
)

Revision history for this message
Peter Newell (coals-to-newcastle) wrote :

#3936 - patch added to ignore the need for a intakepoint if not used (such as the case for a locomotive or tender).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers