Wolf4SDL Screenshot Wolfenstein 3D port using libSDL

Wolf4SDL is an open-source port of id Software's classic first-person shooter Wolfenstein 3D to the cross-plattform multimedia library "Simple DirectMedia Layer (SDL)" (http://www.libsdl.org). It is meant to keep the original feel while providing several improvements:

  • Cross-plattform:
    • Linux
    • BSD variants
    • Windows 98, ME, 2000, XP, Vista (32 and 64 bit)
    • KallistiOS (used for Dreamcast)
    Only little endian platforms like x86, ARM and SH-4 are supported, yet.
  • AdLib sounds and music (includes the OPL2 emulator from MAME).
  • Multichannel digitized sounds.
  • Higher screen resolutions (multiples of 320x200 or 320x240).
  • Also fully playable with only a game controller.
  • Includes several optional enhancements for mod development.

The following versions of Wolfenstein 3D data files are currently supported by the source code:

  • Wolfenstein 3D v1.0, v1.1, v1.2, v1.4 shareware
  • Wolfenstein 3D v1.1, v1.4 full Apogee
  • Wolfenstein 3D v1.4 full GT/ID/Activision
  • Spear of Destiny demo, full, and mission disks

License: free
Requirements:

  • Original game data files
  • libSDL
  • libSDL_Mixer

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnonononoyes
Suggest an update

Comments

I built it from source fine (just had non-important two warnings). But if I launch it the first three static screens are displayed, then I get:
wolf3d: id_vl.cpp:551: void VL_MemToScreenScaledCoord(byte*, int, int, int, int): Assertion `destx >= 0 && destx + width * scaleFactor <= screenWidth && desty >= 0 && desty + height * scaleFactor <= screenHeight && "VL_MemToScreenScaledCoord: Destination rectangle out of bounds!"' failed.
Aborted
I tried window mode too and got the same error. In my wolf3d folder there are the files from the shareware:
audiohed.wl1 catalog.exe maphead.wl1 vgadict.wl1 vgahead.wl1 wolf3d audiot.wl1 gamemaps.wl1 order.frm vgagraph.wl1 vswap.wl1 wolf3d.exe
Re: crashes for me posted by Ripper on May 27 2008 1:58 PM

I'm sorry, I forgot to mention, that by default the executable is built for the "Wolfenstein 3D v1.4 full GT/ID/Activision" version. You have to switch the versions by commenting/uncommenting defines in version.h as explained there and mentioned in the README.txt. So for the 1.4 shareware data files, you would need to uncomment the "UPLOAD" define and comment the "GOODTIMES" define.
Perhaps I should add some detection to check whether the data files fit to the executable to avoid this confusion.

I should also mention, that the data filenames must be all lowercase.

Re: crashes for me posted by P3GCu2h3bE on May 27 2008 2:14 PM
Ah, thanks a lot for the swift reply. It works just fine now, out of the box with my gamepad and sound. :)
The game runs extremely slow on my 206MHz arm-linux palmtop. I've waited ~5min for the screen to appear, but then the game freezed the whole system and I had to reboot it.
Re: Wolf4SDL posted by Thunor on May 27 2008 10:11 PM
What device are you running it on? Did you compile it yourself?
Re: Wolf4SDL posted by Ripper on May 28 2008 9:30 AM
It runs without problems on a GP2X which uses two ARM's at 200 MHz.
Please try to use the following options: --samplerate 11025 --audiobuffer 128
Which resolution does your Palmtop use? As Thurnor asked, what's the exact device name? Which game data files do you use?
Re: Wolf4SDL posted by zear on May 28 2008 12:40 PM
At first I must say i've compiled it with the wrong data. After recompiling it with the correct data the game actually runs. --samplerate 11025 really helped a lot. Now game loads within seconds. On 320x240 game is playable until I encounter the bad guys. Then the framerate drops and game lags a bit.

About the palmtop: It's a HP Jornada 720, with 2.4.35.3 familiar based distro. 206MHz, 32 RAM.

Re: Wolf4SDL posted by Ripper on May 28 2008 4:10 PM
Let's discuss this problem via email and post our solution afterwards.
solved posted by zear on Jun 4 2008 3:15 PM
ok, problem solved (thanks to the help of Ripper), so now I can give this game 5 stars ;)
Re: solved posted by Ripper on Jun 4 2008 3:30 PM
Thanks for the 5 stars! ;D

Solution: A config.default with the line

CFLAGS += -O2
is missing. So it was compiled without any optimizations by default. With the above line and the game parameter "--samplerate 11025" Wolf4SDL runs without noticable slowdowns on the HP Jornada 720.

Hi! I find this project interesting and I particularly appreciate open source projects. I'm going to test it. You write that you don't use hardware acceleration but SDL provides 3D hardware acceleration through OpenGL, doesn't it? Good work! Keep it up!
Re: interesting posted by Ripper on May 29 2008 6:40 PM
While SDL supports OpenGL, Wolf4SDL does not use it in any way. Rendering is completely done in software, similar to how it was done in the original version.
But thank you anyway ;D
This is the most promising source port of wolf3d I've seen on the net. It supports a lot of platforms because it uses sdl.
Compiled up nice on ubuntu intrepid ibex. Complete with sound/music and multiple resolutions. Solid port, love it. Runs real smooth, no issues.
5 stars! sorry for double post

Log in or register to rate this game or post a comment.