Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Train Simulator Classic (24010)

Open HonkingGoose opened this issue 8 years ago • 60 comments

Train Simulator Classic

The game had another yearly update, and changed the brand name to Classic.

Train Simulator 2021:

The game had another yearly update.


Train Simulator 2020:

The game had another yearly update.

I no longer have access to a Linux computer to test on, so I can't provide a Proton log for TS2020.

I suspect there will still be a need to unpack the .ap files though. It seems the update to TS2020 was mainly shader work.

New hypothesis for the issue outlined in this post: having a . somewhere in the path causes the game to misbehave. So there might not even be a need to unpack the .ap files anyways...


Train Simulator 2019:

Edit 12th june 2019:

I tested a fresh install of the game, using Proton 4.2-7 and TS 2019 version 66.1b. Results:

  • I still need to unpack .ap files to get all DLC to work.
  • The OpenAL32.dll workaround was not needed anymore to use the 64bit version. (There used to be sound issues without workaround).
  • There are still rendering issues relating to water/distant mountains.

Proton 4.2-7 log (64bit version of game): steam-24010.log Environment: https://gist.github.com/HonkingGoose/7936767029a19c23d330970a1a586c45 Missing water picture: Missing_water_Isle_of_Wight_DLC_at_Ryde_Pier_Head


The game has just been updated to the 2019 edition, which is split into 32 and 64 bit versions. So I'm updating the main post to reflect this. I've also edited the title of the issue, because the name of the game changed on the Steam store. The report for the 2018 version can be seen in my edit history.

What's new in 2019:

  1. 32 bit and 64 bit versions are now available.
  2. There seems to be some kind of audio bug in the 64 bit version (for now), search for "Setup_Audio.bat" on the Train Simulator 2019 FAQ for the workaround.

What's still the same:

  1. There is still a need to manually unpack .ap and legacy.bin files.
  2. The same kinds of rendering/graphical glitches are still there.

Environment:

OS: Ubuntu 18.04.1 Gist: gist Proton version: 3.7-8 Beta Game: Train Simulator (2019) Proton log for the 32 bit version steam-24010.log

Expected result:

  • Game loads DLC, base game content and Workshop content properly.
  • In-game rendering is the same as on Windows.

Actual result:

  • User needs to manually process certain files, so that DLC, base game content and Workshop content can be used in-game.
  • Some kinds of water are rendered, but other kinds of water are not rendered.
  • Mountains and other far of scenery is not rendered right (mountains cut in half/partially see-through).

Steps to reproduce:

  1. Install Train Simulator, with some DLC, from within the Steam client.
  2. Start game.
  3. On the main page of the game, click on “Drive”, this opens a menu in which you can see what content the game has loaded.
  4. Click on the different tabs.
  5. There is missing content (trains/routes/etc.).
  6. A work around is needed which is listed below, to get missing content to work.

What files are not processed automatically?

  • Files ending with the extension .ap, these files are used for base game and DLC content.
  • Files ending on legacy.bin, these files are used for Steam Workshop content.

How to find those files:

The .ap files can be found with the Linux terminal:

cd 
find .local/share/Steam/steamapps/common/RailWorks/ -name "*.ap"

The legacy.bin files can be found with the Linux terminal:

cd
cd .local/share/Steam/steamapps/common/RailWorks/ 
find ../../workshop/content/24010 -name "*_legacy.bin"

Workaround for missing content:

Unzip the .ap files using the Linux terminal:

cd
find .local/share/Steam/steamapps/common/RailWorks/ -name "*.ap" -execdir unzip '{}' ';'

Unzip the legacy.bin files (from the Train Simulator Steam WorkShop), using the terminal:

cd
cd .local/share/Steam/steamapps/common/RailWorks/ 
find ../../workshop/content/24010 -name "*_legacy.bin" -exec unzip '{}' ';'

HonkingGoose avatar Aug 27 '18 23:08 HonkingGoose

Hello @HonkingGoose, please add PROTON_LOG=1 %command% to the game's launch options and drag and drop the generated $HOME/steam-$APPID.log into the comment box.

kisak-valve avatar Aug 28 '18 00:08 kisak-valve

This is a log of starting the game, and clicking on quit after the game loads. steam-24010.log

HonkingGoose avatar Aug 28 '18 00:08 HonkingGoose

I have a weird issue with fonts with this game. Tried both English and Russian versions. Some fonts are just white squares. Installing corefonts makes no difference. System info: https://gist.github.com/vanyasem/f787469ec8c50cdd3728340ef4c73269 20180829070653_1

