Skip to content

Instantly share code, notes, and snippets.

@ANBAL534
Created May 26, 2022 20:57
Show Gist options
  • Star 34 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ANBAL534/8057b5200ace9bdd98795b627e550ba0 to your computer and use it in GitHub Desktop.
Save ANBAL534/8057b5200ace9bdd98795b627e550ba0 to your computer and use it in GitHub Desktop.
Asseto Corsa on Linux Updated
If you want this guide to work on the deck, for easiness of following the guide, make your filesystem temporally writable
and install protontricks regularly.
This is really an update for the guide found here https://github.com/ValveSoftware/Proton/issues/148#issuecomment-585921635
We will be using Proton 5.0-10 the only proton version that works good for assetto.
Before starting, make sure you have no pfx folder for assetto corsa, you can search for it in:
/path/to/your/SteamLibrary/steamapps/compatdata/244210
If there is a pfx folder, delete it completely before starting the guide.
1. Set in Assetto Corsa Properties in Steam to force the use of a compatibility tool to Proton 5.0-10
2. Start the game and let it crash
-Execute in a terminal as a user the commands preceded with $-
3. $ protontricks -c "wine uninstaller" 244210
3.1. From the list Remove "Wine Mono Windows Support"
4. Download https://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
4.1. Use 'cd' command to navigate to the folder containing the file downloaded
5. $ protontricks --no-background-wineserver 244210 winxp
6. $ protontricks --no-background-wineserver 244210 shell
7. $ cd -
This last command is to navigate back to the folder where you were and so containing the file
8. $ wine dotNetFx40_Full_x86_x64.exe /q
-This step will take a good while-
9. $ exit
10. Download https://web.archive.org/web/20210816191501if_/https://download.microsoft.com/download/9/E/6/9E63300C-0941-4B45-A0EC-0008F96DD480/NDP471-KB4033342-x86-x64-AllOS-ENU.exe
10.1 Use 'cd' command to navigate to the folder containing the file downloaded if saved in a different folder than on step 4.
11. $ protontricks --no-background-wineserver 244210 win7
1w. $ protontricks --no-background-wineserver 244210 mscoree=native
13. $ protontricks --no-background-wineserver 244210 shell
14. $ cd -
15. $ wine NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q
-This step will take a good while-
16. $ exit
17. $ protontricks --no-background-wineserver 244210 -q vcrun2015
18. $ protontricks --no-background-wineserver 244210 -q d3dcompiler_47
19. $ protontricks --no-background-wineserver 244210 win10
Now you have a good prefix for the game. But we are not finished yet as we need now to link the loginvdf file for CM.
20. $ mkdir /path/to/your/SteamLibrary/steamapps/compatdata/244210/pfx/drive_c/Program\ Files\ \(x86\)/Steam/config
21. $ ln -s $HOME/.steam/root/config/loginusers.vdf /path/to/your/SteamLibrary/steamapps/compatdata/244210/pfx/drive_c/Program\ Files\ \(x86\)/Steam/config/loginusers.vdf
Now the Content manager part of the guide
22. Download Content Manager from https://assettocorsa.club/content-manager.html
23. Extract the .exe to assetto's game folder and rename the file to:
Content Manager Safe.exe
Now prepare the launch command for the game in Assetto Corsa's properties
24. Set assetto's steam launch parammeters to:
/path/to/your/SteamLibrary/steamapps/common/'Proton 5.0'/proton waitforexitandrun /path/to/your/SteamLibrary/steamapps/common/assettocorsa/'Content Manager Safe.exe'; echo %command%
If you have installed assetto's in a hidden folder (as is the case in the default install location but not for a sd install or
other locations) you will need to execute the 24.1 command to get the path to copy it when CM asks you for the installation folder
of assetto
24.1 $ echo 'Z:\home\'$USER'\.steam\root\steamapps\common\assettocorsa'
25. Launch the game, if you are on the Deck, do it in the desktop mode for now.
It may take a while to launch, just let it be.
26. Search for the installation folder or paste the result of the step 24.1
-You will notice that detects your steam account automagically-
27. Set your player name and press accept
28. Close the launcher
Let's install CSP
29. $ protontricks -c winecfg 244210
30. In 'Libraries' tab, add a new override with text:
dwrite
31. Press Add and set it to native, built-in (it is the default option)
32. Press OK to close the window
-At this step you can make a backup of the 'pfx' folder in case you try things and break it not to make the whole process again.-
Renember: Changing and launching the game with different Proton versions effectivelly breaks the pfx, so to go back you need to delete
the pfx folder and restore the backup.
There is a TLS/SSL problem with latest CM versions and so the launcher can't connect to web servers (online races work just fine), thus
we need to manually install Custom Shaders Patch and the other mods that you want.
33. Download from https://acstuff.ru/patch/ The very latest version .zip file
34. Extract the contents of the .zip inthe root folder of the game,
so dwrite.dll and extension folder are in the same folder as Custom Manager Safe.exe
35. Enjoy the game
@slizersteam
Copy link

slizersteam commented Oct 27, 2022

