358 Commits

Author SHA1 Message Date
Hirek a095cdee0c Merge pull request #70 from MaSzyna-EU07/feat/settings-basic-advanced
Feat/settings basic advanced
staging
2026-11-30 19:39:49 +00:00
Hirek 43600f29c6 fix(exit): no box of the starter after eu07_starter.exe or the simulator already said why
Started through eu07_starter.exe, a simulator that failed got two boxes in a
row: the one of eu07_starter.exe, then the starter's own with the exit code.
The starter's box is now left out where the player already has one:
- an error code of the system (0xC...) through eu07_starter.exe: it explained
  the code, or caught the crash the simulator then reported in its own box;
  Ctrl+C (0xC000013A), which it leaves without a word, still gets the box;
- code 1 through eu07_starter.exe with the simulator's log not written since
  the start: eu07_starter.exe did not start it (missing, refused by its checks,
  or the player's No) and said why;
- 0xE0450010, the simulator's own notice of a processor it cannot run on,
  with or without eu07_starter.exe.
The log of the starter still records each of these exits.
2026-11-30 20:37:23 +01:00
Hirek 4a71dd957b feat(exe): on Windows the automatic choice starts eu07_starter.exe
The simulator builds eu07_starter.exe beside eu07.exe (starter/eu07_starter.cpp):
it checks the processor and the libraries first, explains a start the system
refuses with a bare code, writes the minidump of a crash from outside, passes the
arguments on and returns the simulator's exit code. The automatic search now
takes it ahead of eu07.exe on Windows.

A simulator picked by hand stays. Without AVX2 a build without it still comes
first, as the starter would start the AVX2 build. Under Wine nothing changes.
2026-11-30 20:33:36 +01:00
Hirek f791edcb3c Merge remote-tracking branch 'origin/staging' into feat/settings-basic-advanced 2026-11-30 20:29:35 +01:00
Hirek aff8a1b8c9 Merge branch 'main' into feat/settings-basic-advanced 2026-11-30 20:28:54 +01:00
Hirek 71ec32864f Merge pull request #65 from MaSzyna-EU07/feat/settings-basic-advanced
Settings for new exe
2026-11-30 17:08:00 +00:00
maj00r 121481af00 Merge pull request #68 from MaSzyna-EU07/fix/gamescope-windows
fix: under gamescope the starter fills the screen and every window can be closed
v1.6.346
2026-11-30 17:40:43 +01:00
Hirek cbdb7e0c84 fix(lang): sync_lang.py leaves the developer tab's rows to English, as the test does
The developer tab's rows (Ini.*) and the words of its lists (Choice.*) come in
English where a language lacks them (SimulatorKeyRows), and
LocalizationTests counts them optional. sync_lang.py added them to every
language as untranslated copies; now it adds them, as the other optional keys,
only with --all, and --check finds every language in line.
2026-11-30 17:34:29 +01:00
Hirek 493f5bcc23 Merge branch 'main' into feat/settings-basic-advanced
# Conflicts:
#	StarterNG/startercfg/lang/zh.xml
2026-11-30 17:33:57 +01:00
maj00r 92ed2c39f0 fix(settings): the graphics cards on Windows come from DXGI, as the drivers list them (#67)
The starter read the cards from the registry's list of video devices,
which each driver fills as it chooses: a player with an RTX 3060 beside
a Ryzen's Radeon saw only the Radeon. The cards now come from DXGI, the
adapters Windows draws with and whose drivers the simulator's OpenGL
runs on, without software adapters such as the Basic Render Driver.
The registry answers only when DXGI cannot be asked or lists no card.
DXGI is called through function pointers, which NativeAOT compiles
without reflection.

Co-authored-by: maj00r <maj00r@host>
v1.6.344
2026-11-30 17:15:21 +01:00
maj00r e1800a20b9 fix: under gamescope the starter fills the screen and every window can be closed
Gamescope, SteamOS's game mode, is no window manager: it gives no
window a title bar or a close button and does not answer a request to
maximize, so it stretched the starter's first size over the screen,
and the tapes window and the black box opened from them could not be
closed at all. Under gamescope the main window now takes the size of
the screen itself, and every window over another gets a bar with its
title and a close button, takes the screen's size too and closes on
Esc, even the tapes, which otherwise stay open beside the starter.
Steam's Big Picture on a desktop keeps its window manager's bars and
is only maximized, as before.
2026-11-30 05:01:07 +01:00
maj00r 5004a2889a Merge pull request #66 from MaSzyna-EU07/fix/zh-missing-keys
fix(lang): Chinese translation has every key of en.xml again, plus a script to keep languages in line
v1.6.343
2026-11-29 23:18:30 +01:00
maj00r 4f57881902 ci(sonar): tools/ is left out of the coverage
The quality gate of #66 failed on coverage only: tools/sync_lang.py is new code
that the C# tests don't run. tools/ holds helper scripts outside the app and its
tests, so it isn't counted for coverage; Sonar still analyses it like the rest.
2026-11-29 23:16:57 +01:00
maj00r 7a03cc0c6a fix(lang): untranslated keys marked without TODO, and sync_lang.py split up
Sonar counted each "<!-- TODO: translate -->" as an open task (S1135, 73 of them):
the added keys are marked "<!-- untranslated -->" now. sync() is split into smaller
functions (S3776); what the script does is the same, zh.xml regenerated from main
comes out identical.
2026-11-29 23:14:35 +01:00
maj00r 9fe767cf9f fix(lang): the Chinese translation has every key of en.xml again, and a script keeps languages in line
zh.xml (#45) was translated from an older en.xml: 73 keys the tests require were
missing and 97 keys en.xml no longer has were still there. The localization test
failed on main, so no package and no release were made after the merge.

tools/sync_lang.py adds the missing keys with the English text, marked
<!-- TODO: translate -->, and removes the unused ones; the rest of the file stays
as it is. --check only lists the differences. The missing Chinese keys are filled
in with it, and the README says how to use it.
2026-11-29 22:23:07 +01:00
Hirek 7c2d259fdc 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.
2026-11-29 20:16:24 +01:00
Hirek cf3a6a4ca8 feat(settings): the choice of the simulator and ray tracing in the standard mode
- The exe the start button runs is chosen in a section of its own in General,
  not only in the developer tab: several builds may sit side by side.
- Ray-traced reflections have a row of their own among the details of the
  picture: off, or Low, Medium, High, Very high, a level being how far the rays
  reach (gfx.raytracing.range 250, 500, 1000, 2000 m). No level of detail turns
  them on or off, as they cost far more than anything a level sets; turned off,
  the reach stays for the next time. A reach no level has is shown as it is and
  kept. Only Vulkan draws them, so with OpenGL chosen the row is dimmed.
- gfx.raytracing.range is in the developer tab too, and the list follows its row.
2026-11-29 19:50:21 +01:00
Hirek 76de23c706 feat(settings): a standard mode a player understands, on Vulkan, and a developer tab for the rest
- The renderer is Vulkan, written whatever the file had: the simulator's own is
  OpenGL 4.6, to which it falls back by itself where Vulkan does not run.
  OpenGL 4.6 is chosen only in the developer tab. The words of the renderers the
  simulator no longer has (legacy, simple, ...) are read as it reads them.
- The standard mode shows what a player understands: the language, the interface
  scale, the pauses and the mouse; the screen with its render scale, VSync, frame
  limit and field of view; four levels of detail - Low, Medium, High, Very high -
  and a level for each part of the picture to take further (textures, shadows,
  reflections, lighting and sky, draw distance and grass, smoke, rain and snow);
  the anti-aliasing with TAA, MSAA and DLSS/DLAA; the effects of taste; the sound;
  the physics a player changes, the recording, the devices and the keys. A search
  in the standard mode finds nothing more.
- The levels set the keys of the OpenGL 4.6 and Vulkan renderers too: lamp and
  contact shadows, SSR, the cab probe, AO, fog, clouds, grass, rain and snow.
  High is about the simulator's own values and where a new player starts; Very
  high is the most worth having, without ray tracing, MSAA x8 or the largest
  shadow maps.
- Everything else is in the Developer tab, which only the advanced mode shows,
  behind its warning: the renderer and what only Vulkan reads, the details of
  the picture, the switches of the optimisations, the logs and diagnostics, and
  the choice of the simulator.
- What makes the simulator faster stays on in the standard mode. Where the
  simulator's own default is off, the starter writes it on: gfx.gpucull,
  gfx.textures.streaming, sound.asyncload, physics.sleepheld, physics.roadlod.
  Leaving the advanced mode puts the developer tab back at the starter's values;
  the details of the picture stay as their levels hold them.
- A player in the standard mode of an older starter is moved once
  (starter.settings.revision 2): Vulkan, and the developer tab at the starter's
  values, eu07.ini copied aside to eu07.ini.before-revision2 first. A player in
  the advanced mode keeps what they chose.
- The keys the simulator reads now are written: gfx.antialiasing, below the older
  multisampling that older simulators read, and gfx.buffer.percent for the render
  scale. The ones it no longer goes by are taken out of the file on a save:
  usevbo, gfx.usegles, gfx.angleplatform, gfx.framebuffer.width/height,
  starter.bufferscale, shadows, gfx.shadows.cab.range, smoothtraction, skyenabled,
  hideconsole, slowmotion. A simulator without gfx.buffer.percent draws at the
  whole window. gfx.reflections.fidelity missing from the file is read as the
  simulator's own 2.
- The developer tab's rows and the words of its lists come in English where a
  language lacks them; the standard mode's texts are in every language.
2026-11-29 19:29:46 +01:00
Hirek def5f15a81 feat(settings): a key eu07.ini sets twice is left once, on the line the simulator reads
The simulator reads eu07.ini top down and goes by the last line of a key before
endconfig; the earlier ones only mislead whoever reads the file. They are taken
out on every save, and once at start where the player's own file has any; the
starter's log names the keys.

The keys the simulator takes more than one line of stay every one
(network.server, python.viewport, extraviewport, test.vehicle), and so do the
lines past endconfig, in comments, and the lines of numbers that carry on the
value of the line above.
2026-11-29 19:29:33 +01:00
Hirek fdcf33069d Merge pull request #45 from NishizakiHayato/NishizakiHayato-patch-1
Add Chinese translation
2026-11-29 17:48:21 +00:00
maj00r ece440e566 Merge pull request #64 from MaSzyna-EU07/fix/steam-overlay
fix: the Steam overlay no longer draws its frame counter over the starter
v1.6.333
2026-11-28 21:14:28 +01:00
maj00r 3dfcbca711 fix: the Steam overlay no longer draws its frame counter over the starter
Steam puts its overlay into the starter, the game it launches. In a
window's own redirection surface ANGLE draws through a swap chain of
that window, and the overlay hooks its Present and draws the frame
counter and notifications over the starter. Every window now draws
into a DirectComposition surface, which is drawn without a Present and
still keeps away from the WinUI composition visual that came up black
on 25H2. The redirection surface stays only as the fallback.
2026-11-28 19:38:44 +01:00
dependabot[bot] 9668b4d3b6 build(deps): bump actions/setup-dotnet from 6.0.0 to 6.1.0 (#39)
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/a98b56852c35b8e3190ac28c8c2271da59106c68...0f4a354dd5547a28c70b7853dbd95d5b67886e73)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-version: 6.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v1.6.331
2026-11-27 18:06:07 +01:00
maj00r 42591bcddd Merge pull request #62 from MaSzyna-EU07/fix/ini-keeps-unknown-values
fix(settings): keep eu07.ini values the starter does not know until changed by hand
v1.6.330
2026-11-27 04:06:04 +01:00
maj00r 50ca332438 fix: windows of the starter no longer come up black on Windows 11 25H2 (#63)
* fix: windows of the starter no longer come up black on Windows 11 25H2

Avalonia composes each window through a WinUI composition visual by
default, and on 25H2 that visual was often left empty: the main window
or a dialog opened later stayed black while the others drew. The
starter has no see-through windows or backdrops, so every window now
draws into its own redirection surface, still on the graphics card.
--software-render comes after and keeps its own options.

* test: the choice between window surfaces and the processor is covered

The choice moves out of Program, which no test runs, into
WindowSurfaces, where both branches are tested. Sonar's quality gate
failed on the coverage of the new code.

---------

Co-authored-by: maj00r <maj00r@host>
v1.6.328
2026-11-27 04:00:39 +01:00
maj00r 4f749ff576 fix(physics): a // comment in a .fiz is skipped, as the game does (#61)
Include parameters written one per line with a // note after them
("68 //MaxLoad") gave the note's words as parameters of their own, so
LoadAccepted=(p3) in db/zans_v1 read "68" and the load list showed a number.

Co-authored-by: maj00r <maj00r@host>
v1.6.327
2026-11-24 19:40:07 +01:00
maj00r b778122fb5 fix(settings): a value of eu07.ini the starter does not know stays until changed by hand
A renderer written in by hand ("gfxrenderer vulkan") went back to "default"
on the next save, the Vulkan renderer's own keys were taken out, and saying
no to reading the file again lost every change made on disk meanwhile.

Such a value is now shown as the file writes it - on its list where the
control is one, with the note under the setting otherwise - and written back
as it is until the player sets that control, even to what the starter shows
by default. The move to the standard mode puts them right, as before for the
advanced settings. Declining to read the file again no longer forgets the
change on disk: the next save goes onto it.

The default UART features in another order are no longer named unknown.
2026-11-24 18:26:56 +01:00
NishizakiHayato a3fc1dd1ac Merge branch 'MaSzyna-EU07:main' into NishizakiHayato-patch-1 2026-11-24 20:32:14 +08:00
Hirek 94112af005 Remove dependabot integration v1.6.326 2026-11-23 18:08:36 +01:00
Hirek dd25372bd0 Merge pull request #60 from MaSzyna-EU07/feat/settings-standard-mode
feat(settings): standard mode, consist minis, scenery and map fixes
v1.6.325
2026-11-23 17:07:07 +00:00
maj00r 5d8790301d Merge branch 'main' into feat/settings-standard-mode
# Conflicts:
#	StarterNG/Views/Settings.axaml.cs
2026-11-23 17:41:33 +01:00
Hirek e0d3988d4a Merge pull request #58 from MaSzyna-EU07/chore/net10
build: the starter, the black box and the tests move to .NET 10
v1.6.311
2026-11-23 16:37:41 +00:00
Hirek 57821887e4 Merge pull request #57 from MaSzyna-EU07/feat/sbt-cleanup
Feat/sbt cleanup
v1.6.308
2026-11-23 16:37:28 +00:00
maj00r 900161a6c4 fix(sceneries): an .sbt goes only when every scenery reading it can do without
With an .sbt there the simulator passes over the triangles and lines of every
file of the scenery, so a scenery file (.scm, .scn) that is gone keeps the
.sbt whatever its name, not only one named *_ter.scm. A small terrain file is
read too: some only list the files that hold the terrain. Node templates
(.inc) still do not count.

A word reading "terrain" outside a directive - the name of a node, of a
texture - no longer hides the includes after it.

An .sbt is judged by all the sceneries reading it: the one it is named after,
that one with a $ ahead of its name, and any other naming it in a terrain
directive. What such a scenery lacks comes with its name.

Each file is read once for a cleanup, however many sceneries include it, and
only around the words that matter: on an installation of 180 sceneries the
cleanup at the first start took minutes and takes seconds.
2026-11-22 15:30:51 +01:00
maj00r 5ec7a4b539 fix(settings): a borderless screen draws into a buffer of the monitor's size, not the resolution row's
With fullscreenwindowed the simulator takes the window's size from the monitor and leaves width and height unread (application.cpp), but its full renderer still draws into gfx.framebuffer.width and height (opengl33renderer.cpp). Those were written from the resolution row, greyed out in that mode: 1280x720 stretched over a larger monitor. Borderless, they are now -1, the simulator's own word for a buffer of the window's size, or with a smaller render scale that part of the chosen monitor's size, the primary one's when none is chosen. A size left in a borderless file goes on the next save.
2026-11-22 14:53:18 +01:00
maj00r d429d041ff fix(settings): a monitor's name outside ASCII is written as the UTF-8 the simulator compares
The simulator compares the word after fullscreenmonitor byte by byte with GLFW's name of the monitor, which is UTF-8 (application.cpp, find_monitor), and has no other way to name one. eu07.ini is written in code page 1250, so a name with a letter outside ASCII never matched and the game opened on the primary monitor. That one word now goes into the file as its UTF-8 bytes, the rest staying in the code page; a name an earlier save left in the code page is read as it is and put right by the next save.
2026-11-22 14:52:51 +01:00
maj00r f7a58e8431 fix(settings): the move to the standard mode puts the render scale back with the frame buffer
The row of the render scale, which only the advanced mode shows, has the keys of the frame buffer's size, while the scale itself is read from starter.bufferscale: put back without it, the two came out as they were, and a player moved to the standard mode kept a blurred picture with no setting for it on the screen. The percent now goes wherever the buffer's size does, on the move, on leaving the advanced mode and on a section put back.
2026-11-22 14:51:59 +01:00
maj00r 77b0c23cea fix(settings): the cursor's speed is read and written as the old starter did, its four levels
The old starter (src/uSettings.pas) showed a mousescale as one of four levels - low below 1.3, high above 1.9, very high above 2.7, standard between - and wrote 1.0, 1.5, 2.3 or 3.2 for them, with 0.5 after it, the signs being the inversions. The slider had three whole steps instead, so a 3.2 was the top only by rounding and anything above 3 was cut to 3 on the move to the standard mode.
2026-11-22 14:47:05 +01:00
maj00r de4eb99ea1 docs(readme): a native build needs the .NET 10 SDK 2026-11-22 13:00:10 +01:00
maj00r 34beec588d fix(settings): an import or a profile keeps the mode, the move keeps the card and GLES
Importing an eu07.ini or applying a profile took starter.settings.standard and
starter.settings.advanced from the other file. An older one says "standard no",
so the next start moved the player again and reset what was just imported, this
time with no copy kept; "advanced yes" opened the advanced mode past the
warning. Both are now this installation's, like its simulator and its card.

The one-time move to the standard mode no longer resets starter.gpu and
gfx.usegles: some machines run the simulator only on the integrated card or
with OpenGL ES, and the move is done without asking.
2026-11-22 12:40:46 +01:00
maj00r bc4adfe6fa perf(blackbox): the map's marks thin out where they crowd, the most telling kept
From afar the signals, stop and horn points, signal passings and vehicles of a
scenery covered each other. Each now takes a square of a few pixels, asked for
in the order of what it tells - a signal at stop, a missed stop, a horn not
sounded, the user's train - so a crowd shows its most telling mark on top, and
close up, where they stand apart, every one is drawn. The stop wedges show only
close enough to tell apart.
2026-11-22 12:40:45 +01:00
maj00r c70fd94783 fix(sonar): numbers read from the file are compared within a tolerance
Equals is as exact as == to SonarCloud (S1244). Two numbers count as the
same within a billionth of the larger one, and mousescale's second number
as 0.5 within a billionth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:14:49 +01:00
maj00r 5d966be11c fix(sonar): no exact float compares, xrandr from its own path, its regexes timed
The quality gate of SonarCloud stopped on three exact compares of doubles
(S1244), the regexes reading xrandr without a timeout (S6444) and xrandr run
from whatever PATH finds (S4036). The compares meant to tell one number from
another keep doing so with Equals; the scroll lane's margin is compared within
a tenth of a pixel. xrandr is run from where distributions put it, or not at all.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:11:28 +01:00
maj00r 93f914c868 feat(settings): a standard mode as the old starter's panel, the rest behind a warning
The settings keep only the keys master reads, Vulkan left out. The standard
mode is the old starter's panel; the advanced mode opens behind a warning
whose yes takes a click only after 20 seconds in front of the player.

- Sliders go by fixed steps (SliderRanges), held to the standard ranges there:
  fpslimit up to 240, sleeperdistance up to 1000 m.
- On the first start everyone is moved to the standard mode once: what is
  outside it goes back to its default, the sliders' values to their ranges,
  and a copy of eu07.ini is kept as eu07.ini.before-standard.
- "Restore defaults" puts every setting back, the language, the simulator,
  the UART port and the control keys kept.
- Monitors and renderers are found anew (Monitors, Renderers), Displays and
  SettingReach gone.
- mousescale writes its second number as the old starter did, 0.5 or -0.5
  for an inverted vertical axis; an axis that would not move gets the default.
- Depot, in the standard mode: no AI or drivable-only filters, empty consists
  not listed, the crew shown but not changed.
- Randomizing the textures of a whole scenery no longer rebuilds the view per
  consist, and finds its candidates by mini, so the window keeps answering.
- A long operator in the vehicle list is cut short instead of over the name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:02:29 +01:00
maj00r de943cf461 perf(blackbox): the map draws its rails by cells in view, at a detail its zoom needs
The tracks are cut into 500 m cells, so only those in view are drawn, and kept
at a few levels of detail, so that from afar a track is drawn with fewer points
than the pixels it covers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:02:20 +01:00
maj00r e63aa71bf8 fix(scenery): a vehicle without its .fiz is a fault, an include ending the file is read
A vehicle whose .fiz is not in its folder under dynamic is left out by the
simulator, so its trainset runs short: the scenery check now names the
missing file. An include that is the last thing in the file, with no end,
is inlined as the simulator reads it, and still reported as not closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:02:20 +01:00
maj00r ecf3067d85 feat(consists): the consist lists show the vehicles' minis, alike ones under one caption
The scenery's consists and the warehouse's are listed as a strip of minis at
their own 30 px, vehicles alike next to each other taken together under one
caption ("412W ×20"). A consist wider than the list scrolls sideways in its
row, with a lane for the bar under the captions. A warehouse consist's strip
follows an edit as soon as it is saved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:47:39 +01:00
maj00r 4b3ee43e4a build: the starter, the black box and the tests move to .NET 10
.NET 9 was a short-term release and its support has ended; .NET 10 is the
long-term one. Avalonia 12 already ships a build for net10.0, the other
packages run on it as they are. CI sets up the 10.0 SDK, and Rider's publish
configurations point at the new output folder.
2026-11-18 13:04:13 +01:00
maj00r 7e249a7a9a fix(settings): a first start has nothing to save before the simulator starts
With no eu07.ini of the player's own, starting the simulator asked to save
changes nobody made. The UART tune box and the Vulkan device box went by
TextChanged, which Avalonia raises later from the dispatcher: the text the
page put there while loading came back as an edit once the window was shown.

Both now go by their Text property, which changes at once and is passed over
while the page loads; typing in them still counts.
2026-11-17 22:14:45 +01:00
maj00r 97a2c2c75c fix(sceneries): an .sbt in the way of terrain files that are there can go
Any terrain directive kept the scenery's .sbt, as if it brought the terrain
from elsewhere. The directive names either .sbt files, which nothing makes
again, or terrain files (.txtf) with their binary copies (.btf). A scenery
with the terrain files has no use for its own .sbt: the simulator never
writes one for it, and an old one keeps the terrain files from being used.

- An .sbt named by the directive still keeps the scenery's own.
- A .txtf, or its .btf, on disk lets the scenery's .sbt go; with neither,
  the .sbt stays and the missing .txtf is given as the reason.
2026-11-17 22:14:45 +01:00