feat(settings): the physical models of the simulator, and Arcade and Realistic levels of realism

The Physics tab has a section of driving realism with the models the simulator
reads (utilities/Globals.cpp):
- couplerphysics: the legacy couplings, or the physical ones (play, give,
  breaking) of the player's train or of every train;
- physics.derailment: off, classic (the simulator's own monitor), physical;
- physics.collisions: classic or physical (the simulator's own);
- physics.trackbuckling: off, from the scenery (its own), also from heat;
- deer: animals by the track;
with the crash damage, the breaking pantographs, the power from the wires only
and the state of a consist at its start, moved here from General.

Two levels set them in one go: Arcade forgives - no derailment, the legacy
couplings and collisions, no buckling, no damage, power without the wires, every
consist ready to drive; Realistic takes the physical models - the couplings of
the player's train, the derailment by its criteria (a track's own speed limit
still derails nothing), the crush of the ends, buckling in the heat - and the
consists as the scenario has them. The simulator's own values stand between the
two and show as custom; each setting can still be changed on its own.

The developer tab has physics.derailment.trustlimits,
controlcoupling.enginecheck, ai.brakesetting.cw1 and physics.trackcheck. A list
takes the other words the simulator reads for its own (couplerphysics true,
physics.derailment no), and a word of a list is named per key where it means
something of its own there.
This commit is contained in:
2026-11-29 20:16:24 +01:00
parent cf3a6a4ca8
commit 7c2d259fdc
13 changed files with 478 additions and 19 deletions
+105
View File
@@ -0,0 +1,105 @@
using StarterNG.Domain.Settings;
using StarterNG.Tests.Fakes;
namespace StarterNG.Tests;
public class PhysicsPresetTests
{
private static SimulatorSettings Defaults()
{
var installation = new TestInstallation();
installation.SettingsStore.Load();
return installation.SettingsStore.Settings.Copy();
}
[Fact]
public void The_simulators_own_physics_are_neither_arcade_nor_realistic()
{
Assert.Null(PhysicsPreset.Matching(Defaults()));
}
[Fact]
public void A_level_of_realism_applied_is_recognised_until_one_setting_moves()
{
foreach (var preset in PhysicsPreset.All)
{
var settings = Defaults();
preset.ApplyTo(settings);
Assert.Same(preset, PhysicsPreset.Matching(settings));
settings.CrashDamage = !settings.CrashDamage;
Assert.Null(PhysicsPreset.Matching(settings));
}
}
[Fact]
public void Arcade_forgives_and_realistic_takes_the_physical_models()
{
var arcade = Defaults();
PhysicsPreset.Arcade.ApplyTo(arcade);
Assert.False(arcade.CrashDamage);
Assert.False(arcade.LiveTraction);
Assert.Equal(ConsistReadyOverride.AlwaysReady, arcade.ReadyOverride);
Assert.Equal("off", arcade.Extra["physics.derailment"]);
var realistic = Defaults();
PhysicsPreset.Realistic.ApplyTo(realistic);
Assert.True(realistic.CrashDamage);
Assert.Equal(ConsistReadyOverride.Scenery, realistic.ReadyOverride);
Assert.Equal("yes", realistic.Extra["couplerphysics"]);
Assert.Equal("new", realistic.Extra["physics.derailment"]);
Assert.Equal("new", realistic.Extra["physics.collisions"]);
Assert.Equal("auto", realistic.Extra["physics.trackbuckling"]);
}
[Fact]
public void Every_value_of_a_level_is_one_its_row_offers()
{
foreach (var preset in PhysicsPreset.All)
foreach (var (name, value) in preset.Keys)
Assert.True(SimulatorKeys.Named(name).ChoiceIndex(value) >= 0, $"{preset.NameKey} {name} {value}");
Assert.All(PhysicsPreset.All.SelectMany(preset => preset.Keys.Keys), key => Assert.Contains(key, PhysicsPreset.AllKeys));
}
[Fact]
public void No_level_of_realism_touches_the_picture_nor_a_level_of_detail_the_realism()
{
var settings = Defaults();
GraphicsPreset.Low.ApplyTo(settings);
PhysicsPreset.Realistic.ApplyTo(settings);
Assert.Same(GraphicsPreset.Low, GraphicsPreset.Matching(settings));
GraphicsPreset.VeryHigh.ApplyTo(settings);
Assert.Same(PhysicsPreset.Realistic, PhysicsPreset.Matching(settings));
}
[Theory]
[InlineData("couplerphysics", "true", "yes")]
[InlineData("couplerphysics", "1", "yes")]
[InlineData("physics.derailment", "no", "off")]
[InlineData("physics.trackbuckling", "no", "off")]
[InlineData("couplerphysics", "no", "no")]
public void A_word_the_simulator_takes_for_another_stands_for_it(string name, string raw, string word)
{
var key = SimulatorKeys.Named(name);
Assert.Equal(key.ChoiceIndex(word), key.ChoiceIndex(raw));
}
[Fact]
public void A_level_of_realism_survives_a_save()
{
var installation = new TestInstallation();
var store = installation.SettingsStore;
store.Load();
PhysicsPreset.Realistic.ApplyTo(store.Settings);
store.Save();
var again = new TestInstallation(installation.Files).SettingsStore;
again.Load();
Assert.Same(PhysicsPreset.Realistic, PhysicsPreset.Matching(again.Settings));
string saved = installation.Files.ReadAllText(store.SavePath);
Assert.Contains("physics.derailment new", saved);
Assert.Contains("couplerphysics yes", saved);
}
}
@@ -81,6 +81,32 @@ public class SettingsUnknownValueTests
});
}
[Fact]
public void A_level_of_realism_picked_is_saved_and_marked_until_a_setting_moves()
{
WithPage(Standard, (page, services, saved) =>
{
var buttons = page.FindControl<StackPanel>("PhysicsPresetButtons")!.Children.OfType<Button>().ToList();
var state = page.FindControl<TextBlock>("PhysicsPresetState")!;
Assert.Equal(App.Loc["PresetCustom"], state.Text);
buttons[1].RaiseEvent(new Avalonia.Interactivity.RoutedEventArgs(Button.ClickEvent));
Controls.Settle();
Assert.True(buttons[1].Classes.Contains("Accent"));
Assert.Equal("new", (((ComboBox)Row(page, "physics.derailment").Content!).SelectedItem as ComboBoxItem)?.Tag);
page.Save();
Assert.Contains("physics.derailment new\n", saved());
Assert.Contains("couplerphysics yes\n", saved());
Assert.Contains("crashdamage yes\n", saved());
page.FindControl<CheckBox>("CrashDamageCb")!.IsChecked = false;
Controls.Settle();
Assert.Equal(App.Loc["PresetCustom"], state.Text);
Assert.False(buttons[1].Classes.Contains("Accent"));
});
}
[Fact]
public void A_level_of_ray_tracing_picked_is_saved_as_its_reach()
{
@@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace StarterNG.Domain.Settings;
/// <summary>
/// How true to life the driving is, set in one go. Arcade forgives: no derailment, the legacy couplings and
/// collisions, no damage, no broken pantograph, power without the wires, every consist ready to drive. Realistic
/// takes the physical models of the simulator: the couplings of the player's train with their play and their
/// breaking, the derailment by its criteria (a track's own speed limit still derails nothing, as
/// physics.derailment.trustlimits keeps it), the crush of the ends in a collision, the track buckling in the heat,
/// and the consists as the scenario has them. The simulator's own values stand between the two.
/// </summary>
/// <param name="NameKey">Its name's translation key.</param>
/// <param name="Keys">The <see cref="SimulatorKeys"/> it sets, in the file's words.</param>
public sealed record PhysicsPreset(
string NameKey,
bool CrashDamage,
bool PantographsBreak,
bool PowerFromWiresOnly,
ConsistReadyOverride ReadyOverride,
IReadOnlyDictionary<string, string> Keys)
{
/// <summary>The eu07.ini keys a level sets.</summary>
public static readonly IReadOnlyList<string> AllKeys = new[]
{
"crashdamage", "enabletraction", "livetraction", "starter.batterydefault",
"couplerphysics", "physics.derailment", "physics.collisions", "physics.trackbuckling"
};
private static Dictionary<string, string> Values(params (string Key, string Value)[] values) =>
values.ToDictionary(pair => pair.Key, pair => pair.Value, StringComparer.OrdinalIgnoreCase);
public static readonly PhysicsPreset Arcade = new(
"PhysicsArcade", CrashDamage: false, PantographsBreak: false, PowerFromWiresOnly: false,
ReadyOverride: ConsistReadyOverride.AlwaysReady,
Values(("couplerphysics", "no"), ("physics.derailment", "off"), ("physics.collisions", "old"),
("physics.trackbuckling", "off")));
public static readonly PhysicsPreset Realistic = new(
"PhysicsRealistic", CrashDamage: true, PantographsBreak: true, PowerFromWiresOnly: true,
ReadyOverride: ConsistReadyOverride.Scenery,
Values(("couplerphysics", "yes"), ("physics.derailment", "new"), ("physics.collisions", "new"),
("physics.trackbuckling", "auto")));
public static readonly IReadOnlyList<PhysicsPreset> All = new[] { Arcade, Realistic };
public void ApplyTo(SimulatorSettings s)
{
s.CrashDamage = CrashDamage;
s.EnableTraction = PantographsBreak;
s.LiveTraction = PowerFromWiresOnly;
s.ReadyOverride = ReadyOverride;
foreach (var (key, value) in Keys)
s.Extra[key] = value;
}
/// <summary>Whether <paramref name="s"/> is at this level throughout.</summary>
public bool Matches(SimulatorSettings s) =>
s.CrashDamage == CrashDamage && s.EnableTraction == PantographsBreak && s.LiveTraction == PowerFromWiresOnly &&
s.ReadyOverride == ReadyOverride &&
Keys.All(pair => SimulatorKeys.Named(pair.Key) is var key &&
key.ChoiceIndex(key.RawIn(s)) == key.ChoiceIndex(pair.Value));
/// <summary>The level <paramref name="s"/> is at throughout, if any.</summary>
public static PhysicsPreset? Matching(SimulatorSettings s) => All.FirstOrDefault(preset => preset.Matches(s));
}
+28 -3
View File
@@ -54,6 +54,17 @@ public sealed record SimulatorKey(
for (int i = 0; i < Choices.Count; i++)
if (string.Equals(Choices[i], word, StringComparison.OrdinalIgnoreCase))
return i;
// The other words the simulator takes for one of them (couplerphysics true, physics.derailment no).
string? alias = word.ToLowerInvariant() switch
{
"true" or "1" => "yes",
"no" => "off",
_ => null
};
if (alias is not null)
for (int i = 0; i < Choices.Count; i++)
if (string.Equals(Choices[i], alias, StringComparison.Ordinal))
return i;
if (ReferenceEquals(Choices, Levels) &&
int.TryParse(word, NumberStyles.Integer, CultureInfo.InvariantCulture, out int level) &&
level >= 0 && level < Choices.Count)
@@ -97,7 +108,8 @@ public static class SimulatorKeys
/// </summary>
public static readonly IReadOnlySet<string> Standard = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"ui.scale"
"ui.scale",
"couplerphysics", "physics.derailment", "physics.collisions", "physics.trackbuckling", "deer"
};
public const string General = "general";
@@ -123,8 +135,11 @@ public static class SimulatorKeys
private static SimulatorKey Text(string key, string category, string section) =>
new(key, SimulatorKeyKind.Text, string.Empty, category, section);
private static SimulatorKey Choice(string key, string value, string section, IReadOnlyList<string>? choices = null) =>
new(key, SimulatorKeyKind.Choice, value, Advanced, section, Choices: choices ?? SimulatorKey.Levels);
private static SimulatorKey Choice(string key, string value, string section, IReadOnlyList<string>? choices = null,
string category = Advanced) =>
new(key, SimulatorKeyKind.Choice, value, category, section, Choices: choices ?? SimulatorKey.Levels);
public const string RealismSection = "RealismSection";
public static SimulatorKey Named(string key) => All.First(k => k.Key == key);
@@ -207,6 +222,15 @@ public static class SimulatorKeys
Number("sound.maxsources", 30, Advanced, "IniSectionAudio", 8, 256, 8),
// How true to life the driving is: the physics/ models of utilities/Globals.cpp, from the legacy ones on.
Choice("couplerphysics", "no", RealismSection, new[] { "no", "yes", "all" }, Physics),
Choice("physics.derailment", "monitor", RealismSection, new[] { "off", "monitor", "new", "old" }, Physics),
Choice("physics.collisions", "new", RealismSection, new[] { "old", "new", "monitor" }, Physics),
Choice("physics.trackbuckling", "scenery", RealismSection, new[] { "off", "scenery", "auto" }, Physics),
Toggle("deer", false, Physics, RealismSection),
Toggle("physics.derailment.trustlimits", true, Advanced, "IniSectionPhysics"),
Toggle("controlcoupling.enginecheck", true, Advanced, "IniSectionPhysics"),
Toggle("ai.brakesetting.cw1", true, Advanced, "IniSectionPhysics"),
Toggle("loadtraction", true, Advanced, "IniSectionPhysics"),
Toggle("rollfix", true, Advanced, "IniSectionPhysics"),
Number("shakefactor", 1, Advanced, "IniSectionPhysics", 0, 3, 0.1, "×", repeat: 3),
@@ -217,5 +241,6 @@ public static class SimulatorKeys
Toggle("showsystemconsole", false, Advanced, LogsSection),
Number("debug.perflog", 0, Advanced, LogsSection, 0, 60, 1, " s", zeroIsOff: true),
Toggle("crashdump.full", false, Advanced, LogsSection),
Toggle("physics.trackcheck", false, Advanced, LogsSection),
};
}
+29 -10
View File
@@ -187,15 +187,6 @@
<ctl:SettingRow ConfigKey="starter.expandtree">
<CheckBox x:Name="AutoExpandTreeCb" Content="{Binding [AutoExpandSceneryTree], Source={x:Static starterNg:App.Loc}}" />
</ctl:SettingRow>
<ctl:SettingRow ConfigKey="starter.batterydefault"
Label="{Binding [ReadyOverride], Source={x:Static starterNg:App.Loc}}"
Description="{Binding [ReadyOverrideDesc], Source={x:Static starterNg:App.Loc}}">
<ComboBox x:Name="ReadyOverrideCb" Classes="Localized" SelectedIndex="0">
<ComboBoxItem Content="{Binding [ReadyOverrideScenery], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Content="{Binding [ReadyOverrideCold], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Content="{Binding [ReadyOverrideReady], Source={x:Static starterNg:App.Loc}}" />
</ComboBox>
</ctl:SettingRow>
</StackPanel>
</ctl:SettingsSection>
</StackPanel>
@@ -372,8 +363,21 @@
<StackPanel Tag="physics" IsVisible="False">
<TextBlock Classes="CategoryCaption" IsVisible="False"
Text="{Binding [Physics], Source={x:Static starterNg:App.Loc}}" />
<ctl:SettingsSection Header="{Binding [Physics], Source={x:Static starterNg:App.Loc}}">
<!-- How true to life the driving is: a level in one go, each model to change on its own. -->
<ctl:SettingsSection Header="{Binding [RealismSection], Source={x:Static starterNg:App.Loc}}">
<StackPanel>
<ctl:SettingRow Label="{Binding [PhysicsPresets], Source={x:Static starterNg:App.Loc}}"
Description="{Binding [PhysicsPresetsDesc], Source={x:Static starterNg:App.Loc}}">
<StackPanel Orientation="Horizontal" Spacing="6">
<StackPanel x:Name="PhysicsPresetButtons" Orientation="Horizontal" Spacing="6" />
<TextBlock x:Name="PhysicsPresetState" ctl:Announcer.Changes="True" VerticalAlignment="Center"
FontSize="12" Foreground="{StaticResource CarbonFgDim}" />
</StackPanel>
</ctl:SettingRow>
<ctl:KeySlot Key="couplerphysics" />
<ctl:KeySlot Key="physics.derailment" />
<ctl:KeySlot Key="physics.collisions" />
<ctl:KeySlot Key="physics.trackbuckling" />
<ctl:SettingRow Description="{Binding [CrashDamageDesc], Source={x:Static starterNg:App.Loc}}" ConfigKey="crashdamage">
<CheckBox x:Name="CrashDamageCb" Content="{Binding [CrashDamage], Source={x:Static starterNg:App.Loc}}" />
</ctl:SettingRow>
@@ -383,6 +387,21 @@
<ctl:SettingRow ConfigKey="livetraction" Description="{Binding [PowerOverheadLineOnlyDesc], Source={x:Static starterNg:App.Loc}}">
<CheckBox x:Name="OverheadOnlyCb" Content="{Binding [PowerOverheadLineOnly], Source={x:Static starterNg:App.Loc}}" />
</ctl:SettingRow>
<ctl:SettingRow ConfigKey="starter.batterydefault"
Label="{Binding [ReadyOverride], Source={x:Static starterNg:App.Loc}}"
Description="{Binding [ReadyOverrideDesc], Source={x:Static starterNg:App.Loc}}">
<ComboBox x:Name="ReadyOverrideCb" Classes="Localized" SelectedIndex="0">
<ComboBoxItem Content="{Binding [ReadyOverrideScenery], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Content="{Binding [ReadyOverrideCold], Source={x:Static starterNg:App.Loc}}" />
<ComboBoxItem Content="{Binding [ReadyOverrideReady], Source={x:Static starterNg:App.Loc}}" />
</ComboBox>
</ctl:SettingRow>
<ctl:KeySlot Key="deer" />
</StackPanel>
</ctl:SettingsSection>
<ctl:SettingsSection Header="{Binding [BrakeKeysSection], Source={x:Static starterNg:App.Loc}}">
<StackPanel>
<ctl:SettingRow ConfigKey="brakestep" x:Name="BrakeStepRow" Label="{Binding [BrakeStep], Source={x:Static starterNg:App.Loc}}"
Description="{Binding [BrakeStepDesc], Source={x:Static starterNg:App.Loc}}">
<ctl:ReadableSlider x:Name="BrakeStepSlider" Minimum="0.4" Maximum="3.0" TickFrequency="0.1" Value="1.0"
+54
View File
@@ -101,6 +101,7 @@ public partial class Settings : UserControl, ISettingsCapture
_keyRows.Changed += QueuePresetMarks;
BuildPresetButtons();
BuildRayTracing();
BuildPhysicsPresets();
BuildMonitorRates();
ReadGraphicsCards();
App.Loc.LanguageChanged += UpdateCardText;
@@ -680,6 +681,7 @@ public partial class Settings : UserControl, ISettingsCapture
private void UpdatePresetMarks()
{
var trial = Trial();
UpdatePhysicsPresetMarks(trial);
var matching = GraphicsPreset.Matching(trial);
foreach (var (preset, button) in _presetButtons)
{
@@ -696,6 +698,58 @@ public partial class Settings : UserControl, ISettingsCapture
_markingLevels = false;
}
// ── How true to life the driving is ─────────────────────────────────────
private readonly List<(PhysicsPreset Preset, Button Button)> _physicsButtons = new();
private void BuildPhysicsPresets()
{
foreach (var preset in PhysicsPreset.All)
{
var button = new Button { Cursor = new Cursor(StandardCursorType.Hand) };
button.Classes.Add("Flat");
button.Click += (_, _) => ApplyPhysicsPreset(preset);
PhysicsPresetButtons.Children.Add(button);
_physicsButtons.Add((preset, button));
}
UpdatePhysicsPresetTexts();
App.Loc.LanguageChanged += UpdatePhysicsPresetTexts;
}
private void UpdatePhysicsPresetTexts()
{
foreach (var (preset, button) in _physicsButtons)
button.Content = App.Loc[preset.NameKey];
UpdatePhysicsPresetMarks(Trial());
}
/// <summary>Puts a level of realism on the screen, as edits waiting for Save.</summary>
private void ApplyPhysicsPreset(PhysicsPreset preset)
{
var trial = Trial();
preset.ApplyTo(trial);
ShowAsEdits(trial, PhysicsPreset.AllKeys);
foreach (var (key, value) in preset.Keys)
_keyRows.Show(key, value);
ForgetShown(PhysicsPreset.AllKeys);
UpdatePresetMarks();
Announcer.Say(this, ScreenReaderNames.PickerText(App.Loc["PhysicsPresets"], App.Loc[preset.NameKey]));
}
private void UpdatePhysicsPresetMarks(SimulatorSettings trial)
{
if (!_built)
return;
var matching = PhysicsPreset.Matching(trial);
foreach (var (preset, button) in _physicsButtons)
{
button.Classes.Set("Accent", preset == matching);
button.Classes.Set("Flat", preset != matching);
}
PhysicsPresetState.Text = matching is null ? App.Loc["PresetCustom"] : string.Empty;
}
// ── The ray-traced reflections ───────────────────────────────────────────
/// <summary>The list's item for a reach none of the levels has, while the rows have one.</summary>
+8 -6
View File
@@ -116,16 +116,18 @@ internal sealed class SimulatorKeyRows
{
var list = new ComboBox { MinWidth = 160 };
foreach (string choice in key.Choices ?? Array.Empty<string>())
list.Items.Add(new ComboBoxItem { Tag = choice, Content = ChoiceText(choice) });
list.Items.Add(new ComboBoxItem { Tag = choice, Content = ChoiceText(key, choice) });
return list;
}
/// <summary>
/// A word of a list as the player reads it: translated where the language has it (no, low, high...), else in
/// English, else as the simulator writes it (DLSS's preset letters).
/// A word of a list as the player reads it: as that key names it (the "new" of the derailment), else as every
/// list names it (no, low, high...), translated where the language has it, else in English, else as the
/// simulator writes it (DLSS's preset letters).
/// </summary>
private static string ChoiceText(string choice) =>
App.Loc.OptOrEnglish(SimulatorKey.ChoiceLabelKey(choice)) is { Length: > 0 } text ? text : choice;
private static string ChoiceText(SimulatorKey key, string choice) =>
App.Loc.OptOrEnglish(SimulatorKey.ChoiceLabelKey(key.Key + "." + choice)) is { Length: > 0 } own ? own
: App.Loc.OptOrEnglish(SimulatorKey.ChoiceLabelKey(choice)) is { Length: > 0 } text ? text : choice;
/// <summary>The developer tab's rows are named in the language where it has them, else in English.</summary>
private static string Text(string key) => App.Loc.OptOrEnglish(key);
@@ -188,7 +190,7 @@ internal sealed class SimulatorKeyRows
case ComboBox list:
row.Setting.Label = label;
foreach (var item in list.Items.OfType<ComboBoxItem>())
item.Content = ChoiceText(item.Tag as string ?? string.Empty);
item.Content = ChoiceText(row.Key, item.Tag as string ?? string.Empty);
break;
default:
row.Setting.Label = label;
+23
View File
@@ -957,4 +957,27 @@
<String key="SimulatorSection">Simulátor</String>
<String key="RayTracing">Ray tracing (odrazy)</String>
<String key="RayTracingOff">Vypnuto</String>
<String key="RealismSection">Realismus jízdy</String>
<String key="PhysicsPresets">Úroveň realismu</String>
<String key="PhysicsArcade">Arkádový</String>
<String key="PhysicsRealistic">Realistický</String>
<String key="BrakeKeysSection">Brzda z klávesnice</String>
<String key="Ini.couplerphysics">Spřáhla</String>
<String key="Ini.physics.derailment">Vykolejení</String>
<String key="Ini.physics.collisions">Srážky</String>
<String key="Ini.physics.trackbuckling">Vybočení koleje v horku</String>
<String key="Ini.deer">Zvěř u trati</String>
<String key="Choice.couplerphysics.no">Zjednodušená</String>
<String key="Choice.couplerphysics.yes">Fyzikální – vlak hráče</String>
<String key="Choice.couplerphysics.all">Fyzikální – všechny vlaky</String>
<String key="Choice.physics.derailment.off">Vypnuto</String>
<String key="Choice.physics.derailment.monitor">Klasické</String>
<String key="Choice.physics.derailment.new">Fyzikální</String>
<String key="Choice.physics.derailment.old">Klasické, bez protokolu</String>
<String key="Choice.physics.collisions.old">Klasické</String>
<String key="Choice.physics.collisions.new">Fyzikální</String>
<String key="Choice.physics.collisions.monitor">Klasické, fyzikální do protokolu</String>
<String key="Choice.physics.trackbuckling.off">Vypnuto</String>
<String key="Choice.physics.trackbuckling.scenery">Ze scenérie</String>
<String key="Choice.physics.trackbuckling.auto">I z horka</String>
</Language>
+34
View File
@@ -1257,4 +1257,38 @@
<String key="RayTracingOff">Off</String>
<String key="RayTracingDesc">Ray-traced reflections: more exact, but costly. Vulkan and a card with ray tracing only (NVIDIA RTX, AMD RX 6000 and newer). The level is how far the rays reach; no level of detail turns them on.</String>
<String key="SelectEXEDesc">Automatic picks the build that runs on this processor. Choose another only when several builds are installed.</String>
<String key="RealismSection">Driving realism</String>
<String key="PhysicsPresets">Realism level</String>
<String key="PhysicsArcade">Arcade</String>
<String key="PhysicsRealistic">Realistic</String>
<String key="BrakeKeysSection">Brake from the keyboard</String>
<String key="Ini.couplerphysics">Couplings</String>
<String key="Ini.physics.derailment">Derailment</String>
<String key="Ini.physics.collisions">Collisions</String>
<String key="Ini.physics.trackbuckling">Track buckling in heat</String>
<String key="Ini.deer">Animals by the track</String>
<String key="Choice.couplerphysics.no">Simplified</String>
<String key="Choice.couplerphysics.yes">Physical – the player's train</String>
<String key="Choice.couplerphysics.all">Physical – every train</String>
<String key="Choice.physics.derailment.off">Off</String>
<String key="Choice.physics.derailment.monitor">Classic</String>
<String key="Choice.physics.derailment.new">Physical</String>
<String key="Choice.physics.derailment.old">Classic, nothing to the log</String>
<String key="Choice.physics.collisions.old">Classic</String>
<String key="Choice.physics.collisions.new">Physical</String>
<String key="Choice.physics.collisions.monitor">Classic, physical to the log</String>
<String key="Choice.physics.trackbuckling.off">Off</String>
<String key="Choice.physics.trackbuckling.scenery">From the scenery</String>
<String key="Choice.physics.trackbuckling.auto">Also from heat</String>
<String key="PhysicsPresetsDesc">Arcade forgives: no derailment, no damage, power without the wires, every consist ready to drive. Realistic takes the physical models of the couplings, derailment, collisions and track. Each setting below can still be changed on its own.</String>
<String key="Ini.couplerphysics.Desc">Physical: buffers and draw gear with play, give and breaking, as a rough start or a hard stop shows. On every train it costs more processor time.</String>
<String key="Ini.physics.derailment.Desc">Physical: a vehicle too fast in a curve overturns or climbs the rail; within the track's own speed limit nothing derails. Classic: the old rule.</String>
<String key="Ini.physics.collisions.Desc">Physical: the ends crush, a vehicle may ride up onto another or be pushed off the track. Classic: the old rule of a safe closing speed.</String>
<String key="Ini.physics.trackbuckling.Desc">From the scenery: only where its author put a buckle. Also from heat: weak places of welded track buckle when the rails get hot.</String>
<String key="Ini.deer.Desc">Deer graze by the track ahead and run away from the horn.</String>
<String key="Ini.physics.derailment.trustlimits">A track's speed limit derails nothing</String>
<String key="Ini.physics.derailment.trustlimits.Desc">With physical derailment: within the limit only the couplings, a buckle or damage derail.</String>
<String key="Ini.controlcoupling.enginecheck">No multiple-unit control of electric and diesel</String>
<String key="Ini.ai.brakesetting.cw1">AI sets the brakes by Cw-1</String>
<String key="Ini.physics.trackcheck">Suspicious track geometry to the log</String>
</Language>
+23
View File
@@ -957,4 +957,27 @@
<String key="SimulatorSection">Szimulátor</String>
<String key="RayTracing">Sugárkövetés (tükröződések)</String>
<String key="RayTracingOff">Ki</String>
<String key="RealismSection">Vezetési realizmus</String>
<String key="PhysicsPresets">Realizmus szintje</String>
<String key="PhysicsArcade">Árkád</String>
<String key="PhysicsRealistic">Valósághű</String>
<String key="BrakeKeysSection">Fék a billentyűzetről</String>
<String key="Ini.couplerphysics">Kapcsolókészülékek</String>
<String key="Ini.physics.derailment">Kisiklás</String>
<String key="Ini.physics.collisions">Ütközések</String>
<String key="Ini.physics.trackbuckling">Vágánykivetődés hőségben</String>
<String key="Ini.deer">Állatok a pálya mellett</String>
<String key="Choice.couplerphysics.no">Egyszerűsített</String>
<String key="Choice.couplerphysics.yes">Fizikai – a játékos vonata</String>
<String key="Choice.couplerphysics.all">Fizikai – minden vonat</String>
<String key="Choice.physics.derailment.off">Ki</String>
<String key="Choice.physics.derailment.monitor">Klasszikus</String>
<String key="Choice.physics.derailment.new">Fizikai</String>
<String key="Choice.physics.derailment.old">Klasszikus, napló nélkül</String>
<String key="Choice.physics.collisions.old">Klasszikus</String>
<String key="Choice.physics.collisions.new">Fizikai</String>
<String key="Choice.physics.collisions.monitor">Klasszikus, a fizikai a naplóba</String>
<String key="Choice.physics.trackbuckling.off">Ki</String>
<String key="Choice.physics.trackbuckling.scenery">A pályáról</String>
<String key="Choice.physics.trackbuckling.auto">Hőségtől is</String>
</Language>
+34
View File
@@ -1079,4 +1079,38 @@
<String key="RayTracingOff">Wyłączony</String>
<String key="RayTracingDesc">Odbicia liczone ray tracingiem: dokładniejsze, ale kosztowne. Tylko Vulkan i karta z ray tracingiem (NVIDIA RTX, AMD RX 6000 i nowsze). Poziom to zasięg promieni; poziomy jakości grafiki go nie włączają.</String>
<String key="SelectEXEDesc">Automatycznie wybiera wersję, która działa na tym procesorze. Wybierz inną tylko wtedy, gdy masz zainstalowanych kilka wersji.</String>
<String key="RealismSection">Realizm jazdy</String>
<String key="PhysicsPresets">Poziom realizmu</String>
<String key="PhysicsArcade">Arcade</String>
<String key="PhysicsRealistic">Realistyczny</String>
<String key="BrakeKeysSection">Hamulec z klawiatury</String>
<String key="Ini.couplerphysics">Sprzęgi</String>
<String key="Ini.physics.derailment">Wykolejenia</String>
<String key="Ini.physics.collisions">Zderzenia</String>
<String key="Ini.physics.trackbuckling">Wyboczenie toru w upale</String>
<String key="Ini.deer">Zwierzęta przy torach</String>
<String key="Choice.couplerphysics.no">Uproszczone</String>
<String key="Choice.couplerphysics.yes">Fizyczne – pociąg gracza</String>
<String key="Choice.couplerphysics.all">Fizyczne – wszystkie pociągi</String>
<String key="Choice.physics.derailment.off">Wyłączone</String>
<String key="Choice.physics.derailment.monitor">Klasyczne</String>
<String key="Choice.physics.derailment.new">Fizyczne</String>
<String key="Choice.physics.derailment.old">Klasyczne, bez wpisów w logu</String>
<String key="Choice.physics.collisions.old">Klasyczne</String>
<String key="Choice.physics.collisions.new">Fizyczne</String>
<String key="Choice.physics.collisions.monitor">Klasyczne, fizyczne do logu</String>
<String key="Choice.physics.trackbuckling.off">Wyłączone</String>
<String key="Choice.physics.trackbuckling.scenery">Ze scenerii</String>
<String key="Choice.physics.trackbuckling.auto">Także od upału</String>
<String key="PhysicsPresetsDesc">Arcade wybacza: bez wykolejeń i uszkodzeń, prąd bez sieci, każdy skład gotowy do jazdy. Realistyczny włącza fizyczne modele sprzęgów, wykolejeń, zderzeń i toru. Każde ustawienie poniżej można potem zmienić osobno.</String>
<String key="Ini.couplerphysics.Desc">Fizyczne: zderzaki i sprzęgi z luzem, uginaniem i zrywaniem, co czuć przy szarpnięciu i ostrym hamowaniu. Dla wszystkich pociągów bardziej obciąża procesor.</String>
<String key="Ini.physics.derailment.Desc">Fizyczne: pojazd za szybki w łuku przewraca się albo wspina na szynę; w granicach prędkości dozwolonej na torze nic się nie wykoleja. Klasyczne: dawna reguła.</String>
<String key="Ini.physics.collisions.Desc">Fizyczne: czoła się zgniatają, pojazd może wjechać na drugi albo zostać zepchnięty z toru. Klasyczne: dawna reguła bezpiecznej prędkości najazdu.</String>
<String key="Ini.physics.trackbuckling.Desc">Ze scenerii: tylko tam, gdzie umieścił je autor. Także od upału: słabe miejsca toru bezstykowego wyboczają się, gdy szyny się nagrzeją.</String>
<String key="Ini.deer.Desc">Sarny pasą się przy torze przed pociągiem i uciekają przed sygnałem.</String>
<String key="Ini.physics.derailment.trustlimits">Prędkość dozwolona toru nie wykoleja</String>
<String key="Ini.physics.derailment.trustlimits.Desc">Przy fizycznych wykolejeniach: w granicach dozwolonej prędkości wykolejają tylko sprzęgi, wyboczenie albo uszkodzenie.</String>
<String key="Ini.controlcoupling.enginecheck">Bez sterowania wielokrotnego elektrycznych ze spalinowymi</String>
<String key="Ini.ai.brakesetting.cw1">AI nastawia hamulce według Cw-1</String>
<String key="Ini.physics.trackcheck">Podejrzana geometria torów do logu</String>
</Language>
+23
View File
@@ -957,4 +957,27 @@
<String key="SimulatorSection">Симулятор</String>
<String key="RayTracing">Трассировка лучей (отражения)</String>
<String key="RayTracingOff">Выкл.</String>
<String key="RealismSection">Реализм вождения</String>
<String key="PhysicsPresets">Уровень реализма</String>
<String key="PhysicsArcade">Аркадный</String>
<String key="PhysicsRealistic">Реалистичный</String>
<String key="BrakeKeysSection">Тормоз с клавиатуры</String>
<String key="Ini.couplerphysics">Сцепки</String>
<String key="Ini.physics.derailment">Сход с рельсов</String>
<String key="Ini.physics.collisions">Столкновения</String>
<String key="Ini.physics.trackbuckling">Выброс пути в жару</String>
<String key="Ini.deer">Животные у пути</String>
<String key="Choice.couplerphysics.no">Упрощённые</String>
<String key="Choice.couplerphysics.yes">Физические – поезд игрока</String>
<String key="Choice.couplerphysics.all">Физические – все поезда</String>
<String key="Choice.physics.derailment.off">Выкл.</String>
<String key="Choice.physics.derailment.monitor">Классические</String>
<String key="Choice.physics.derailment.new">Физические</String>
<String key="Choice.physics.derailment.old">Классические, без журнала</String>
<String key="Choice.physics.collisions.old">Классические</String>
<String key="Choice.physics.collisions.new">Физические</String>
<String key="Choice.physics.collisions.monitor">Классические, физические в журнал</String>
<String key="Choice.physics.trackbuckling.off">Выкл.</String>
<String key="Choice.physics.trackbuckling.scenery">Из сценерии</String>
<String key="Choice.physics.trackbuckling.auto">Также от жары</String>
</Language>
+23
View File
@@ -1205,4 +1205,27 @@
<String key="AdvancedModeOffConfirm">关闭高级模式会把“开发者”选项卡中的所有内容恢复为启动器自带的值(Vulkan,所有优化开启),并保存本页的设置。画质保持“图形”选项卡中显示的样子。要关闭吗?</String>
<String key="SimulatorSection">模拟器</String>
<String key="RayTracingOff">关闭</String>
<String key="RealismSection">驾驶真实度</String>
<String key="PhysicsPresets">真实度</String>
<String key="PhysicsArcade">街机</String>
<String key="PhysicsRealistic">真实</String>
<String key="BrakeKeysSection">键盘制动</String>
<String key="Ini.couplerphysics">车钩</String>
<String key="Ini.physics.derailment">脱轨</String>
<String key="Ini.physics.collisions">碰撞</String>
<String key="Ini.physics.trackbuckling">高温胀轨</String>
<String key="Ini.deer">轨道旁的动物</String>
<String key="Choice.couplerphysics.no">简化</String>
<String key="Choice.couplerphysics.yes">物理 – 玩家列车</String>
<String key="Choice.couplerphysics.all">物理 – 所有列车</String>
<String key="Choice.physics.derailment.off">关闭</String>
<String key="Choice.physics.derailment.monitor">经典</String>
<String key="Choice.physics.derailment.new">物理</String>
<String key="Choice.physics.derailment.old">经典(不记录日志)</String>
<String key="Choice.physics.collisions.old">经典</String>
<String key="Choice.physics.collisions.new">物理</String>
<String key="Choice.physics.collisions.monitor">经典(物理结果记录日志)</String>
<String key="Choice.physics.trackbuckling.off">关闭</String>
<String key="Choice.physics.trackbuckling.scenery">来自场景</String>
<String key="Choice.physics.trackbuckling.auto">也包括高温</String>
</Language>