Hi any ideas why it wont launch into benchmark or race?
i can get into some kind of showroom in content manager lite, gets unexpected error while loading tracks,
cant find any useful hints in the proton log either.

@jurosic
Copy link

jurosic commented Oct 28, 2022

Hi any ideas why it wont launch into benchmark or race?
i can get into some kind of showroom in content manager lite, gets unexpected error while loading tracks,
cant find any useful hints in the proton log

Do you have CSP installed? If yes, try disabling the "car instruments", also CSP above version 0.1.78 doesnt work on linux currently.

@nmilosev
Copy link

nmilosev commented Nov 7, 2022

5.0-10 indeed works fine but I had issues running newer GE versions to increase performance on a low end GPU (R7 240).

If your launcher starts with a GE version but the game crashes after the loading screen, make sure that reflections are set to low (or higher) and not to off/none. After a lot of trial and error I found that GE versions only run with this option selected. I tried 6.13 GE and now 7.37 GE and both work great with FSR even.

Hope it helps someone and thanks for the guide.

@slayerman666
Copy link

Hello, Thanks for this detailled walkthrough. I have followed the different steps. I have some issues while launching this command (wine dotNetFx40_Full_x86_x64.exe /q)
20230116_005508
The process seems to be stucked...
Same for this command line (wine NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q)
20230116_204424
Any idea of what I have done wrongly ?
Thanks in advance 🙂

@ANBAL534
Copy link
Author

Hello, Thanks for this detailled walkthrough. I have followed the different steps. I have some issues while launching this command (wine dotNetFx40_Full_x86_x64.exe /q) 20230116_005508 The process seems to be stucked... Same for this command line (wine NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q) 20230116_204424 Any idea of what I have done wrongly ? Thanks in advance slightly_smiling_face

This is telling you that is not finding the dotnet...exe file that is needed on step 8. So you might have done wrongly any prior steps or mistyped something. I would delete the pfx folder and start over

@slayerman666
Copy link

Hello, Thanks for this detailled walkthrough. I have followed the different steps. I have some issues while launching this command (wine dotNetFx40_Full_x86_x64.exe /q) 20230116_005508 The process seems to be stucked... Same for this command line (wine NDP471-KB4033342-x86-x64-AllOS-ENU.exe /q) 20230116_204424 Any idea of what I have done wrongly ? Thanks in advance slightly_smiling_face

This is telling you that is not finding the dotnet...exe file that is needed on step 8. So you might have done wrongly any prior steps or mistyped something. I would delete the pfx folder and start over

Thanks for your prompt answer. I will restart the process, keep you informed 🙂

@slayerman666
Copy link

Thanks @ANBAL534 I have been able to launch properly Asseto !
Now I'm stuck on CSP step while running this command : protontricks -c winecfg 244210
winecfg: command not found
Have I missed one step/prerequisite ?
Thanks in advance for your help 🙂

@ANBAL534
Copy link
Author

Thanks @ANBAL534 I have been able to launch properly Asseto ! Now I'm stuck on CSP step while running this command : protontricks -c winecfg 244210 winecfg: command not found Have I missed one step/prerequisite ? Thanks in advance for your help slightly_smiling_face

Did you install protontricks by a flatpack or via aur?

