Open l0b0 opened 1 year ago
I went ahead and bought this game on GOG (it was in the wishlist anyway :)), and installed/ran it from Lutris. Both I & II ran just fine for me, I don't see a problem here that would warrant a package. Could you provide more details as to what wasn't working?
Recommendations:
innoextract
on GOG installers instead of wine
lutris
in your Nix config if dosbox games aren't launching due to the opusfile error:
(lutris.override {
extraPkgs = pkgs: [ opusfile SDL2_net ]; # fix dosbox
})
I already had the extra Lutris packages; they weren't helping.
innoextract
+ dosbox -conf ./__support/app/dosboxULTIMA1.conf -conf ./__support/app/dosboxULTIMA1_single.conf
did work though. The main reason I wanted a package was to be able to really easily install it, as Nix is an excellent way to install games to run reliably. By packaging in nixpkgs we could also add community patches like Ultima Hacks in a way that would allow owners of this game to get the best possible experience with a single command.
For example, to get UU running with Ultima Hacks and the MIDI patch, I had to do something like this:
innoextract
the installergame.gog
file as a loop deviceuu.exe
fileuu.exe
filegame.gog
file with the new ISO.UU1/__support
directory (yes, really)dosbox -conf app/dosboxULTIMA1.conf -conf app/dosboxULTIMA1_single.conf
nix-shell -p ultima-underworld
followed by ultima-underworld &
seems preferable. :grin: Hopefully something like this would be possible by some relatively simple mechanism like specifying a GOG API key in a Nix configuration file. This sort of easy install of games potentially from a whole host of game providers could be a bit of a superpower of nixpkgs, IMO.
Project description
From Wikipedia:
Hopefully this can be installed similarly to Descent 1 & 2 by using
gogUnpackHook
.I've attempted to install using both Lutris and playonlinux, but neither of them work out of the box on NixOS 22.11. See How to install libstdc++.so.6 for DOSBox in Lutris? and #219126. The only way I've been able to create a runnable version is this:
wine setup_ultima_underworld_1.0_cs_\(28190\).exe
nix-shell --packages dosbox-staging
cd ~/.wine/drive_c/GOG\ Games/Ultima\ Underworld
Save this patch as
dosboxULTIMA1_single.conf.patch
:patch -p0 < dosboxULTIMA1_single.conf.patch
dosbox -conf ~/.wine/drive_c/GOG\ Games/Ultima\ Underworld/dosboxULTIMA1.conf -conf ~/.wine/drive_c/GOG\ Games/Ultima\ Underworld/dosboxULTIMA1_single.conf
Metadata