Windows Game don't work

So when i tried to launch Art Of Rally inside Heroic Games Launcher, it does nothing and the play button come back after few seconds, so i tried to launch it from terminal to get some logs. I don’t know what’s causing this.

(09:31:31) INFO:    [Legendary]:        Legendary location: /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary
(09:31:31) INFO:    [Gog]:              GOGDL location: /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl
(09:31:31) INFO:    [Connection]:       Connectivity: check-online
(09:31:31) INFO:    [Connection]:       Pinging external endpoints
(09:31:31) INFO:    [Backend]:          DRM modules disabled for nixpkgs
(09:31:31) INFO:    [Gog]:              Checking for existing gog manifests
APPIMAGE env is not defined, current application is not an AppImage
(09:31:31) WARNING: [Backend]:          Failed to register protocol with OS.
(09:31:31) INFO:    [Connection]:       Connectivity: online
(09:31:31) ERROR:   [Gog]:              Unable to syncQueued playtime, userData not present
(09:31:31) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/aurel/.config/heroic/gogdlConfig /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl --auth-config-path /home/aurel/.config/heroic/gog_store/auth.json auth
(09:31:31) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary --version
(09:31:31) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/aurel/.config/heroic/gogdlConfig /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl --auth-config-path /home/aurel/.config/heroic/gog_store/auth.json --version
(09:31:31) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/aurel/.config/heroic/nile_config /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/nile --version
(09:31:31) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(09:31:32) INFO:    [Backend]:
System Information:
CPU: 4x Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 8.26 GB (used: 2.49 GB)
GPUs:
  GPU 0:
    Name: Intel Corporation HD Graphics 620
    IDs: D=5916 V=8086 SD=0005 SV=1179
    Driver: i915
OS: NixOS 24.05 (Uakari) (linux)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.14.0 Flame Emperor Sabo
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.0.1
  Nile: 1.0.2 Jonathan Joestar

(09:31:32) INFO:    [Frontend]:         Refreshing undefined Library
(09:31:32) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(09:31:32) INFO:    [Legendary]:        Refreshing library...
(09:31:32) INFO:    [Legendary]:        Refreshing Epic Games...
(09:31:32) INFO:    [Backend]:          Frontend Ready
(09:31:32) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary list --third-party
(09:31:33) INFO:    [Backend]:          Checking for new Heroic Updates
(09:31:33) INFO:    [Backend]:          Checking for current version changelog
(09:31:33) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(09:31:34) INFO:    [Winetricks]:       Downloading Winetricks
(09:31:35) INFO:    [Legendary]:        Game list updated, got 158 games & DLCs
(09:31:35) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(09:31:35) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary list --third-party
(09:31:36) INFO:    [WineDownloader]:   Updating wine versions info
(09:31:36) INFO:    [WineDownloader]:   Fetching upstream information...
(09:31:36) INFO:    [WineDownloader]:   wine versions updated
(09:31:37) INFO:    [Backend]:          Starting the Download Queue
(09:31:37) INFO:    [Legendary]:        Found 0 games to update
(09:31:40) INFO:    [Backend]:          Launching art of rally (01805192c8074820b1257fcfd97f2648)
(09:31:40) INFO:    [Backend]:          Preventing display from sleep
(09:31:40) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(09:31:40) INFO:    [Backend]:          Preventing machine to sleep
(09:31:40) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(09:31:40) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(09:31:40) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(09:31:40) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(09:31:41) INFO:    [DXVKInstaller]:    installing dxvk on... /home/aurel/Games/Heroic/Prefixes/default/art of rally
(09:31:41) INFO:    [DXVKInstaller]:    dxvk already installed!
(09:31:41) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/aurel/Games/Heroic/Prefixes/default/art of rally
(09:31:41) INFO:    [DXVKInstaller]:    vkd3d already installed!
(09:31:41) INFO:    [Legendary]:        Launching art of rally: LD_LIBRARY_PATH=/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib64:/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib:/nix/store/fivm0vvpkfm933fd5gqj3dzni0pp50cg-pipewire-1.0.4-jack/lib HEROIC_APP_NAME=01805192c8074820b1257fcfd97f2648 HEROIC_APP_RUNNER=legendary HEROIC_APP_SOURCE=epic STEAM_COMPAT_INSTALL_PATH=/home/aurel/Games/Heroic/artofrally LD_PRELOAD= DOTNET_BUNDLE_EXTRACT_BASE_DIR= DOTNET_ROOT= WINEPREFIX="/home/aurel/Games/Heroic/Prefixes/default/art of rally" WINEDLLOVERRIDES=winemenubuilder.exe=d DXVK_HUD=fps WINE_FULLSCREEN_FSR=0 WINEESYNC=1 WINEFSYNC=1 PROTON_EAC_RUNTIME=/home/aurel/.config/heroic/tools/runtimes/eac_runtime PROTON_BATTLEYE_RUNTIME=/home/aurel/.config/heroic/tools/runtimes/battleye_runtime ORIG_LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/nix/store/fivm0vvpkfm933fd5gqj3dzni0pp50cg-pipewire-1.0.4-jack/lib GST_PLUGIN_SYSTEM_PATH_1_0=/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib64/gstreamer-1.0:/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib/gstreamer-1.0 WINEDLLPATH=/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib64/wine:/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/lib/wine LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary launch 01805192c8074820b1257fcfd97f2648 --wine /home/aurel/.config/heroic/tools/wine/Wine-GE-latest/bin/wine --wrapper "/etc/profiles/per-user/aurel/bin/gamescope -r 60 -o 5 --" --language fr --override-exe /home/aurel/Games/Heroic/artofrally/artofrally.exe
(09:31:41) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(09:31:41) INFO:    [Winetricks]:       Running WINEPREFIX='/home/aurel/Games/Heroic/Prefixes/default/art of rally' PATH='/home/aurel/.config/heroic/tools/wine/Wine-GE-latest/bin':$PATH /home/aurel/.config/heroic/tools/winetricks list-installed
(09:31:41) INFO:    [Backend]:          Stopping Power Saver Blocker
(09:31:44) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(09:31:44) INFO:    [Frontend]:         Refreshing legendary Library
(09:31:44) INFO:    [Legendary]:        Refreshing library...
(09:31:44) INFO:    [Legendary]:        Refreshing Epic Games...
(09:31:44) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary list --third-party
(09:31:46) INFO:    [Legendary]:        Game list updated, got 158 games & DLCs