vanyasem avatar Aug 29 '18 04:08 vanyasem

@vanyasem That's strange, this doesn't happen on a default English language Ubuntu 18.04 installation, when installing Steam from the Ubuntu repository.

Configuration difference:

  • Your configuration: Arch, Kwin, you are not using Steam Runtime.
  • My configuration: Ubuntu 18.04, Gnome, and I am using Steam Runtime version: steam-runtime-beta-release_2018-06-14

My guess as to where the problem is:

Maybe the problem is that you're missing some dependency that is normally included in the steam runtime? It looks like some necessary font is not being included in your installation of Arch, because of those weird "text" boxes on your screenshot. So you would need to find those fonts and install them.

Sources for that guess:

From https://github.com/ValveSoftware/steam-runtime:

All the software that makes up the Steam Runtime is available in both source and binary form in the Steam Runtime repository http://repo.steampowered.com/steamrt

If we go and check the package list on http://repo.steamstatic.com/steamrt/lists/ and then go to http://repo.steamstatic.com/steamrt/lists/main_scout_main_amd64_Packages

There are many references to fonts and font handling libraries.

Guidance from Valve regarding runtime dependencies:

Also https://github.com/ValveSoftware/steam-for-linux/issues/4768 says:

Native runtimes Some distros have provisions to primarily use system libraries. Arch: The steam-native-runtime metapackage should pull in all the dependencies and adds the wrapper steam-native ...snip... Additional things to try while troubleshooting can be found at https://wiki.archlinux.org/index.php/Steam/Troubleshooting.

My advice:

  1. Install the steam-native-runtime metapackage on Arch, this also gives you the wrapper steam-native.
  2. Try the game again, and see if the weird fonts are fixed.

HonkingGoose avatar Aug 29 '18 08:08 HonkingGoose

@HonkingGoose I tried both steam-native and steam-runtime (steam-runtime-beta-release_2018-06-14), both are affected by the exact same issue. The system configuration was indeed copied from steam-native.

vanyasem avatar Aug 29 '18 12:08 vanyasem

@vanyasem Well, at least now you know that your steam-native and steam-runtime-beta-release_2018-06-14 both have the weird boxes for text.

Maybe try this to further debug the issue?

The basic Proton log for the game might have some reference to missing one or more of the following:

  • font
  • fonts
  • ttf
  • truetype

My output of basic Proton log with regards to fonts:

Relevant portion of my basic Proton log, remember my fonts do load properly, so my log shouldn't show missing fonts. There is some reference to fonts in my log though, so maybe yours would have more font errors listed?

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number

Steps to try:

  • Add PROTON_LOG=1 %command% to the game's launch options.
  • Launch the game.
  • Exit the game (top left corner button).
  • Check your /home/ directory, it should have a file named steam-24010.log
  • You can read this log, and search for font, fonts, ttf, truetype and other such words.

Advanced launch options for more detail?

I tried the following launch options too, but the output of /tmp/proton_username doesn't seem to reference any fonts at all, there are just a bunch of shell scrips for starting up the Wine/Proton debug process. So I don't think the scripts itself would have the needed information for your missing script, if I'm reading the scripts correctly.

Advanced launch options are:

  • PROTON_DUMP_DEBUG_COMMANDS=1 %command%
  • PROTON_DEBUG_DIR=1 %command%

HonkingGoose avatar Aug 29 '18 16:08 HonkingGoose

Here's my proton log: steam-24010.log

As you can see, it contains no errors related to fonts.

Offtopic: I feel a bit offended being an Arch user that you hand-walk me through the debugging process :P

vanyasem avatar Aug 29 '18 18:08 vanyasem

@dreamer:

Existing corefonts workaround does not help in Train Simulator, so I can't include it here. I'll keep tabs on this problem, however - let's continue the discussion in #791.

Thanks for the comment dreamer. I've deleted my comment on your pull-request #1423 to keep things clean on that issue.

On the font issue: I'm outta ideas here, so help will have to come from somebody else on this. :smile:

HonkingGoose avatar Oct 16 '18 18:10 HonkingGoose

@vanyasem Do you still have font issues with Proton 3.16?

From Wiki Changelog:

3.16-4: Proton now ships with corefonts support. This should fix many games with missing text, or that crash due to missing font support.

HonkingGoose avatar Jan 04 '19 16:01 HonkingGoose

@HonkingGoose the issue is not related to corefonts. Now try to answer that question yourself :)

