"Failed to initialize dependencies" when trying to launch Star Citizen
Closed this issue · 1 comments
Hi there! I'm relatively new to nixOS, but I added the nix-gaming
flake and added Star Citizen to my home-manager modules. I had SC running without issue previously via Lutris on endeavourOS, and I could probably get it running again pretty easy in Lutris, but figured I'd reach out here in an effort to help improve my nixOS knowledge.
Relevant dotfile links:
I'm getting a wine/windows error dialog indicating "Failed to initialize dependencies" when I click Launch Game in the SC launcher.
Here's a link to a gist with the wine log after I click LAUNCH GAME
.
I followed the guide in the readme here, and I've verified via the lug-helper that my system is ready:
Preflight Check Complete
Your system is optimized for Star Citizen!
Passed Checks:
- Lutris is installed and up to date.
- Wine is installed on your system.
- Winetricks is installed and up to date.
- Your system has 63GiB of memory.
- Your CPU supports the necessary AVX instruction set.
- vm.max_map_count is set to 16777216.
- Hard open file descriptors limit is set to 524288.
Press any key...
At this point I don't see anything immediately obvious in the wine log (then again reading wine logs makes my eyes go cross), and am unsure where exactly the problem lies.
I think I figured it out, thanks to the LUG wiki. TLDR: when I was initially learning/configuring hyprland, I had set SDL_VIDEODRIVER=wayland
globally.
I removed that line and was able to boot the game through lutris (before that I was having the same issue as I was with nix-gaming installation). Will test with nix-gaming again later this evening.
EDIT: Re-tested via nix-gaming
path (i.e. no lutris) and the SDL_VIDEODRIVER
was indeed the problem.