Dwarf Fortress

Dwarf Fortress

Timmy 29 AGO 2023 a las 0:28
"Missing executable" error on Linux - can't launch DF
I did a fresh reinstall of my system recently and reinstalled a few games, and for some reason DF is the only one that won't launch. It fails with the following error:

> An error occured while updating Dwarf Fortress (missing executable): /home/<user>/.local/share/Steam/steamapps/common/Dwarf Fortress/dwarfort

Which leads me to think it is missing a binary that didn't get installed (why ?) on my fresh install.

Other games such as Valheim, Beholder or RimWorld launch without any issue on this new install.

The OS is Archlinux, previously I was running it on ubuntu, though upon checking an existing ubuntu install, there is no "dwarfort" binary anywhere either though the game runs just fine.

Help appreciated :)
< >
Mostrando 1-6 de 6 comentarios
Slapshot82 29 AGO 2023 a las 14:47 
I've tried running it on Ubuntu, MX, AntiX & Lubuntu, with mixed results. The Ubuntu install wasn't fresh, and on it I would freeze up loading the game. My best guess was that it was likely due to some of the mods I had installed. It's a heavy OS, and I wanted to try something lighter to focus the install solely on DF.

All others were fresh installs, with MX running fine at first, but both Steam and DF would randomly freeze/crash, without any error messages. AntiX never launched DF, and/or gave me any errors as to why. The OS didn't seem to work well on my laptop so I nuked it.

Lubuntu has worked perfectly though so far with the LXQt desktop environment. I've got about ~10 hours in the game so far with it, and it feels even more responsive as when playing it on my high-end gaming rig on Win10! I'm sure that will change as this volcano embark will slow things down for sure at some point.
Timmy 29 AGO 2023 a las 23:55 
Apparently it happens also on Manjaro (https://steamcommunity.com/app/975370/discussions/0/3815166007136249821/)

@Sibylla I am not on the beta branch, no
@Slapshot82 strange, I went back to Ubuntu on my desktop to try it out (my laptop is on arch) and DF cannot be launched anymore either on Ubuntu, though it does not give me any error messages

The most logs I managed to get from Ubuntu is this:

```
/bin/sh\0-c\0/home/USER/.steam/debian-installation/ubuntu12_32/reaper SteamLaunch AppId=975370 -- /home/USER/.steam/debian-installation/ubuntu12_32/steam-launch-wrapper -- '/home/USER/.steam/debian-installation/steamapps/common/Dwarf Fortress/Dwarf Fortress.exe'\0
chdir "/home/USER/.steam/debian-installation/steamapps/common/Dwarf Fortress"
ERROR: ld.so: object '/home/USER/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/USER/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/USER/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/USER/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/home/USER/.steam/debian-installation/steamapps/common/Dwarf Fortress/Dwarf Fortress.exe: 1: MZ����@0��: not found
/home/USER/.steam/debian-installation/steamapps/common/Dwarf Fortress/Dwarf Fortress.exe: 2: Syntax error: word unexpected (expecting ")")
```

But something is definitely fishy because I logged 90h of gameplay on the same Ubuntu install that now refuses to launch without me touching anything
kusanagi 1 SEP 2023 a las 12:31 
Publicado originalmente por Timmy:
It would appear I'm not the only one facing issues running DF on Linux

https://steamcommunity.com/app/975370/discussions/0/3815166007138108238/
https://steamcommunity.com/app/975370/discussions/0/3815166007136297738/
https://steamcommunity.com/app/975370/discussions/0/3806154368639588273/

And it also appears it happened after a recent update

Same for me, I'm on Arch. The problem is that the Steam is trying to launch a binary called "dwarfort", but the real executable file is called "Dwarf Fortress.exe".

There are 2 workarounds:

1 - Running via Lutris

  1. Install Lutris
  2. Open Lutris and add a locally installed game
  3. Point to the executable to "Dwarf Fortress.exe"
  4. Play the game via Lutris

2 - Renaming the file

  1. Open the game folder, in my case: /home/user/.steam/steam/steamapps/common/Dwarf Fortress/
  2. Rename the file "Dwarf Fortress.exe" to "dwarfort" -- without any extension
  3. Play the game via Steam

* p.s: any new update will probably undo this change

I believe they just need to fix which executable file the Steam version calls.
Última edición por kusanagi; 1 SEP 2023 a las 12:52
binaryquasar 1 SEP 2023 a las 17:41 
so its a documentation error. the main branch no longer runs on linux. the BETA branch is now linux compatible, follow these steps exactly.

"Both DF and DFHack now run natively on Linux. If you're on Linux, we encourage you to try it! The interface is noticeably snappier, FPS is up, and load times are reduced. If you're subscribed to DF and DFHack on Steam, here's how to switch over:
In the Steam client, open the properties for Dwarf Fortress
In the "Betas" section, switch to the "beta" branch
Let that finish updating
Select the "Compatibility" section and deselect "Force the use of a specific Steam Play compatibility tool"
DF should update again with the Linux native version

You can tell if you did it right if you no longer have Dwarf Fortress.exe in your DF directory and instead have dwarfort, which is the Linux binary. The plan is to "officially" release Linux support with DF 50.10, so once DF 50.10 comes out, you should be able to switch back to the default Steam branch and keep the native Linux support.

Then, do the same thing for DFHack. switching to the "beta" branch (if you're not there already) and turning off the compatibility layer.

Sometimes, Steam says you've got the Linux version, but when you look you see you still have Dwarf Fortress.exe instead of dwarfort. Try re-enabling the Proton compatibility layer and then turning off the compatibility layer again."

Copied from the DFHACK documentation.
binaryquasar 1 SEP 2023 a las 17:43 
Note that I had to turn on force compatibility then turn it back off to get the update.
< >
Mostrando 1-6 de 6 comentarios
Por página: 1530 50

Publicado el: 29 AGO 2023 a las 0:28
Mensajes: 6