Le mardi 30 juin 2015, 22:19:20 Braden Obrzut a écrit : > On 30/06/15 06:11, Alexandre Detiste wrote: > > only one way work here, maybe I need to update ? ReadConfig: Reading > > the Configuration. IWad: Selecting base game data. Can not find base > > game data. (*.wl6, *.wl1, *.sdm, *.sod) ----- goal is to provide a > > .desktop file that simply launch the game with standard parameters; if > > users know better, they can call ecwolf by hand with custom > > parameters. (or edit the .desktop file) > Oh right. The issue here is that ECWolf doesn't know where > game-data-packager puts stuff. I'm not sure if these paths are > something I should add to the engine since I imagine they're Debian > specific? > > https://bitbucket.org/Blzut3/ecwolf/src/d0ae1a41302496280d6e15a727b421ba37450f49/src/wl_iwad.cpp?at=default#cl-500
I think /usr/share/games/wolf3d is not Debian specific at all, many DOS games follow this same pattern C:\<GAME> -> /usr/share/games/<game> /usr/share/games/super-noahs-... well is I thought it could be as simple as this one-line change to support this extra path, but I must have got something wrong. diff -r d0ae1a413024 src/wl_iwad.cpp --- a/src/wl_iwad.cpp Tue Jun 30 19:38:46 2015 -0400 +++ b/src/wl_iwad.cpp Wed Jul 01 10:14:21 2015 +0200 LookForGameData(datawadRes, basefiles, "/usr/local/share/games/wolf3d"); + LookForGameData(datawadRes, basefiles, "/usr/share/games/wolf3d"); | tchet@antec:~/git/ecwolf$ ./ecwolf | ReadConfig: Reading the Configuration. | IWad: Selecting base game data. | Spear of Destiny is not set to the original mission. Attempting remap for files in: /usr/share/games/wolf3d | Could not open gamemaps since /usr/share/games/wolf3d/maphead.wl6 is missing. (maphead.wl6 from v1.4 is well there) ----- For Noah's ark, I didn't specified any directory at all yet, It's just the default algorithm that does "/usr/share/games/" + package name (=super-3d-noahs-ark-data) with '-data' stripped This works fine as this is the same program that write the .desktop file; this could really be anything. > But yeah the working directory method works as well. With the "Path=" tag in the desktop file, it doesn't need an extra wrapper script :-) S3DNA assets could be mixed in /usr/share/games/wolf3d, but then how can one tell ecwolf to prefer this game over Wolf3d without using config files ? I've got now S3DNA re-packaging working pretty well, and this package should remain compatible with any improvement to ecwolf. This even finds this icon in .local/share/icons/hicolor/. Thanks for the md5's ! > All of the shareware versions are at > http://www.classicdosgames.com/game/Blake_Stone%3A_Aliens_of_Gold.html > so I imagine you can hash those yourself if needed. Do you plan to support the shareware version too ? I guess only the latest version ? > On Steam they originally used 1.0, but after complaining loudly for about a > year they > finally patched it up to 2.1 as well. I was a bit confused because I tricked Linux Steam into downloading some Windows-only game; to get the game assets (well I was only interrested in ROTT back then), but then they are never updated. So I ended up with 2 different sets of files. > Because of this ECWolf will support 2.1, it's just a matter of if it will > also support 3.0 and that > I can't say for sure at this time. Ok, Greets, Alexandre Detiste