Author Topic: Games with older SDL and FSLIB  (Read 23723 times)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #75 on: August 05, 2025, 05:55:57 am »
Tried with 16 bit colour, same output. Guess it is old enough that 256 colour was common and that is what it wants. It's a shame as it compiles nicely with OW, besides having to compile every binary separately.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5439
  • Karma: +49/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #76 on: August 06, 2025, 04:30:46 am »
Hello Dave

I don't know how they compile it on 2018. Here it is working.
Like I said before I didn't noticed that UHexen2 (h2.exe) existed. (thanks Tellie for letting me know that)

Regards
« Last Edit: August 06, 2025, 04:40:28 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #77 on: August 06, 2025, 06:46:44 am »
Interesting. The only one that runs here is the version on Hobbes, where the executable is hexos2.exe and includes HEXEN.WAD.
Trying the h2.exe from 1.59 that you referenced gives me the same error about no full screen modes available when copied to Hexen 2 (the Windows full program I think)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #78 on: August 06, 2025, 07:27:00 am »
Here's the h2.exe I compiled, perhaps your environment is different then mine.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5439
  • Karma: +49/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #79 on: August 06, 2025, 04:23:35 pm »
Hello Dave

It seems that your compiled version is not compatible with the data files of the 2018 compile ( h2.exe from 1.59 )
Quote
[C:\DESKTOP\UHEXEN2]h2
Hammer of Thyrion, release 1.5.10 (2025-06-20)
running on Hexen2 engine 1.29 (OS/2)
More info / sending bug reports:  http://uhexen2.sourceforge.net
basedir is: C:\DESKTOP\UHEXEN2
Detected byte order: LE
Found SDL version 1.2.15
Host_Init
Server using protocol 19 (Raven/MP/1.12)
Added packfile C:\DESKTOP\UHEXEN2\data1\pak0.pak (701 files, 20870 crc)

FATAL ERROR: Old version of Hexen II demo isn't supported


I'm trying to find some other data files for Hexen II.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #80 on: August 06, 2025, 04:53:32 pm »
Perhaps this will update the pak files. The documentation is severely lacking. There were probably forums or such covering this stuff.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5439
  • Karma: +49/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #81 on: August 06, 2025, 07:21:32 pm »
No, it seems it is not compatible with the pak0.pak demo that I have.

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #82 on: August 06, 2025, 09:57:27 pm »
OK, got it running.
Download the zip at https://archive.org/details/hexen-2 and unzip. Replace h2.exe with the binary I attached up thread. Start as h2.exe -window -width 640 -height 480
Code: [Select]
H:\tmp\Hexen 2>h2.exe -window -width 640 -height 480
Hammer of Thyrion, release 1.5.9 (2018-05-31)
running on Hexen2 engine 1.29 (OS/2)
More info / sending bug reports:  http://uhexen2.sourceforge.net
basedir is: H:\tmp\Hexen 2
Detected byte order: LE
Found SDL version 1.2.15
Host_Init
Server using protocol 19 (Raven/MP/1.12)
Added packfile H:\tmp\Hexen 2\data1\pak0.pak (696 files)
Added packfile H:\tmp\Hexen 2\data1\pak1.pak (523 files)
Playing the registered version.
UDP_Init: WARNING: gethostbyname failed (Unknown host)
UDP, Local address: 192.168.0.105 (lan0)
UDP Initialized
Exe: 21:47:04 May 31 2018
32.0 megabyte heap
Console initialized.
No fullscreen video modes available
1480k surface cache
Video Mode: 640x480x8

Sound Initialization
SDL audio spec  : 22050 Hz, 512 samples, 2 channels
SDL audio driver: OS/2 DART, 32768 bytes buffer
Audio: 16 bit, stereo, 22050 Hz, using SDLAudio
Could not initialize Timidity
SDL detected 2 CD-ROM drives
CDAudio_Init: Unable to open CD-ROM drive CDaudio01 ()
MIDI_DRV: disabled at compile time.
No joystick devices found

======== Hexen II Initialized =========

execing hexen.rc
execing default.cfg
execing config.cfg
couldn't exec autoexec.cfg
Shutting down SDL sound