if you installed it via flatpack you might be having permission problems, you might get away by using Flatseal program to fix them (I can't help much with that) or just remove it and by having your filesystem writable install it from the aur (https://aur.archlinux.org/packages/protontricks) it doesn't matter if manually or using yay

@berniyh
Copy link

berniyh commented Jan 18, 2023

You can also try running protontricks 244210 --gui and then select winecfg there.
In principle, I wouldn't expect it to make a difference, but who knows …

@slayerman666
Copy link

You can also try running protontricks 244210 --gui and then select winecfg there. In principle, I wouldn't expect it to make a difference, but who knows …

Thanks this exactly what I have done and it works 👍

@slayerman666
Copy link

Now I'm struggling with Steam deck controls 😅

@berniyh
Copy link

berniyh commented Jan 19, 2023

Well, it's a proper simulation, so playing with anything but wheels+pedals will always be tricky. ;)

@Maeve92
Copy link

Maeve92 commented Jan 21, 2023

I need help. I use Arch btw. Everytime I load up content manager and try changing cars or tracks, it crashes. Can it be because of my graphics card? I use a nVidia 1660 Super together with a Ryzen 5 3600 and have 16GB RAM. Or is it something else that makes the content manager crash? Does anyone else know what is making it crash? Because it is annoying that I finally manage to get the game and launcher to work but the launcher crashing annoys me. Help much appreciated. If you need any other info so you can help me out better, tell me and I will try to provide it. I use Arch btw.

@shawnshyguy
Copy link

shawnshyguy commented Feb 1, 2023

I followed this guide to steps 25-26, where it would hang for a while, before closing (no window ever opened, but steam would go from "close" to "play" on the game page after a while). when removing the launch options, to try and launch AC w/o CM, the game would never spawn a window, but never crash, either. When I add "PROTON_LOG=1" to launch options, the output basically seems as if the game never properly launches. I'll attach the log below.

I'm on Arch, kernel 6.1.8-arch1-1. I typically run Wayland but I tried on X11 and had the same results there.

Edit: I also have a 1660 Ti, Ryzen 7 3700X, and 16gb RAM. oddly similar specs to comment above, I do wonder if maybe this is a case of Nvidia cards doing their thing? Although they're at least able to get in-game, I can't get the game to open whatosever.

======================
Proton: 1603141982 proton-5.0-10b
SteamGameId: 244210
Command: ['/mnt/cockballs/SteamLibrary/steamapps/common/assettocorsa/AssettoCorsa.exe']
Options: {'forcelgadd'}
======================
ERROR: ld.so: object '/home/shawn/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

@rumifloss
Copy link

I had to deactivate some module(s) in CSP to get it working. Unfortunately, I can't remember which ones, but should be quick to just try each one.

Looks like it might have been 'Music' and 'Car Instruments'. after disabling those the game works!

Thanks for the tips

Hey, I'm getting the same error, but turning off Music and Car Instruments makes no change for me. Could it be another module?

@berniyh
Copy link

berniyh commented Feb 15, 2023

I had to deactivate some module(s) in CSP to get it working. Unfortunately, I can't remember which ones, but should be quick to just try each one.

Looks like it might have been 'Music' and 'Car Instruments'. after disabling those the game works!
Thanks for the tips

Hey, I'm getting the same error, but turning off Music and Car Instruments makes no change for me. Could it be another module?

Maybe also try different CSP releases. It's quite possible that something broke in a recent version.

@rumifloss
Copy link

rumifloss commented Feb 16, 2023

I had to deactivate some module(s) in CSP to get it working. Unfortunately, I can't remember which ones, but should be quick to just try each one.

Looks like it might have been 'Music' and 'Car Instruments'. after disabling those the game works!
Thanks for the tips

Hey, I'm getting the same error, but turning off Music and Car Instruments makes no change for me. Could it be another module?

Maybe also try different CSP releases. It's quite possible that something broke in a recent version.

Thanks! I tried 1.77 but that didn't work either. Everything (including Car Instruments) was fixed when I copied fonts from a copy of Windows (C:\windows\fonts) and pasted that in pfx/drive_c/windows/fonts. Copying and sharing them is a little sketchy but I'll try finding a way.

@berniyh
Copy link

berniyh commented Feb 16, 2023

Which fonts? Please write down such details, could be helpful for others. ;)

Also, some fonts you can install via protontricks or winetricks. e.g. the corefonts package contains some basic fonts that some programs need.

@kaii-lb
Copy link

kaii-lb commented Feb 19, 2023

Which fonts? Please write down such details, could be helpful for others. ;)

Also, some fonts you can install via protontricks or winetricks. e.g. the corefonts package contains some basic fonts that some programs need.

i think they mean ALL windows fonts (since they mentioned C:\windows\fonts), if ur on arch there's an aur package for those, installs it systemdwide (idk if u need to install it per bottle), on other distros you need to extract the fonts urself from an iso

@Tructruc
Copy link

Tructruc commented May 3, 2023

Hi, it worked great exept that the content manager isn't showing the images of the cars, the tracks... is it normal or is there a fix for it ?

@JJones780
Copy link

JJones780 commented May 8, 2023

This is a ProtonTricks gotcha I've experienced.

Debian/Devuan/Ubuntu etc ship with outdated winetricks and disable the update check re: link
ProtonTricks uses Winetricks; Older versions of winetricks will install older versions of libraries etc. ( eg d3dcompiler_47 ) !

Flatpacks shouldn't have this problem(?). I understand they include their own winetricks.

running sudo winetricks --self-update will update winetricks.

Note that reinstalling libraries after updating winetricks may fail silently. Check the d3dcompiler_47 etc. file date/size before and after. It may be easier to copy from another game install.

@hogcycle
Copy link

does running dotnet with wine usually take so long? its been like 15 minutes and its just spitting what seems like repetitive gibberish to the terminal

@ANBAL534
Copy link
Author

ANBAL534 commented Aug 6, 2023

does running dotnet with wine usually take so long? its been like 15 minutes and its just spitting what seems like repetitive gibberish to the terminal

Literal hours sometimes

@Ouroboros47
Copy link

Ouroboros47 commented Aug 8, 2023

For some reason I am getting stuck on the first wineuninstaller command. It won't let me remove the Mono, when i click on the Mono and then click remove it stays there and unselects itself. Terminal is showing these errors:

esync: up and running.
0068:err:wineusb:DriverEntry Failed to initialize Unix library, status 0xc0000135.
0068:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\wineusb": c0000135
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 126
0050:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\nsiproxy": c0000135
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"nsiproxy" failed to start: 126
0050:err:ntoskrnl:ZwLoadDriver failed to create driver L"\Registry\Machine\System\CurrentControlSet\Services\NDIS": 00000001
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"NDIS" failed to start: 731

I am running Fedora 38

@imstupidwithlinux
Copy link

step 25. wont launch on steam deck it crashes after a second i press on start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment