PDA

View Full Version : FPCDoom



Jimmy Valavanis
14-01-2018, 07:10 PM
https://i.postimg.cc/DwtnV0Gv/FPCDoom-src.png

FPCDoom is a source port of Doom game in Free Pascal / Lazarus.

License GPL

Downloads (windows executable and full source code - tested with Lazarus 1.6.2, 1.8 and 2.0.4)

version 1.12.3.114 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.12.3.114/) ( November 22, 2019 )
version 1.12.2.100 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.12.2.100/) ( November 12, 2019 )
version 1.12.1.76 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.12.1.76/) ( October 29, 2019 )
version 1.11.2.38 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.11.2.38/) ( January 28, 2018 )
version 1.11.1.18 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.11.1.18/) ( January 14, 2018 )


Source code repository
https://github.com/jval1972/FPCDoom

Features
High screen resolutions
External textures
Uncapped framerate
Automap rotation and overlay
Dynamic lights
Accurate software rendering (using floating point arithmetic where needed instead of fixed point)


The purpose of the project is to provide a solid code-base of the game Doom in Free Pascal Compiler.
Early versions of it's bigger brother (DelphiDoom (http://www.pascalgamedevelopment.com/showthread.php?32547-DelphiDoom-2-0)) were possible to get compiled with FPC, but they were some issues and/or incompatibilities. FPCDoom provides a stable and modern id-Tech1 (https://en.wikipedia.org/wiki/Doom_engine) engine fully compatible with FPC.

Compile and play
My sourceforge downloads include only the source code and the compiled executable (Win32)
To run the game you must also have game data (doom.wad or doom2.wad etc).
If you do not own the original game, you can download the shareware data (doom1.wad) from here (http://www.doomarchive.com/download.asp?FileId=5583).


Have fun!

https://i.postimg.cc/PrYh4kJp/1.jpg

Ñuño Martínez
15-01-2018, 10:25 AM
Great!

Cybermonkey
15-01-2018, 07:05 PM
Can it be compiled for Linux or are there some Windows-only libraries in use?

Jimmy Valavanis
16-01-2018, 09:46 AM
Can it be compiled for Linux or are there some Windows-only libraries in use?

It uses DirectDraw surface for blit buffer, DirectSound for sound effets and MCI for music. Al lthe system specific routines are the i_xxxxx.pas units.

paul_nicholls
21-01-2018, 10:09 AM
Awesomesauce mate!! :)

cheers,
Paul

phibermon
22-01-2018, 07:03 AM
Absolutely awesome :) although now I'm confused - if the doom/heretic engine is ID Tech 1 - and the Quake 2 engine is ID Tech 2 - then what does that make the Quake 1 engine?

Chebmaster
22-01-2018, 08:03 AM
what does that make the Quake 1 engine?
Id tech 2, making it just an earlier version of the Quake 2 engine..

https://en.wikipedia.org/wiki/Id_Tech

phibermon
22-01-2018, 08:34 AM
Id tech 2, making it just an earlier version of the Quake 2 engine..

https://en.wikipedia.org/wiki/Id_Tech

Well now I have to rename a bunch of stuff ;)

Jimmy Valavanis
22-11-2019, 07:28 PM
Version 1.12.3.114 is available

Downloads (windows executable and full source code - tested with Lazarus 1.6.2, 1.8 and 2.0.4)

version 1.12.3.114 (https://sourceforge.net/projects/fpcdoom/files/FPCDoom_1.12.3.114/) ( November 22, 2019 )


Source code repository
https://github.com/jval1972/FPCDoom

Notable New Features

Software rendering using multiple CPU cores
Dynamic lights/lightmap
Widescreen support, pillarbox & letterbox, custom aspect ratio etc
Mirror
Color post processing effects like grayscale & (retro) palette
Change display mode from the Menus
Key bindings
Many other new additions to the Menus to configure the engine.
Portions of the source code has been reformatted to prepare alternate compilation targets (win 64bit & maybe linux).


Screenshots to demonstrate the new rendering features

https://i.postimg.cc/nrMS7L9G/LIGHTMAP-01.png

https://i.postimg.cc/pTW6WC27/PALETTE-4-4-4-02.png

https://i.postimg.cc/vB0ScnTm/GRAYSCALE-01.png

Screenshots of Menu options

https://i.postimg.cc/hGbYR6qT/menu-1-detail.jpg

https://i.postimg.cc/tgHcfy89/menu-2-aspect.jpg

https://i.postimg.cc/8zv3tsKy/menu-3-camera.jpg

https://i.postimg.cc/bNs4SmQf/menu-4-hud.jpg

https://i.postimg.cc/ryhvpBR9/menu-5-mirror.jpg

Enjoy!

paul_nicholls
23-11-2019, 07:58 AM
I love it!! Great work mate :)

SilverWarior
23-11-2019, 12:00 PM
It doesn't work for me.


FPCDoom_stderr.txt contains:

I_Warning: Loading unspecified wad file: FPCDoom.wad
I_Error: W_GetNumForName(): PLAYPAL not found!

Jimmy Valavanis
23-11-2019, 12:16 PM
Compile and play
My sourceforge downloads include only the source code and the compiled executable (Win32)
To run the game you must also have game data (doom.wad or doom2.wad etc).
If you do not own the original game, you can download the shareware data (doom1.wad) from here (http://www.doomarchive.com/download.asp?FileId=5583).




It doesn't work for me.


FPCDoom_stderr.txt contains:

I_Warning: Loading unspecified wad file: FPCDoom.wad
I_Error: W_GetNumForName(): PLAYPAL not found!


You need a wad file with game data. The FPCDoom.wad file contains only additional assets to enhance the game.
You can grab the shareware wad at http://distro.ibiblio.org/pub/linux/distributions/slitaz/sources/packages/d/doom1.wad. Save it to the same folder with FPCDoom.wad & FPCDoom.exe to play.

SilverWarior
24-11-2019, 03:16 PM
You need a wad file with game data. The FPCDoom.wad file contains only additional assets to enhance the game.

Oh my bad. I thought you were providing some kind of a "tech demo level" yourself in provided WAD file. Didn't realize it just an extension for the original WAD file.

Any way great work. Game runs pretty smooth.
The only quirk I found is when you go for instance into Options menu -> Display Options -> Appearance and then you pres enter on Hud ... it takes you to another sub menu from where you have no way of returning back to Appearance menu but instead pressing escape brings you back to main menu. Perhaps adding additional buttons on each menu to return to the parent menu would make browsing though options menus much easier.This is especially rue since your Options menus are much more complex than the one from original game due to all additional settings available

Jimmy Valavanis
25-11-2019, 10:05 AM
The only quirk I found is when you go for instance into Options menu -> Display Options -> Appearance and then you pres enter on Hud ... it takes you to another sub menu from where you have no way of returning back to Appearance menu but instead pressing escape brings you back to main menu. Perhaps adding additional buttons on each menu to return to the parent menu would make browsing though options menus much easier.This is especially rue since your Options menus are much more complex than the one from original game due to all additional settings available

You can go to the upper level menu using the right mouse button of by pressing backspace on your keyboard.

laggyluk
01-12-2019, 02:49 PM
Nice work, brings back memories ;)