Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL
-
@Striderx99 do you still have this problem ?
-
Hi, I have exactly the same problem, Wolfenstein 3d works, so is SoD demo. But the full version of SoD does not work, all three episodes exit immediately. All md5 checksums are correct. I have no idea what's causing this.
Cheers,
tvferret -
@tvferret I've only tried the 1st SoD episode and it seems to work fine. If you wish to diagnose this further, please post the md5sum of the
*.sd1
files and the details of your system, as asked in https://retropie.org.uk/forum/topic/3/read-this-first.EDIT: just tested Ep 2 also and it's starting/playing fine.
-
@mitu I can confirm this error on Pi 4/Buster, using files:
b8ff4997461bafa5ef2a94c11f9de001 vswap.wl6 b1dac0a8786c7cdbb09331a4eba00652 vswap.sod
Using a previous binary (sorry I didn't note the version) they both worked but after update today wolf4sdl to
pkg_repo_commit="dc8b250af35fb0ace68db5eb879490b50068c20e"
, both no longer work.I can select new game, choose any episode, any difficulty, then it begins to load, shows "get psyched" graphic, and then segfaults and returns to EmulationStation.
Enter "options" menu and attempt to customize controls, also segfault.
Runcommand log does not give much to go on:
Parameters: Executing: /opt/retropie/ports/wolf4sdl/bin/wolf4sdl.sh "/home/pi/RetroPie/roms/ports/wolf3d/vswap.wl6" ~/RetroPie/roms/ports/wolf3d ~ /opt/retropie/ports/wolf4sdl/bin/wolf4sdl.sh: line 9: 30540 Segmentation fault /opt/retropie/ports/wolf4sdl/bin/${game_checksums[$(get_md5sum $wad_file)]} ~
Also I note:
- the target repo on github (
AryanWolf3D/Wolf4SDL
) redirects now toKS-Presto/Wolf4SDL
instead. - the redirected repo
KS-Presto/Wolf4SDL
is archived 8mos. ago (RP binary match this commit), and directs in turn to a bitbucket repo for current updates. - I get a "something went wrong" error when I try to view https://bitbucket.org/ks-presto/wolf4sdl/src from my iDevice
- I can however install from source the bitbucket version:
pkg_repo_url="https://bitbucket.org/ks-presto/wolf4sdl.git" pkg_repo_branch="master" pkg_repo_commit="a79d8cca0fa8afed54f27b59e14225421ad3284f"
- ...but behavior is unchanged, segfault occurs after "get psyched" or upon "customize controls."
...
@Striderx99 and @tvferret I don't have a solution for wolf4sdl but as a work-around and possible upgrade, you can use the ecwolf package which has more customizable control options for a modern gamepad controller, available from the optional RetroPie-Extra packages:
https://github.com/Exarkuniv/RetroPie-Extra
(Note that for ecwolf for SoD Ep1 you must undo the rename operation from the wolf4sdl docs ie. you should rename
gamemaps.sd1 maphead.sd1 vswap.sd1
back togamemaps.sod maphead.sod vswap.sod
) - the target repo on github (
-
@sleve_mcdichael said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
Using a previous binary (sorry I didn't note the version) they both worked but after update today wolf4sdl to pkg_repo_commit="dc8b250af35fb0ace68db5eb879490b50068c20e", both no longer work.
As you noticed the upstream repository is archived - and has been for quite some time so there are no recent changes related to this.
I'll take another look. My latest tests were on the new Bookworm but I did test on Buster the demos and there were no issues. Your experience is also a bit different than the previous posters', so I'm not sure it's the same issue.
-
@mitu said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
I'll take another look.
I re-tested this on Buster and couldn't reproduce any crash. The md5sums are similar to what was posted.
.. segfault occurs after "get psyched" or upon "customize controls."
If you could get a
gdb
backtrace to see where it crashes, that would be more helpful to diagnose the issue. @sleve_mcdichael can you post also the rest of the.wl6
files' checksums ? -
@sleve_mcdichael said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
Using a previous binary (sorry I didn't note the version) ...
Ah, but I do have a recent backup with the
retropie.pkg
in it. Looks like my version was quite old after all:pkg_repo_commit="f31f41a5e4e988377d255251fa6230bbe04a8dfd" pkg_repo_date="2021-04-08T19:52:07+01:00"
...when I build this version
f31f41a
, it works as before.Moving forward: After testing many different commits and getting inconsistent results...it's the config file?!
~/.wolf4sdl/config.wl6
- Using the current RP binary wolf4sdl, then if I copy from roms folder (does not match the docs, but came from installation media):
c020f882b39d6057663e2780ddd109a3 config.wl6
...then it works.
-
If I delete the file entirely, then it works.
-
After launch*, the file is created on exit. Launch with that new file, works.
-
...if I place my old, backup
config.wl6
, then RP binary crash, but oldf31f41a
build, still work.
So it looks like new version wolf4sdl is somehow not compatible with old version config file.
Test:
- Remove config
- Build
f31f41a
- Launch - works!
- Quit through menu (save config)
- Install binary
- Launch - crash after "get psyched"
- Remove config
- Launch - works!
Spear of Destiny also works again after remove
config.sod
.Just delete the config!
E: also the bitbucket build works too, now. Don't know if there's any interest in switching to that one or not.
...*(config file is created only if quit from menu. If quit with L3 button "hotkey" during a mission, no file is saved and log shows segfault -- maybe that's not meant an actual "quit" function and really just causing some sort of crash? When quit from menu, file is saved and log show no fault.)
-
@sleve_mcdichael thanks for testing and solution.
Since my installation was new, there was no 'config.wl6' (or similar file for SoD) and that's why I didn't experience the crash.
-
@mitu, apologies, here are details of my hw and sw:
Raspberry Pi 3B 5V 3.5A Power Supply (from Amazon, dedidated for Pi3B) Retropie 4.8 Installed Raspberry Pi OS using Raspberry Pi Imager
output of uname -a
pi@retropie:~/RetroPie/roms/ports/wolf3d $ uname -a Linux retropie 5.10.103-v7+ #1529 SMP Tue Mar 8 12:21:37 GMT 2022 armv7l GNU/Linux
runcommand.log:
pi@retropie:~/RetroPie/roms/ports/wolf3d $ sudo cat /dev/shm/runcommand.log Parameters: Executing: /opt/retropie/ports/wolf4sdl/bin/wolf4sdl.sh "/home/pi/RetroPie/roms/ports/wolf3d/vswap.sd1" ~/RetroPie/roms/ports/wolf3d ~ ~
md5
a41af25a2f193e7d4afbcc4301b3d1ce audiohed.wl6 2385b488b18f8721633e5b2bdf054853 audiot.wl6 aa75133df873b660d2058425ca8539b3 config.wl6 a4e73706e100dc0cadfb02d23de46481 gamemaps.wl6 b8d2a78bc7c50da7ec9ab1d94f7975e1 maphead.wl6 dec8939cff5a4ec27ae7b43e8f52ec28 vgadict.wl6 8b40b5b785f898e229bf1c2f2e3ee003 vgagraph.wl6 8e75e3ffb842ed3d08abe6ffea97b231 vgahead.wl6 b8ff4997461bafa5ef2a94c11f9de001 vswap.wl6 6e914d15335125872737718470061ad8 audiohed.sod 10020fce0f04d21bd07b1b5b951c360a audiot.sod 30b11372b9ec6bc06289eb3e9b2ef0b9 vgadict.sod 3b85f170098fb48d91d8bedd0cac4e0d vgagraph.sod fb75007a1167bba05c4acadf90bc30d8 vgahead.sod 04f16534235b4b57fc379d5709f88f4a gamemaps.sd1 276c79a4a6419db6b23e7699e41cb9fa maphead.sd1 b1dac0a8786c7cdbb09331a4eba00652 vswap.sd1 fa5752c5b1e25ee5c4a9ec0e9d4013a9 gamemaps.sd2 d55508cd58e2e61076ac81b98aeb9269 maphead.sd2 25d92ac0ba012a1e9335c747eb4ab177 vswap.sd2 29860b87c31348e163e10f8aa6f19295 gamemaps.sd3 a8b24dd3d3271e0b7fc6f2f995915f27 maphead.sd3 94aeef7980ef640c448087f92be16d83 vswap.sd3
I deleted config.sod as per @sleve_mcdichael suggestion but to no avail...
Thanks!
-
@tvferret said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
I deleted config.sod as per @sleve_mcdichael suggestion but to no avail...
From where? I see it's not listed in your md5's from the rom folder, but did you also delete the one in
~/.wolf4sdl
(symlink/network share:/opt/retropie/configs/ports/wolf3d
)? -
@sleve_mcdichael I deleted it from ~/RetroPie/roms/ports/wolf3d. There is no config.sod in /opt/retropie/configs/ports/wolf3d.
BTW, my initial installation of wolf4sdl was from binaries. I just reinstalled from sources but same thing, SOD (all 3 episodes immediately exit, i just see a flash of the initial screen and then back to emulatorstation. Original Wolfenstein 3D works like a charm.
-
@tvferret I think your installation may be incomplete, looking at the
.sd1/.sd2
files that I have, there are more files present in my installation than yours. What's the source of your game ? -
@mitu I got my game from GOG (I think). I have 9 sod files for each SoD mission pack.
6 that are shared between mission packs (same md5sum for all three mission packs):
-rw-r--r-- 1 pi pi 1072 Dec 30 10:32 audiohed.sod -rw-r--r-- 1 pi pi 328620 Dec 30 10:32 audiot.sod -rw-r--r-- 1 pi pi 522 Dec 30 10:32 config.sod -rw-r--r-- 1 pi pi 1024 Dec 30 10:32 vgadict.sod -rw-r--r-- 1 pi pi 947979 Dec 30 10:32 vgagraph.sod -rw-r--r-- 1 pi pi 510 Dec 30 10:32 vgahead.sod
and three mission pack specific (below for mission pack 1 but I have matching sd2 and sd3 fiules for the other mission packs):
-rw-r--r-- 1 pi pi 68290 Dec 30 10:32 gamemaps.sd1 -rw-r--r-- 1 pi pi 402 Dec 30 10:32 maphead.sd1 -rw-r--r-- 1 pi pi 1616544 Dec 30 10:32 vswap.sd1
This matches the Wolfenstein 3D files where there are 9 .wl6 files:
-rw-r--r-- 1 pi pi 1156 Dec 30 10:22 audiohed.wl6 -rw-r--r-- 1 pi pi 320209 Dec 30 10:22 audiot.wl6 -rw-r--r-- 1 pi pi 522 Dec 30 10:22 config.wl6 -rw-r--r-- 1 pi pi 150652 Dec 30 10:22 gamemaps.wl6 -rw-r--r-- 1 pi pi 402 Dec 30 10:22 maphead.wl6 -rw-r--r-- 1 pi pi 1024 Dec 30 10:22 vgadict.wl6 -rw-r--r-- 1 pi pi 275774 Dec 30 10:22 vgagraph.wl6 -rw-r--r-- 1 pi pi 450 Dec 30 10:22 vgahead.wl6 -rw-r--r-- 1 pi pi 1544376 Dec 30 10:22 vswap.wl6
-
BTW, these files work perfectly well in DOSBox:
-
Strage then. I got the files from the same source - GOG.
-
@mitu OK, I sorted it out. The instructions on RetroPie docs site are wrong. One must copy/rename all 9 files (not just 3 as instructed) to sd1, sd2 and sd3.
Here is the listing of the correct files:
-rw-r--r-- 1 pi pi 1072 Jan 10 10:19 audiohed.sd1 -rw-r--r-- 1 pi pi 1072 Jan 10 10:21 audiohed.sd2 -rw-r--r-- 1 pi pi 1072 Jan 10 10:22 audiohed.sd3 -rw-r--r-- 1 pi pi 328620 Jan 10 10:19 audiot.sd1 -rw-r--r-- 1 pi pi 328620 Jan 10 10:21 audiot.sd2 -rw-r--r-- 1 pi pi 328620 Jan 10 10:23 audiot.sd3 -rw-r--r-- 1 pi pi 522 Jan 10 10:19 config.sd1 -rw-r--r-- 1 pi pi 522 Jan 10 10:21 config.sd2 -rw-r--r-- 1 pi pi 522 Jan 10 10:23 config.sd3 -rw-r--r-- 1 pi pi 68290 Dec 30 10:32 gamemaps.sd1 -rw-r--r-- 1 pi pi 135024 Dec 30 10:32 gamemaps.sd2 -rw-r--r-- 1 pi pi 148534 Dec 30 10:32 gamemaps.sd3 -rw-r--r-- 1 pi pi 402 Dec 30 10:32 maphead.sd1 -rw-r--r-- 1 pi pi 86 Dec 30 10:32 maphead.sd2 -rw-r--r-- 1 pi pi 86 Dec 30 10:32 maphead.sd3 -rw-r--r-- 1 pi pi 1024 Jan 10 10:19 vgadict.sd1 -rw-r--r-- 1 pi pi 1024 Jan 10 10:22 vgadict.sd2 -rw-r--r-- 1 pi pi 1024 Jan 10 10:23 vgadict.sd3 -rw-r--r-- 1 pi pi 947979 Jan 10 10:19 vgagraph.sd1 -rw-r--r-- 1 pi pi 947979 Jan 10 10:22 vgagraph.sd2 -rw-r--r-- 1 pi pi 947979 Jan 10 10:23 vgagraph.sd3 -rw-r--r-- 1 pi pi 510 Jan 10 10:20 vgahead.sd1 -rw-r--r-- 1 pi pi 510 Jan 10 10:22 vgahead.sd2 -rw-r--r-- 1 pi pi 510 Jan 10 10:23 vgahead.sd3 -rw-r--r-- 1 pi pi 1616544 Dec 30 10:32 vswap.sd1 -rw-r--r-- 1 pi pi 1879712 Dec 30 10:32 vswap.sd2 -rw-r--r-- 1 pi pi 1881760 Dec 30 10:32 vswap.sd3
The docs page should be updated with correct info.
Cheers!
-
@tvferret said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
The instructions on RetroPie docs site are wrong
It seem that For Spear of Destiny they're incomplete and they're only referring to the Steam version. I'll add the info about GOG, I though the renaming was already mentioned in the docs since the GOG kit contains each episode in separate folders and they files are always named
.sod
. Thanks for testing. -
@tvferret said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
OK, I sorted it out. (...) One must copy/rename all 9 files (not just 3 as instructed) to sd1, sd2 and sd3.
Yes I am seeing this now too. Can confirm this is new behavior introduced between
f31f41a
anddc8b250
. New version requiresall 9 files(all 8, you don't needconfig.*
I think) share the same extension, eithersd1 sd2 sd3
(or.sod
).I didn't see this before because I didn't have eps 2 and 3 installed, and I'm using already the
sod
version filenames of ep1 for intercompatibility with ecwolf. -
Hi everyone. I have gone back and tried removing wolf4sdl and installing from source, but I also had the same issue @sleve_mcdichael experienced. I even tried changing the resolution to fit my screen (1920x1080 @ 50 Hz 16:9), but it just crashed and led back to the Ports menu. I am planning on downloading ecwolf, but in order for me to do that, it seems like I need to update my script (since version 4.8.9 or higher is needed for RetroPie-Extra). There's one problem however: I now see the "Update failed: fatal: Not possible to fast-forward. aborting." message appear on the screen. Is there any way to fix this? Once I get that done, I think I'll go to RetroPie-Extra to download ecwolf, rename the required files to what they were originally, and attempt to launch all the episodes one at a time. Thanks for all of your suggestions.
-
@Striderx99 said in Wolfenstein 3D and Spear of Destiny no longer working with WOLF4SDL:
There's one problem however: I now see the "Update failed: fatal: Not possible to fast-forward. aborting." message appear on the screen. Is there any way to fix this?
This looks like you modified some of RetroPie's setup files or your repository is not RetroPie's. How did you install RetroPie ? What's the output of the following commands:
cd $HOME/RetroPie-Setup git remote -v git log -3 --pretty=oneline
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.