descriptiona port of Doom 2D Forever to FPC/SDL
homepage URL
last changeMon, 22 Oct 2018 20:04:46 +0000 (22 23:04 +0300)
content tags

Doom 2D Forever ( ) adapted for use with the FreePascal Compiler
and ported to SDL 2.0.


* FPC >= 3.0.2;
* FMODEx >= 4.26.xx or SDL_mixer >= 2.0;
* libenet >= 1.3.13;
* SDL >= 2.0.

Create the "tmp" and "bin" directories beforehand if they don't exist already. Then run

cd src/game
fpc -O3 -Fi../lib/vampimg -Fi../lib/vampimg/JpegLib -Fi../lib/vampimg/ZLib -Fu../lib/vampimg -Fu../lib/vampimg/JpegLib -Fu../lib/vampimg/ZLib -FE../../bin -FU../../tmp Doom2DF.lpr

If you want SDL_mixer instead of FMOD, add -dUSE_SDLMIXER.
If you want the server to be able to forward ports via UPNP, add -dUSE_MINIUPNPC.
If you want to debug game with Holmes, add -dENABLE_HOLMES (not supported in GLES mode).
If you want to render graphics using OpenGL ES, add -dUSE_GLES1.
To build a headless (no video/audio, for dedicated servers) executable, add -dHEADLESS.
Replace -O3 with -g -gl to enable debugging features. Run the game with --gdb when using a debugger to
prevent it from eating exceptions.

Windows binaries will require the appropriate DLLs (SDL2.dll, SDL2_mixer.dll or FMODEx.dll, ENet.dll, miniupnpc.dll),
unless you choose to static link them (see below).

Static Linking

See ( ) repo for prebuild dynamic and static libraries.

It is now possible to link windoze LibJIT and ENet as static libs.

First, you need to clone ( ) (repo with prebuilt windoze libs).
Then, you can use:
  -dLIBJIT_WINDOZE_STATIC       -- static LibJIT
  -dLIBENET_WINDOZE_STATIC      -- static ENet

Don't forget to specify lib*.a location with -Fi<...>

I (ketmar) used mingw-gcc 7.1.0 to build static libs; some other .a libs were taken directly from mingw.
building libs is easy: just fire msys, install all dependencies, and do:

  ./configure --enable-static --disable-shared && make

This should produce working .a library suitable for static linking.
2018-10-22 DeaDDooMERSupported non ascii system user namesmaster
2018-10-07 DeaDDooMERAndroid: improved data unpacking
2018-10-06 Ketmar Darknetwork: changed weapon forcing logic; should be more... mob
2018-10-05 DeaDDooMERSystem username used as player's nickname by default
2018-10-02 Ketmar Darknetwork: server is weapon authority!
2018-10-01 Ketmar Darkproperly reset weapon states, so player will be able...
2018-10-01 Ketmar Darkoops; gTime fwp sync timeout was too small
2018-10-01 Ketmar Darkreset weapon switch timer in various places; just in...
2018-10-01 Ketmar Darknetwork: it seems that something is wrong with `gTime...
2018-10-01 Ketmar Darknetwork: oops; server player was unable to switch weapons
2018-10-01 Ketmar Darknetwork: code uglification; fixed bug with weapon switc...
2018-10-01 Ketmar Darknetwork: do not send weapon switch keys over the networ...
2018-10-01 Ketmar Darknetwork: packed some player state bools into bytes
2018-10-01 Ketmar DarkRevert "Revert "fixed flawed "weapon switch key release...
2018-10-01 Ketmar DarkRevert "Revert "no more delay between weapon switching...
2018-10-01 Ketmar DarkRevert "Revert "fixed weapon switching over the network...
7 weeks ago master
2 months ago mob
15 months ago buffers
16 months ago scripts