This i all the logs.
So i also tried to change wine and all but it didnt do anything. I also tried lutris and installed Art Of Rally, and when launching it does this.

2024-04-23 09:40:05,673: Starting Lutris 0.5.16
2024-04-23 09:40:05,676: Running Intel Mesa driver 24.0.3 on Mesa Intel(R) HD Graphics 620 (KBL GT2) (0x5916)
2024-04-23 09:40:05,677: GPU: 8086:5916 1179:0005 (i915 drivers)
error: While opening repository /var/lib/flatpak/repo: opening repo: opendir(/var/lib/flatpak/repo): No such file or directory
2024-04-23 09:40:05,971: ['/run/current-system/sw/bin/flatpak', 'list', '--columns=name,application,version,branch,arch,origin,installation'] command failed: Command '['/run/current-system/sw/bin/flatpak', 'list', '--columns=name,application,version,branch,arch,origin,installation']' returned non-zero exit status 1.
lutris-wrapper: art of rally
Started initial process 21832 from /home/aurel/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /home/aurel/Games/epic-games-store/drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe -opengl -SkipBuildPatchPrereq -com.epicgames.launcher://apps/01805192c8074820b1257fcfd97f2648?action=launch
Start monitoring process.
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
ntlm_auth: /home/aurel/.local/share/lutris/runtime/Ubuntu-18.04-x86_64/libjansson.so.4: no version information available (required by /nix/store/kh482pi6rvpq0nxcxa7fs5vr6s6ibi95-samba-4.19.5/lib/samba/libcommon-auth-samba4.so)
Monitored process exited.
Initial process has exited (return code: 0)
Exit with return code 0

Seems to be a problem with libraries but dont know how to fix it.
I also tried other game in Heroic like 20 Minutes Till Dawn, also from the Epic Games Store and i have the same problem.
My config is a slightly modified version of Aylur dotfiles GitHub - Aylur/dotfiles: My personal config files

So i tested all the wine and proton version, Proton-GE-Proton8-31 seems to work.

Doesnt work anymore. For some reason it doesnt work, i also tested windows games installed locally via an installer or a .exe, it doesnt work.

lofs of me running Roller Coaster Tycoon 3 : it doesnt launch.

