• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

TheRealBecks

Recruit
35 Badges
Mar 22, 2014
2
0
  • Europa Universalis IV
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Semper Fi
  • Cities: Skylines - Parklife
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Steel Division: Normandy 44
  • Cities: Skylines - Mass Transit
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Colonel
  • Cities: Skylines Industries
  • Hearts of Iron IV: Expansion Pass
  • Prison Architect
  • Battle for Bosporus
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • Stellaris - Path to Destruction bundle
  • Stellaris
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines - Parklife Pre-Order
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Hearts of Iron IV: La Resistance
  • Europa Universalis IV: Art of War
I played Prison Architect since one or two years on Linux and it worked flawlessly. Now, one year later I can't start the game anymore. The Paradox Launcher starts, but the game crashes. I reinstalled the game, deleted all game folders, unsubscribed all mods, but nothing works. I added the debug.txt
 

Attachments

  • debug.txt
    2,5 KB · Views: 2
Hi AndrewT,

thanks for the links, I found this solution afterwards and this helped. But...

There are two different bugs that prevent the game to launch on most Linux systems, because they are using 'pulse' and not 'alsa'. That's what I found out:
1) Starting the game out of Steam: The variable 'SDL_AUDIODRIVER' is set to 'pulse', but the game can only start when it's set to 'alsa'. The developers need to set that value to 'alsa' to start the game - that fix is so easy that I can't understand why it's still not fixed? Users having this issue quite some time!

2) Starting the game via the built-in script: There is another workaround built-in to Prison Architect since the game has been released for Linux years ago, but it's broken:
In the game directory under 'steamapps/common/Prison Architect/' is a script named 'PrisonArchitect'. When I run that script the game still doesn't start because of the wrongly set SDL_AUDIODRIVER. Here's what's wrong in the script:
Code:
if [[ -z "$SDL_AUDIODRIVER" ]] ; then
    # Use alsa by default, as PulseAudio is crackly without some configuring
    # the daemon to use real-time scheduling.
    export SDL_AUDIODRIVER=alsa
fi
That code checks if the variable SDL_AUDIODRIVER is already set. If not, set it to 'alsa'. But that's not working on my system, because the variable is already set to 'pulse'. Because of the fact that the game can only run via alsa this whole code block can be replaced with:
Code:
export SDL_AUDIODRIVER=alsa
Then the error message is gone! :) But there's a new error afterwards:
[S_API FAIL] SteamAPI_Init() failed; no appID found.
Either launch the game from Steam, or put the file steam_appid.txt containing the correct appID in your game folder.
[SteamWrapper] SteamAPI is not initialised.
[SteamWrapper] Failed to launch game through Steam.
That fix is also easy:
Create a file names 'steam_appid.txt' in the folder 'steamapps/common/Prison Architect/' and put the app ID '233450' into that file and save it. Afterwards the game can be launched via the Script 'PrisonArchitect'. It's that easy!

Both fixes are easy as hell :)

@AndrewT Can you send my posting to the developers so they can fix both ways of starting the game? That would really help the Linux community that wants to play this great game!

Thanks in advance
Becks
 
PA-44
Thank you very much for the detailed work and update!

I have now logged a new bug using all that information. I can't say when that will come out in a patch, but at least it's in the system now.

All the best!