Skip to content

Commit bb1bf62

Browse files
authored
Merge pull request #665 from cjakeman/menu-options02n
02n: Removes some redundant experimental options
2 parents 3729acd + 5956412 commit bb1bf62

File tree

7 files changed

+60
-220
lines changed

7 files changed

+60
-220
lines changed

Source/Documentation/Manual/options.rst

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -741,15 +741,6 @@ lat/lon rectangle corresponding to the arid zone of North America (lat from
741741
The randomization is not performed either if the activity contains weather
742742
change events.
743743

744-
.. _options-dds-textures:
745-
746-
Load DDS textures in preference to ACE
747-
--------------------------------------
748-
749-
Open Rails is capable of loading both ACE and DDS textures. If only one of
750-
the two is present, it is loaded. If both are present, the ACE texture is
751-
loaded unless this option has been selected.
752-
753744

754745
MSTS Environments
755746
-----------------
@@ -761,12 +752,6 @@ With this option selected, ORTS applies the MSTS environment files. This
761752
includes support of Kosmos environments, even if the final effect may be
762753
different from the current MSTS one.
763754

764-
Adhesion factor correction
765-
--------------------------
766-
767-
The adhesion is multiplied by this percentage factor. Therefore lower
768-
values of the slider reduce adhesion and cause more frequent wheel slips
769-
and therefore a more difficult, but more challenging driving experience.
770755

771756
Level of detail bias
772757
--------------------
@@ -793,37 +778,21 @@ Note: If your content does not use multiple LODs, then this option will have no
793778
Adhesion proportional to rain/snow/fog
794779
--------------------------------------
795780

796-
When this option is selected, adhesion becomes dependent on the intensity
781+
Adhesion is dependent on the intensity
797782
of rain and snow and the density of fog. Intensities and density can be
798783
modified at runtime by the player.
799784

785+
786+
Adhesion factor correction
787+
--------------------------
788+
789+
The adhesion is multiplied by this percentage factor. Therefore lower
790+
values of the slider reduce adhesion and cause more frequent wheel slips
791+
and therefore a more difficult, but more challenging driving experience.
792+
793+
800794
Adhesion factor random change
801795
-----------------------------
802796

803797
This factor randomizes the adhesion factor corrector by the entered
804798
percentage. The higher the value, the higher the adhesion variations.
805-
806-
Precipitation Box Size
807-
----------------------
808-
809-
Open Rails will simulate precipitation -- i.e. rain or snow, as falling
810-
individual particles. This represents a significant computing and display
811-
system load, especially for systems with limited resources. Therefore, the
812-
region in which the precipitation particles are visible, the
813-
*Precipitation Box*, is limited in size and moves with the camera. The
814-
size of the box can be set by the entries in the height, width and length
815-
boxes. The X and Z values are centered on the camera location, and falling
816-
particles *spawn* and fall from the top of the box.
817-
818-
The max size for both length and width is 3000 meters or 9,842ft. Due to possibe
819-
resource issues, the ability to use max length and width may not be possible. The
820-
best way to use the precipitation box is to define a square around your entire train
821-
if small enough or around most of your train. Keep track on how your resources are
822-
being used since snow will take up the most resources so you will have to adjust the
823-
size until you are satisified with the results.
824-
825-
The reason for defining a square around your train is to minimize the moments when your train
826-
is approaching the edge of the precipitation box. Worst case is to save the activity,
827-
exit and re-enter the activity since doing this will set your train back in the middle of the
828-
precipitation box.
829-

Source/Menu/Options.Designer.cs

Lines changed: 45 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Source/Menu/Options.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,12 @@ orderby folder.Key
317317
trackLODBias.Value = Settings.LODBias;
318318
trackLODBias_ValueChanged(null, null);
319319
checkSignalLightGlow.Checked = Settings.SignalLightGlow;
320-
checkPreferDDSTexture.Checked = Settings.PreferDDSTexture;
321320
checkUseLocationPassingPaths.Checked = Settings.UseLocationPassingPaths;
322321
checkUseMSTSEnv.Checked = Settings.UseMSTSEnv;
323322
trackAdhesionFactor.Value = Settings.AdhesionFactor;
324-
checkAdhesionPropToWeather.Checked = Settings.AdhesionProportionalToWeather;
325323
trackAdhesionFactorChange.Value = Settings.AdhesionFactorChange;
326324
trackAdhesionFactor_ValueChanged(null, null);
327325
checkShapeWarnings.Checked = !Settings.SuppressShapeWarnings; // Inverted as "Show warnings" is better UI than "Suppress warnings"
328-
precipitationBoxHeight.Value = Settings.PrecipitationBoxHeight;
329-
precipitationBoxWidth.Value = Settings.PrecipitationBoxWidth;
330-
precipitationBoxLength.Value = Settings.PrecipitationBoxLength;
331326
checkCorrectQuestionableBrakingParams.Checked = Settings.CorrectQuestionableBrakingParams;
332327
numericActRandomizationLevel.Value = Settings.ActRandomizationLevel;
333328
numericActWeatherRandomizationLevel.Value = Settings.ActWeatherRandomizationLevel;
@@ -509,16 +504,11 @@ void buttonOK_Click(object sender, EventArgs e)
509504
Settings.SuperElevationGauge = (int)numericSuperElevationGauge.Value;
510505
Settings.LODBias = trackLODBias.Value;
511506
Settings.SignalLightGlow = checkSignalLightGlow.Checked;
512-
Settings.PreferDDSTexture = checkPreferDDSTexture.Checked;
513507
Settings.UseLocationPassingPaths = checkUseLocationPassingPaths.Checked;
514508
Settings.UseMSTSEnv = checkUseMSTSEnv.Checked;
515509
Settings.AdhesionFactor = (int)trackAdhesionFactor.Value;
516-
Settings.AdhesionProportionalToWeather = checkAdhesionPropToWeather.Checked;
517510
Settings.AdhesionFactorChange = (int)trackAdhesionFactorChange.Value;
518511
Settings.SuppressShapeWarnings = !checkShapeWarnings.Checked;
519-
Settings.PrecipitationBoxHeight = (int)precipitationBoxHeight.Value;
520-
Settings.PrecipitationBoxWidth = (int)precipitationBoxWidth.Value;
521-
Settings.PrecipitationBoxLength = (int)precipitationBoxLength.Value;
522512
Settings.CorrectQuestionableBrakingParams = checkCorrectQuestionableBrakingParams.Checked;
523513
Settings.ActRandomizationLevel = (int)numericActRandomizationLevel.Value;
524514
Settings.ActWeatherRandomizationLevel = (int)numericActWeatherRandomizationLevel.Value;
@@ -584,8 +574,8 @@ private void trackAdhesionFactor_ValueChanged(object sender, EventArgs e)
584574
private void SetAdhesionLevelValue()
585575
{
586576
int level = trackAdhesionFactor.Value - trackAdhesionFactorChange.Value;
587-
if (checkAdhesionPropToWeather.Checked)
588-
level -= 40;
577+
// Adjust level to be proportional to weather
578+
level -= 40;
589579

590580
if (level > 159)
591581
AdhesionLevelValue.Text = catalog.GetString("Very easy");

Source/ORTS.Settings/UserSettings.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ public enum DirectXFeature
302302
[Default(false)]
303303
public bool AuxActionEnabled { get; set; }
304304
[Default(false)]
305-
public bool PreferDDSTexture { get; set; }
306-
[Default(false)]
307305
public bool UseLocationPassingPaths { get; set; }
308306
[Default(false)]
309307
public bool UseMSTSEnv { get; set; }

Source/RunActivity/Viewer3D/Common/Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static string GetNightTextureFile(Simulator simulator, string textureFile
6060
else if (!String.IsNullOrEmpty(nightTexturePath + textureName) && Path.GetExtension(nightTexturePath + textureName) == ".ace")
6161
{
6262
var alternativeTexture = Path.ChangeExtension(nightTexturePath + textureName, ".dds");
63-
if (simulator.Settings.PreferDDSTexture && !String.IsNullOrEmpty(alternativeTexture.ToLower()) && File.Exists(alternativeTexture))
63+
if (!String.IsNullOrEmpty(alternativeTexture.ToLower()) && File.Exists(alternativeTexture))
6464
{
6565
return alternativeTexture;
6666
}

Source/RunActivity/Viewer3D/Materials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Texture2D Get(string path, Texture2D defaultTexture, bool required = fals
8888
{
8989
var alternativeTexture = Path.ChangeExtension(path, ".dds");
9090

91-
if (Viewer.Settings.PreferDDSTexture && File.Exists(alternativeTexture))
91+
if (File.Exists(alternativeTexture))
9292
{
9393
DDSLib.DDSFromFile(alternativeTexture, GraphicsDevice, true, out texture);
9494
}

Source/RunActivity/Viewer3D/Processes/GameStateRunActivity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ protected override Texture2D GetTexture(Game game)
15091509
{
15101510
var alternativeTexture = Path.ChangeExtension(path, ".dds");
15111511

1512-
if (File.Exists(alternativeTexture) && game.Settings.PreferDDSTexture)
1512+
if (File.Exists(alternativeTexture))
15131513
{
15141514
DDSLib.DDSFromFile(alternativeTexture, gd, true, out texture);
15151515
}

0 commit comments

Comments
 (0)