Regardless of where I set the breakpoint according to the tutorial the ORTS loading screen appears, loads and then crashes without telling me something useful except there is some problem with the UpdaterProcess.cs file (the last public void of it).
I tried anything to tell VS that if the three bearing types are not in use (and this should also mean to not use friction bearings to which ORTS defaults when ORTSBearingType is NOT present), but it leads to nothing or to the wagons not having friction at all again. It is not possible though to set the line
case "wagon(ortsbearingtype": stf.MustMatch("("); string typeString2 = stf.ReadString(); IsRollerBearing = String.Compare(typeString2, "Roller") == 0; IsLowTorqueRollerBearing = String.Compare(typeString2, "Low") == 0; IsFrictionBearing = String.Compare(typeString2, "Friction") == 0; break;
into a clause, like
if (IsDavisFriction = true) { case "wagon(ortsbearingtype": stf.MustMatch("("); string typeString2 = stf.ReadString(); IsRollerBearing = String.Compare(typeString2, "Roller") == 0; IsLowTorqueRollerBearing = String.Compare(typeString2, "Low") == 0; IsFrictionBearing = String.Compare(typeString2, "Friction") == 0; break; }
There is no indicator showing that this part is only used for IsDavisFriction because it must not be used in IsORTSFriction.