vanyasem avatar Jan 04 '19 21:01 vanyasem

@vanyasem Oh well, I though maybe something had changed in the meantime. Guess I was wrong about that. :+1:

HonkingGoose avatar Jan 05 '19 18:01 HonkingGoose

It would be great if someone sorted out the need to unpack ap and bin files. My TS install is more than 100GB and I don't have enough space on my drive to almost double it. Perhaps someone from the modding community would know how to fix it?

skinnyraf avatar Mar 09 '19 21:03 skinnyraf

Current Proton (4.2-9) with current Train Simulator (v66.1b) using Ubuntu 18.04.2 LTS works almost perfect for me - no need to unpack anything, no need to that OpenAL workaround. Rendering issues (Water/Horizon) are still present.. (and that's the only problem for me)

I've played about 30 hours (1685 hours total) using multiple DLCs and Workshops files without any crashes - even reinstalled/revalidate whole TS a few times and each time works out of the box for me (no longer need to unpack anything)

neksio6 avatar Jul 18 '19 23:07 neksio6

YAY, latest Proton 4.11-2, Ubuntu 18.04.3 LTS, Nvidia 430.26-0ubuntu0.18.04.2 and EVERYTHING works perfect, no need to unpack anything, horizon is perfect, water is perfect - so far I don't see even the smallest problem : )

neksio6 avatar Aug 13 '19 21:08 neksio6

@vanyasem Does using the latest Proton (4.11-2 as of writing this) fix your problem with the menu text?

HonkingGoose avatar Aug 13 '19 21:08 HonkingGoose

@HonkingGoose I switched to Windows half a year ago. That did the trick

vanyasem avatar Aug 13 '19 22:08 vanyasem

Freshly installed Proton 4.11-2, Debian Bullseye, Nvidia 418.88, and I will have to unpack the .ap files, as scenarios don't start loading after clicking Start. Two DLCs load without unpacking .ap files: London to Brighton, and Great Western Mainline out of my 14 DLCs. 32 and 64 bit works the same way.

Laszlo-Fiat avatar Aug 25 '19 17:08 Laszlo-Fiat

Freshly installed Proton 4.11-2, Debian Bullseye, Nvidia 418.88, and I will have to unpack the .ap files, as scenarios don't start loading after clicking Start. Two DLCs load without unpacking .ap files: London to Brighton, and Great Western Mainline out of my 14 DLCs. 32 and 64 bit works the same way.

London to Brighton isn't packed into a single .ap file so it don't need any unpacking

Interesting that I am the only one who doesn't need to manually unpack anything..

I have installed: libzip4, unzip, zip (for zip files) gzip, bzip2, p7zip, p7zip-full, libarchive-zip-perl, libperlio-gzip-perl (all other packages with "zip")

could you please check if those packages are installed in your system?

neksio6 avatar Aug 26 '19 13:08 neksio6

I have installed: libzip4, unzip, zip (for zip files) gzip, bzip2, p7zip, p7zip-full, libarchive-zip-perl, libperlio-gzip-perl (all other packages with "zip")

could you please check if those packages are installed in your system?

I have the same issue as Laszlo-Fiat. I have all the above installed, no effect. I tried both fresh download and rsync from Windows, I tried clearing cache and verifying game files, no luck.

Also, some scenarios don't even get to the "missing assets" screen. All UI elements disappear with the exception of Store, Community and Settings buttons in the upper right corner, and the game just hangs there. Clicking Store and then Main Menu let's me get out of that screen.

Edit: removed compdata folder for TS, no difference.

skinnyraf avatar Aug 26 '19 16:08 skinnyraf

I really have no idea why it's working for me.. I didn't do anything special..

  • Ubuntu 18.04.3 LTS
  • Steam Built Aug 12 2019 23:59:32, version 1565656602
  • nvidia 430.26-0ubuntu0.18.04.2 (default driver from ubuntu)
  • Proton 4.11-2
  • TS2019 v.66.1b (x64)

and Train Simulator just works - I have almost 300 DLC and so far everything works like in Windows version - routes, locomotives, scenarios, workshop items..

(I know how painfully annoying unpacking is - some time ago I had do unpack everything too.. but Proton 4.2 fixed that for me, and Proton 4.11 fixed water/horizon bug)

hmm, maybe this is a coincidence but I recently moved my TS folder from a main partition (where is steam client) to a new disk (mounted as /steam) - anyone would like to check this possibility?

neksio6 avatar Aug 26 '19 16:08 neksio6