Couldn't capture a screen shot, it was blank (black).
It does capture the mouse until closed, ctrl-esc brings up the window list but no mouse.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #83 on: August 06, 2025, 10:22:44 pm »
Just in case it take more, here's all the binaries and the SDL I installed in Hexen 2.

TeLLie

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: +19/-0
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #84 on: August 07, 2025, 08:17:47 pm »
Just in case it take more, here's all the binaries and the SDL I installed in Hexen 2.

It's not running

E:\uhexen2\Hexen 2>h2.exe
Hammer of Thyrion, release 1.5.10 (2025-06-20)
running on Hexen2 engine 1.29 (OS/2)
More info / sending bug reports:  http://uhexen2.sourceforge.net
basedir is: E:\uhexen2\Hexen 2
Detected byte order: LE
Found SDL version 1.2.16
Host_Init
Server using protocol 19 (Raven/MP/1.12)
Added packfile E:\uhexen2\Hexen 2\data1\pak0.pak (696 files, 34289 crc)
Added packfile E:\uhexen2\Hexen 2\data1\pak1.pak (523 files, 2995 crc)
Added packfile E:\uhexen2\Hexen 2\data1\pak3.pak (245 files, 1478 crc)
Added packfile E:\uhexen2\Hexen 2\data1\pak4.pak (102 files, 41062 crc)
Playing the registered version.
UDP, Local address: 192.168.1.204
UDP Initialized
Exe: 09:09:44 Aug  4 2025
32.0 megabyte heap
Console initialized.
No fullscreen video modes available

FATAL ERROR: No fullscreen modes available at this color depth

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5439
  • Karma: +49/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #85 on: August 07, 2025, 10:40:28 pm »
Hello

On my VM, the binaries worked with the full version of Hexen 2.
It produces sound and music. Mouse movement is choppy, but I play it with the keyboard.

But I have to run it as Dave said: "h2.exe -window -width 640 -height 480"

Regards
« Last Edit: August 07, 2025, 11:10:09 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

David McKenna

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +36/-0
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #86 on: August 07, 2025, 11:17:40 pm »
 Hexen 2 seems to work well here too - thanks Dave for your work on these games - I'm having a blast! Is there any larger window parameters that can be used? 640x480 is pretty small on my computer screen, although I can maximize the window, but then it is very pixelated and stretched. Tried 1280x960, but it didn't like that (reverted to an even smaller 320x240)...

Regards,

  EDIT: Duh! I was able to just grab a corner of the window and resize and it works fine...
« Last Edit: August 07, 2025, 11:21:10 pm by David McKenna »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5439
  • Karma: +49/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #87 on: August 07, 2025, 11:29:57 pm »
Hi Dave

I'm attaching the compiled binaries with the a readme, icons and a cmd file to run to command.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #88 on: August 08, 2025, 02:00:53 am »
Just in case it take more, here's all the binaries and the SDL I installed in Hexen 2.
It's not running
...
Quote
FATAL ERROR: No fullscreen modes available at this color depth

Have to use the screen and size parameters the 1st time you run it. 640x480 seems to be the largest screen it supports. Once running, you can go to options and set the screen up, windowed and 640x480.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5542
  • Karma: +136/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #89 on: August 08, 2025, 02:10:24 am »
Hi Dave

I'm attaching the compiled binaries with the a readme, icons and a cmd file to run to command.

Regards

Looks mostly good. Perhaps lose the glh2.exe as it doesn't seem to work, I think Doodle simply redid the Windows OW makefiles and kept the OpenGL stuff, or perhaps there is a version of SDL that it would work with.
There's also a few more tools I should compile and it doesn't look like the hexenworld binary is there. Hexenworld seems to be a multiplayer version of Hexen. I don't have an install of it and it was optimized for playing over a modem.
I also wonder about recompiling it against the SDL we have been using, the OW one, not the RPM. Haven't tried.
Edit: The cmd file is only needed until you go to the options and choose your preferred video mode out of the choices available.
Edit2: Attaching the docs directory, probably don't need all the docs.
« Last Edit: August 08, 2025, 02:16:14 am by Dave Yeo »