Orts.Parsers.Msts.STFException at Orts.Simulation.RollingStocks.ParticleEmitterData..ctor (X4116, Empty DieselSpecialEffects section causes crash)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
New
|
Undecided
|
Unassigned |
Bug Description
The particular engine is MEP-Cravens105 from the UKTrainSim Mid East PLus route DVD.
This engioe is a DMU and is set up as a driving trailer (unpowered)
Therefore there is a DieselSpecialEfects section but the section contains no Exhaust blocks.
Unfotunately I do not have an MSTS installation anymore, but I suspect this is handled nby MSTS.
However when loading an activity using Open Rails it crashes:
Error: System.
For testing purposes I commented out the exhaust blocks
Effects (
DieselSpeci
comment (
the format of these little blocks is as follow:
offset.x offset.y offset.z
normal.x normal.y normal.z
width in metres
defining the offset from the shape pivot point
where steam / smoke should appear, the direction
it should go and the width of the nozzle
Exhaust1 (
0.60 3.90914 -9.0
0.2 0.3 0
0.1
)
Exhaust2 (
-0.60 3.90914 -9.0
0.2 0.3 0
0.1
)
)
)
If I uncomment the exhaust blocks it works perfectly. Of course being a trailer unit it should really have no exhaust. I haven't figured out a way to disable it - perhaps reducing the smoke level to near zero?
The activity is Cambridge to Ely in the MEP route.
I have attached the log file.
summary: |
- Empty DieselSpecialEffects section causes crash + Orts.Parsers.Msts.STFException (Empty DieselSpecialEffects section + causes crash) |
summary: |
- Orts.Parsers.Msts.STFException (Empty DieselSpecialEffects section - causes crash) + Orts.Parsers.Msts.STFException at + Orts.Simulation.RollingStocks.ParticleEmitterData..ctor (Empty + DieselSpecialEffects section causes crash) |
summary: |
Orts.Parsers.Msts.STFException at - Orts.Simulation.RollingStocks.ParticleEmitterData..ctor (Empty + Orts.Simulation.RollingStocks.ParticleEmitterData..ctor (X4116, Empty DieselSpecialEffects section causes crash) |
tags: |
added: content crash physics removed: dmu engfile |
Remove the comment lines and you won't have the crash.