(13:27:12) INFO:    [Legendary]:        Legendary location: /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary
(13:27:13) INFO:    [Gog]:              GOGDL location: /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl
(13:27:13) INFO:    [Connection]:       Connectivity: check-online
(13:27:13) INFO:    [Connection]:       Pinging external endpoints
(13:27:13) INFO:    [Backend]:          DRM modules disabled for nixpkgs
(13:27:13) INFO:    [Gog]:              Checking for existing gog manifests
APPIMAGE env is not defined, current application is not an AppImage
(13:27:13) WARNING: [Backend]:          Failed to register protocol with OS.
(13:27:13) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary --version
(13:27:13) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/aurel/.config/heroic/gogdlConfig /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl --auth-config-path /home/aurel/.config/heroic/gog_store/auth.json --version
(13:27:13) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/aurel/.config/heroic/nile_config /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/nile --version
(13:27:13) INFO:    [Connection]:       Connectivity: online
(13:27:13) ERROR:   [Gog]:              Unable to syncQueued playtime, userData not present
(13:27:13) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/aurel/.config/heroic/gogdlConfig /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/gogdl --auth-config-path /home/aurel/.config/heroic/gog_store/auth.json auth
(13:27:13) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(13:27:14) INFO:    [Frontend]:         Refreshing undefined Library
(13:27:14) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(13:27:14) INFO:    [Legendary]:        Refreshing library...
(13:27:14) INFO:    [Legendary]:        Refreshing Epic Games...
(13:27:14) INFO:    [Backend]:          Frontend Ready
(13:27:14) INFO:    [Backend]:
System Information:
CPU: 4x Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 8.26 GB (used: 3.98 GB)
GPUs:
  GPU 0:
    Name: Intel Corporation HD Graphics 620
    IDs: D=5916 V=8086 SD=0005 SV=1179
    Driver: i915
OS: NixOS 24.05 (Uakari) (linux)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.14.0 Flame Emperor Sabo
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.0.1
  Nile: 1.0.2 Jonathan Joestar

(13:27:14) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary list --third-party
(13:27:14) INFO:    [Backend]:          Checking for new Heroic Updates
(13:27:14) INFO:    [Backend]:          Checking for current version changelog
(13:27:15) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(13:27:15) INFO:    [Winetricks]:       Downloading Winetricks
(13:27:17) INFO:    [Legendary]:        Game list updated, got 158 games & DLCs
(13:27:17) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(13:27:17) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH=/home/aurel/.config/heroic/legendaryConfig/legendary /nix/store/wk9rh72p0i2ciia0p8yb7ssrqvybbvdy-heroic-unwrapped-2.14.0/share/heroic/build/bin/linux/legendary list --third-party
(13:27:18) INFO:    [WineDownloader]:   Updating wine versions info
(13:27:18) INFO:    [WineDownloader]:   Fetching upstream information...
(13:27:19) INFO:    [WineDownloader]:   wine versions updated
(13:27:19) INFO:    [Backend]:          Starting the Download Queue
(13:27:20) INFO:    [Legendary]:        Found 0 games to update
(13:27:25) INFO:    [Backend]:          Launching Roller Coaster 3 Tycoon (cSFLsUBfTBeTJ2gKG33ZXq)
(13:27:25) INFO:    [Backend]:          Preventing display from sleep
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Preventing machine to sleep
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(13:27:26) INFO:    [DXVKInstaller]:    installing dxvk on... /home/aurel/Games/Heroic/Prefixes/default/Roller Coaster 3 Tycoon
(13:27:26) INFO:    [DXVKInstaller]:    dxvk already installed!
(13:27:26) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/aurel/Games/Heroic/Prefixes/default/Roller Coaster 3 Tycoon
(13:27:26) INFO:    [DXVKInstaller]:    vkd3d already installed!
(13:27:26) INFO:    [Backend]:          launching non-native sideloaded: /home/aurel/Téléchargements/Roller Coaster Tycoon 3 Platinum (Soaked + Wild Expansions)(Direct Play) - RELOADED by CarlesNeo/RollerCoaster Tycoon 3 Platinum/RCT3plus.exe}
(13:27:26) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:26) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:26) DEBUG:   [Backend]:          Running Wine command: /home/aurel/Téléchargements/Roller Coaster Tycoon 3 Platinum (Soaked + Wild Expansions)(Direct Play) - RELOADED by CarlesNeo/RollerCoaster Tycoon 3 Platinum/RCT3plus.exe
(13:27:26) DEBUG:   [Backend]:          Logging to file "/home/aurel/.config/heroic/GamesConfig/cSFLsUBfTBeTJ2gKG33ZXq-lastPlay.log"
(13:27:26) INFO:    [Winetricks]:       Running WINEPREFIX='/home/aurel/Games/Heroic/Prefixes/default/Roller Coaster 3 Tycoon' PATH='/home/aurel/.config/heroic/tools/wine/Wine-GE-Proton8-26/bin':$PATH /home/aurel/.config/heroic/tools/winetricks list-installed
(13:27:26) INFO:    [Backend]:          Stopping Power Saver Blocker
(13:27:28) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(13:27:28) INFO:    [Frontend]:         Refreshing sideload Library
(13:27:28) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8-26
(13:27:25) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-Proton8

Is lutris running with flatpak? Also, have you tried using your system wine?

Its not runnig inside flatpak and its using wine installed with heroic games launcher

ill try to install wine via nix