Trainz on Linux in 2022

I`m pretty sure that I already have about half a dozen or so invisible tracks installed, just from built-in and packaged content. Is that particular invisible track special somehow?
Yes it is. You can use other invisible track types, but it's a lot easier if you use the one intended for use with these track assets.

Edit: Best if you want to talk about 'O' gauge train tracks that you start off a thread about it in the TMR forum.
 
Last edited:
Thank you, but no hurry with the game window still crashing under Linux. Not the whole program, just the game window. The rest of the program continues running as fine as it ever does under Linux, but I can`t even close the game window, nevermind use it. (I`ve resorted to sending a HUP to exit the program, but it exits normally if I don`t try to open that window in the first place.) It is not related to running a DBR at the same time. (I checked.) Any ideas?
 
By any chance are you using Wine 9.0. I'm in agreement with KotangaGirl who was first to suggest that Trainz didn't like it and we have both since switched back to 8.xx. Working on the principle if it isn't broke don't fix it, I've yet to try the development version 9.2. Peter
 
I have no idea. So far as I know, I`m using whatever version Lutris is setting things up with, with the assumption that it is using its own custom Wine for this. Do you know how to verify what version is in use? Remember, I have 32 and 64 bit versions of whatever Ubuntu is offering (those I can check, and they are listed as "5.0-3ubuntu1", and are not listed as "upgradable") plus whatever customized Wine Lutris downloaded (and I don`t know where to check that). I suppose that I could try the upstream version....
 
Lutris uses the version of Wine that best suits the software it's been asked to run. I'd run an earlier install of TRS22 in Wine 8.xx and while Potteries Loop Line would run Ok on my old HP Xeon it wasn't entirely happy about it. Running the same sessions in TRS22 using Lutris everything was so much better and it was like my old Xeon computer had found some extra hidden resources somewhere. I haven't a clue what version of Wine it's running or even if it is some special Lutris blend. All I know is that it's pretty darn good.
 
Right click on the Lutris game icon and select configure. On the game Info tab adjacent to Runners select Install Runners and from that pane choose which version(s) of Wine you want installed. Back at the game configuration pane under the Wine Options tab you can now select which of the loaded versions of Wine you wish to use next time you run that particular game. Currently I'm using GE 8.26 x86_64.

There is a setup example at: https://www.moff.tech/2021/05/how-to-change-lutris-wine-version-for.html Peter
 
Right click on the Lutris game icon and select configure.
Done.
On the game Info tab
There.
adjacent to Runners select Install Runners and from that pane choose which version(s) of Wine you want installed.
This is where you lose me. There is a Runner pop-up menu from which I can select between Linux and Wine. It also lets me select the "Select a runner from the list" entry, which I`m sure is not going to work. I find a tab "Runner options" which allows me to select between "System (5.0 Ubuntu 5.0-3ubuntu1))" and "wine-ge-8--26-x86_64 (default)".

In the Lutris Preferences window, I find a "tab" "Runners", where I can "Add, remove or configure runners". The Wine entry on this list has a top portion that resembles the "Runner Options" tab in the Configure Game window, and a bottom portion that does not resemble anything else I`ve seen so far.

None of this offers to allow me to "choose which version(s) of Wine [I] want installed." I`ve found a place or two which allows me to choose which already-installed version to use, though, as mentioned above.

Is it possible that my recently-downloaded Lutris has had a revision since the download of the version you are using to base your directions to me on? (That seems awkward, but I trust you to understand my intent. I think I might be using a newer Lutris than you are looking at.)
Back at the game configuration pane under the Wine Options tab you can now select which of the loaded versions of Wine you wish to use next time you run that particular game. Currently I'm using GE 8.26 x86_64.
I seem to already be there, despite being unable to follow your directions to get there.
I seem to be using GE 8.25 x86_64. Since it's working well I'm reluctant to make any changes.
Ditto. As far as I can tell, the display update failure in certain known windows, a known issue, and the game window itself freezing hard, an unknown issue, are the only problems I`m having. I have already run the utility that automatically goes out and downloads proprietary drivers as needed, and it it tells me that I neither have nor need any proprietary drivers. Note that these are from the manufacturer of the video circuitry, not from (K)Ubuntu.

I was curious, so I tried an experiment. I copied the command-line command from the desktop icon that Lutris created for me and pasted it into a shell window. I got a fair amount of diagnostic information from just launching and terminating the game. Based on that, I have already installed a package that Lutris was trying to use but couldn`t find: fluidsynth. This will not help me much, because the motherboard audio seems to be deceased.

Beyond that, I could post the output here, if anyone wants to read it, or perhaps more interesting, do likewise for the output of an attempt to launch the game window itself.

Edit: Edited to remove accidental italics and force the accidental Italics command to display instead of italicize.
 
Last edited:
I have just checked my computers and have different versions of Lutris on each. On version 0.5.16 which I think will be the latest, and likely the one you would be using, open Lutris, come down the left hand side and hover your mouse over Wine under Runners, two icons will appear. Select the left icon and a list of available versions of Wine will now open. Select the version(s) you wish to load but note that the list is not always in numerical order so it worth scanning it from top to bottom. When configuring games you can choose the specific version of Wine from those you have loaded for each individual game.

I don't know why but one of the things you are advised when installing Wine manually is that if your system is 64 bit, enable 32 bit architecture, if you haven't already done so. The command is:

sudo dpkg --add-architecture i386

Peter
 
I have just checked my computers and have different versions of Lutris on each.
Thank you.
On version 0.5.16 which I think will be the latest, and likely the one you would be using,
I just checked, and it is.
.... Select the left icon and a list of available versions of Wine will now open.
"Manage Wine Versions".
Select the version(s) you wish to load
I wouldn`t know what to pick, but I`m already using the same Wine that you and @KotangaGirl are both using. I don`t think that that is the issue.
enable 32 bit architecture, if you haven't already done so.
It appears that my system is already offering 32-bit applications. Remember that I added 64-bit Wine with 32-bit Wine already installed? I prefer to keep my system 64-bit clean as long as possible, but that is often not an option, as some applications seem to be available only in 32-bit versions, or at least require 32-bit subsystems. My system certainly is not 64-bit clean currently.

Do you want me to post the console output of trying to run Trainz?
 
I can successfully run TSR22 on a 14 year old AMD Phenom II x4 960T with 16GB RAM and GTX 970, which is somewhat laggy but makes a great little test bed, so I'm sure you have more computer power than that. Did you installed Wine as a stand alone program and not only relied on Lutris to do it for you? Wine when installed directly includes a few file, I don't know which or how many, that Trainz uses and Lutris does not install be default.

I think the only time I have had Trainz fail to load or lock up once loaded on any version of Linux in the past year has been recently when trying to run directly from Wine 9.0. Installing Lutris alongside Wine 9.0 and running Trainz through that with an older version of Wine has resolved the issues.

Peter
 
As I have stated above, I have both the 32 and 64 bit 5.0-3ubuntu1 installed via my package manager, with no updates available, and the exact Wine you are using, installed by Lutris, which is the Wine that Lutris is using for Trainz. I have not gone upstream for Wine.

The graphics-intensive portion of Trainz is what is locking up on me, and everything else works as described by you and @KotangaGirl. I have no reason to suspect that my Wine is responsible for the crash, and the crash appears to be having no effect on the rest of the program. My best analysis suggests that I am having problems with my simulated video drivers, but I have no route available to me to upgrade them, except possibly for some Vulkan packages that nothing has asked for.

Would seeing the diagnostic console output of my Trainz program and the software that launches it help you any? I have asked this several times and received neither a Yes nor a No. I think that it would give you more information than I can provide in any other way.
 
I think the only time I have had Trainz fail to load or lock up once loaded on any version of Linux in the past year has been recently when trying to run directly from Wine 9.0. Installing Lutris alongside Wine 9.0 and running Trainz through that with an older version of Wine has resolved the issues.

Peter
Exactly the same experience here Peter. My HP Xeon is no Spring chicken anymore either.

hxmwRIu.jpg


Annie
 
As I have stated above, I have both the 32 and 64 bit 5.0-3ubuntu1 installed via my package manager, with no updates available, and the exact Wine you are using, installed by Lutris, which is the Wine that Lutris is using for Trainz. I have not gone upstream for Wine.

The graphics-intensive portion of Trainz is what is locking up on me, and everything else works as described by you and @KotangaGirl. I have no reason to suspect that my Wine is responsible for the crash, and the crash appears to be having no effect on the rest of the program. My best analysis suggests that I am having problems with my simulated video drivers, but I have no route available to me to upgrade them, except possibly for some Vulkan packages that nothing has asked for.

Would seeing the diagnostic console output of my Trainz program and the software that launches it help you any? I have asked this several times and received neither a Yes nor a No. I think that it would give you more information than I can provide in any other way.
Post the output anyway. It won't hurt for us to see it.

What video card is in your machine?

It could be the hardware isn't capable of doing what you think it should.
 
Post the output anyway. It won't hurt for us to see it.
Ok.
What video card is in your machine?
Motherboard, I believe. The tower is a lenovo brand, but I do not know what model it is.
It could be the hardware isn't capable of doing what you think it should.
Definitely possible. That`s part of what I`m asking for help with; I haven`t seen anything that tells me what the video is, but nothing looks like I`m having problems running the game itself (except for the usual Linus issues).

Code:
 LinuxPrompt> env LUTRIS_SKIP_INIT=1 lutris lutris:rungameid/1

(lutris:5554): dbind-WARNING **: 20:37:40.491: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
2024-02-23 20:37:42,088: The Battle.net source is unavailable because Google protobuf could not be loaded: No module named 'google'
2024-02-23 20:37:43,081: Starting Lutris 0.5.16
2024-02-23 20:37:43,084: Running Intel Open Source Technology Center Mesa driver 21.2.6 on Mesa DRI Intel(R) HD Graphics 2500 (IVB GT1) (0x152)
2024-02-23 20:37:43,084: GPU: 8086:0152 17AA:3653 (i915 drivers)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
2024-02-23 20:37:44,176: Vulkan reports an API version of 1.2.131. 1.3.0 is required for the latest DXVK.
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
2024-02-23 20:37:44,192: Vulkan reports that the 'Intel(R) HD Graphics 2500 (IVB GT1)' device has API version of 1.2.182. 1.3.0 is required for the latest DXVK.
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
2024-02-23 20:37:44,864: Error reading color-scheme: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files (2)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lutris/style_manager.py", line 80, in _call_cb
    values = obj.call_finish(result)
gi.repository.GLib.GError: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files (2)
Started initial process 5608 from /home/{RedactedUserName}/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/{RedactedUserName}/Games/trainz22pe/drive_c/Program Files/N3V Games/Trainz Railroad Simulator 2022Trainz22PE/TRS22.exe
Start monitoring process.
esync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
MESA-INTEL: error: ../src/intel/vulkan/anv_batch_chain.c:2053: execbuf2 failed: Input/output error (VK_ERROR_DEVICE_LOST)
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8526:(snd_pcm_recover) underrun occurred
240223.20:38:07.884| *** UDPMultiplexer 0xa757218 stats ***
240223.20:38:07.884| Endpoints:
240223.20:38:07.884| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:38:07.884| Endpoints:
240223.20:38:07.885| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:38:07.885| Listeners waiting:
240223.20:38:07.885| Incoming DCC endpoints:
240223.20:38:07.885| Established DCC endpoints:
240223.20:38:08.388| UDPMultiplexer::AddEndpoint> 0xa757218: 52.4.128.114:5251
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
240223.20:38:32.890| *** UDPMultiplexer 0xa757218 stats ***
240223.20:38:32.890| Endpoints:
240223.20:38:32.890|  * 52.4.128.114:5251
240223.20:38:32.890| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:38:32.890| Endpoints:
240223.20:38:32.891| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:38:32.891| Listeners waiting:
240223.20:38:32.891| Incoming DCC endpoints:
240223.20:38:32.891| Established DCC endpoints:
240223.20:38:57.893| *** UDPMultiplexer 0xa757218 stats ***
240223.20:38:57.893| Endpoints:
240223.20:38:57.893|  * 52.4.128.114:5251
240223.20:38:57.894| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:38:57.894| Endpoints:
240223.20:38:57.894| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:38:57.894| Listeners waiting:
240223.20:38:57.894| Incoming DCC endpoints:
240223.20:38:57.894| Established DCC endpoints:
240223.20:39:22.899| *** UDPMultiplexer 0xa757218 stats ***
240223.20:39:22.899| Endpoints:
240223.20:39:22.899|  * 52.4.128.114:5251
240223.20:39:22.900| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:39:22.900| Endpoints:
240223.20:39:22.900| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:39:22.900| Listeners waiting:
240223.20:39:22.900| Incoming DCC endpoints:
240223.20:39:22.900| Established DCC endpoints:
240223.20:39:47.904| *** UDPMultiplexer 0xa757218 stats ***
240223.20:39:47.904| Endpoints:
240223.20:39:47.904|  * 52.4.128.114:5251
240223.20:39:47.904| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:39:47.904| Endpoints:
240223.20:39:47.904| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:39:47.905| Listeners waiting:
240223.20:39:47.905| Incoming DCC endpoints:
240223.20:39:47.905| Established DCC endpoints:
240223.20:40:12.908| *** UDPMultiplexer 0xa757218 stats ***
240223.20:40:12.908| Endpoints:
240223.20:40:12.908|  * 52.4.128.114:5251
240223.20:40:12.909| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:40:12.909| Endpoints:
240223.20:40:12.909| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:40:12.909| Listeners waiting:
240223.20:40:12.909| Incoming DCC endpoints:
240223.20:40:12.909| Established DCC endpoints:
240223.20:40:37.917| *** UDPMultiplexer 0xa757218 stats ***
240223.20:40:37.917| Endpoints:
240223.20:40:37.917|  * 52.4.128.114:5251
240223.20:40:37.917| *** UDPMultiplexer 0xa7572f0 stats ***
240223.20:40:37.918| Endpoints:
240223.20:40:37.918| ** OnlineAccessClientEndpoint 0xa7570a0 Stats **
240223.20:40:37.918| Listeners waiting:
240223.20:40:37.918| Incoming DCC endpoints:
240223.20:40:37.918| Established DCC endpoints:
It continues repeating the same segment repeated above, apparently until I HUP it.
 
Last edited:
Definitely possible. That`s part of what I`m asking for help with; I haven`t seen anything that tells me what the video is, but nothing looks like I`m having problems running the game itself (except for the usual Linus issues).
You have Intel HD Graphics 2500 built into your motherboard and it's considered to be only marginal for running games at best. Released in 2012 it's now 10 generations old and far from being a current supported model.
Its codename is Ivy Bridge which is why you are getting all those Ivy Bridge warning messages.
 
Ahh, I figured it was something like that. I just lacked the referents required to be sure. Thank you. I think I need to go looking for a video card. I`ll need an audio card as well, if I want to be able to hear the game, as the tower`s motherboard audio appears to have died at around the time I acquired the machine. At least now I know what`s wrong.

Any recommendations on the minimum specs I should give to my supplier? I don`t need much quality, just enough to work, really, with a smidge or two to spare. Money is a bigger issue for me. Too bad you can`t email me one of your older-but-good-enough cards. Haha.
 
Much depends on the wattage of your power supply, but I would imagine that your tower computer should have something adequate in it. I ran Trainz TS2019 using an old Nvidia GTX 660 with 2Gb of video RAM and after that I ran a GTX 950 that a friend gave me. Both are old but good cards that were considered to be fine for gaming back in the day. It should be possible to pick up either of them for not much money.
 
You have Intel HD Graphics 2500 built into your motherboard and it's considered to be only marginal for running games at best. Released in 2012 it's now 10 generations old and far from being a current supported model.
Its codename is Ivy Bridge which is why you are getting all those Ivy Bridge warning messages.
Thank you for confirming my suspicions as well. I agree with what you said in your other post. A GTX 600-series or 700-series will work fine if the power supply can handle the board. I ran T: ANE on a GTX780Ti until that system died due to a failed motherboard with no problems at all.

Since he's not running Windows, he shouldn't have an issue with the NVidia drivers. NVidia stopped supporting these chipsets a few years ago, causing much angst among people who were still using the older video cards.
 
Back
Top