Skip to content

Commit

Permalink
Automatic merge of T1.5-rc1-55-g01de7b11e and 10 pull requests
Browse files Browse the repository at this point in the history
- Pull request #570 at 824f96f: Experimental glTF 2.0 support with PBR lighting
- Pull request #630 at 704731a: Sky Color Fix (Addresses Trello Roadmap Card #367 for More accurate sunrise and sunset)
- Pull request #652 at 918fdb1: Add button functions to Raildriver
- Pull request #677 at 12d50c5: Correct double heading bug
- Pull request #688 at e44897d: adds Help Icons to Video tab
- Pull request #692 at 20de7da: Italian translation for OR 1.5
- Pull request #693 at 453ac3d: French locales
- Pull request #699 at 6baf43d: Bug fix for https://bugs.launchpad.net/or/+bug/1987453. Web: HUD/Force Information, some labels not visible.
- Pull request #705 at 80408da: feat: Updated Russian translations
- Pull request #706 at f786fff: TCS Extensions
  • Loading branch information
openrails-bot committed Sep 6, 2022
12 parents cc8ffee + 01de7b1 + 824f96f + 704731a + 918fdb1 + 12d50c5 + e44897d + 20de7da + 453ac3d + 6baf43d + 80408da + f786fff commit 17fccdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Expand Up @@ -978,7 +978,7 @@ public virtual void Parse(STFReader stf)
case "exhaustdynamicsdown": ExhaustDecelReduction = stf.ReadFloatBlock(STFReader.UNITS.None, null); initLevel |= SettingsFlags.ExhaustDynamics; break;
case "exhaustcolor": ExhaustSteadyColor = stf.ReadColorBlock(Color.Gray); initLevel |= SettingsFlags.ExhaustColor; break;
case "exhausttransientcolor": ExhaustTransientColor = stf.ReadColorBlock(Color.Black);initLevel |= SettingsFlags.ExhaustTransientColor; break;
case "dieselpowertab": DieselPowerTab = new Interpolator(stf);initLevel |= SettingsFlags.DieselPowerTab; break;
case "dieselpowertab": DieselPowerTab = new Interpolator(stf); initLevel |= SettingsFlags.DieselPowerTab; break;
case "dieselconsumptiontab": DieselConsumptionTab = new Interpolator(stf);initLevel |= SettingsFlags.DieselConsumptionTab; break;
case "throttlerpmtab":
ThrottleRPMTab = new Interpolator(stf);
Expand Down Expand Up @@ -1688,7 +1688,6 @@ public void Save(BinaryWriter outf)
/// </summary>
public void InitFromMSTS()
{

if (MaximumRailOutputPowerW == 0 && Locomotive.MaxPowerW != 0)
{
MaximumRailOutputPowerW = Locomotive.MaxPowerW; // set rail power to a default value on the basis that of the value specified in the MaxPowerW parameter
Expand Down Expand Up @@ -2141,7 +2140,6 @@ public void InitDieselRailPowers(MSTSDieselLocomotive loco)
{
// Set up the reverse ThrottleRPM table. This is used to provide an apparent throttle setting to the Tractive Force calculation, and allows the diesel engine to control the up/down time of
// tractive force. This table should be creeated with all locomotives, as they will either use (create) a default ThrottleRPM table, or the user will enter one.

if (ThrottleRPMTab != null)
{
var size = ThrottleRPMTab.GetSize();
Expand Down
Expand Up @@ -70,7 +70,7 @@ public void Parse(string lowercasetoken, STFReader stf)
switch (lowercasetoken)
{
case "engine(gearboxnumberofgears": GearBoxNumberOfGears = stf.ReadIntBlock(1); initLevel++; break;
case "engine(ortsreversegearboxindication": int tempIndication = stf.ReadIntBlock(1); if (tempIndication == 1) { ReverseGearBoxIndication = true; } Trace.TraceInformation("Read Indication {0}",ReverseGearBoxIndication); break;
case "engine(ortsreversegearboxindication": int tempIndication = stf.ReadIntBlock(1); if (tempIndication == 1) { ReverseGearBoxIndication = true; }; break;
case "engine(gearboxdirectdrivegear": GearBoxDirectDriveGear = stf.ReadIntBlock(1); break;
case "engine(ortsgearboxfreewheel":
var freeWheel = stf.ReadIntBlock(null);
Expand Down Expand Up @@ -661,11 +661,12 @@ public float TractiveForceN

if (CurrentSpeedMpS > 0)
{
if (tractiveForceN > (DieselEngine.RailPowerTab[DieselEngine.RealRPM] / CurrentSpeedMpS))
var tractiveEffortLimitN = (DieselEngine.DieselPowerTab[DieselEngine.RealRPM] * (DieselEngine.LoadPercent / 100f)) / CurrentSpeedMpS;

if (tractiveForceN > tractiveEffortLimitN )
{
tractiveForceN = DieselEngine.RailPowerTab[DieselEngine.RealRPM] / CurrentSpeedMpS;
tractiveForceN = tractiveEffortLimitN;
}

}

// Set TE to zero if gear change happening && type B gear box
Expand Down

0 comments on commit 17fccdd

Please sign in to comment.