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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #120 on: September 27, 2025, 05:05:43 am »
Hi David

SDL is buffered (dive) and so the picture isn't on the screen in the classic sense. The black screen in Gotcha and other screen capture app is expected as they would need to read the dive buffer to get the image.

Gregg

OK, thanks for the explanation.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #121 on: September 27, 2025, 05:54:11 pm »
Thanks Dave

It is working fine here now.

I upload the package on github, since I have a problems uploading bigger files on these forum. (I'm checking on that, since we updated PHP, maybe there is a setting that needs to be set).

Can you please update any change to the makefile to this repo? Let me know if you are ok with the readme.
- https://github.com/OS2World/GAME-SDL-EDUCATIONAL-Marryampic2

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

Wim Brul

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +26/-0
    • View Profile
    • Wim's home page
Re: Games with older SDL and FSLIB
« Reply #122 on: September 28, 2025, 10:23:45 am »
There is DIVECapt_2002-03-13.zip on hobbes which captures the full OS/2 desktop.

DIVECAPT /H shows help information. Alas not readable on my system...

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #123 on: September 28, 2025, 07:11:09 pm »
Thanks Dave

It is working fine here now.

I upload the package on github, since I have a problems uploading bigger files on these forum. (I'm checking on that, since we updated PHP, maybe there is a setting that needs to be set).

Can you please update any change to the makefile to this repo? Let me know if you are ok with the readme.
- https://github.com/OS2World/GAME-SDL-EDUCATIONAL-Marryampic2

Regards

The readme looks fine though I did link to Digi's SDL12.dll rather then the RPM, at least I meant to.
I'm having a problem pushing my change, which is basically just a new Makefile.os2. I've tried a bunch of times including cloning the repository 3 times and last I tried simply rm Makefile.os2 and pushing that. Always get this error,
Code: [Select]
C:\...\GAME-SDL-EDUCATIONAL-Marryampic2>git push
Username for 'https://github.com':
Password for 'https://dryeo@github.com':
fatal: protocol error: bad line length character: ^14a
fatal: bad revision '1247678318bec94f1f3533514230f35ce3997'
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
error: failed to push some refs to 'https://github.com/OS2World/GAME-SDL-EDUCATIONAL-Marryampic2'
Makefile attached if you want to try pushing it.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #124 on: September 28, 2025, 07:18:23 pm »
There is DIVECapt_2002-03-13.zip on hobbes which captures the full OS/2 desktop.

DIVECAPT /H shows help information. Alas not readable on my system...

Thanks, that does work. Having a hard time translating the Japanese. When you run DIVECAPT /h, a directory is created, DIVECAPT with the help in text and html, the html displays fine in SeaMonkey and looks like japanese but Google says it can't translate it. Closing the editor also deletes the directory so keep the editor open to play with the HTML.
Perhaps Google hates,
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//Microsoft//DTD Internet Explorer 3.0 HTML//EN">

When the text is mostly Japanese.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #125 on: September 29, 2025, 05:34:02 am »
Thanks Dave

I updated the makefile on "https://github.com/OS2World/GAME-SDL-EDUCATIONAL-Marryampic2".

Can you please now check Pingus:
- https://github.com/Pingus/pingus

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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #126 on: October 04, 2025, 06:26:35 am »
Can you please now check Pingus:
- https://github.com/Pingus/pingus

Hi Martin, I've given up on Pingus. The latest has a hard requirement of OpenGL, went back a couple of versions to before they used OpenGL. It has a dependency on Boost, https://www.boost.org/ which does claim to support OS/2 and likely did at one point. I can build it but it crashes with a sigabort. Using the latest GCC and a debug build the problem is clear and I can't see how to fix.
Code: [Select]
src/engine/jamgram.cpp: In function 'int yyparse()':
src/engine/jamgram.cpp:2282:18: warning: 'void free(void*)' called on unallocated object 'yyssa' [-Wfree-nonheap-object]
src/engine/jamgram.cpp:1152:16: note: declared here

Building is done. To install, run:

    ./b2 install --prefix=<DIR>


[H:\tmp\boost_1_89_0\tools\build]b2
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string: construction from null is not valid

Killed by SIGABRT
pid=0x4442 ppid=0x3226 tid=0x0001 slot=0x0011 pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\BOOST_1_89_0\TOOLS\BUILD\B2.EXE
Creating 4442_01.TRP
Moved 4442_01.TRP to W:\var\log\app\68e0392b-4442_01-B2-exceptq.txt

The trp does point to jamgram.cpp being the issue. Even tried an earlier version, same problem.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #127 on: October 06, 2025, 11:46:12 pm »
Thanks Dave for looking at it.

Can you please check SDLInvaders?
-- https://github.com/OSSGames/GAME-SDL-ACTION-SDLInvaders

Regards
« Last Edit: October 06, 2025, 11:50:41 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #128 on: January 07, 2026, 09:42:26 pm »
Happy New Year to All.

Hello Dave

Abusing of your time and compile knowledge, can you please check:
- https://github.com/OSSGames/GAME-SDL-ACTION-SDLInvaders

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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #129 on: January 08, 2026, 01:21:36 am »
Hi Martin.
The source is missing some png's. Also some jpg and wav files
Code: [Select]
make[2]: *** No rule to make target 'alien_top5.png', needed by 'all-am'.  Stop.

The full list of png's,  jpg's and wav's is in data/makefile.am with most missing in data/

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #130 on: January 08, 2026, 02:42:42 am »
Thanks Dave

I included some other .png and .wav that were on the /data of the binary.
Check again: https://github.com/OSSGames/GAME-SDL-ACTION-SDLInvaders/

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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #131 on: January 08, 2026, 03:05:16 am »
OK, compile finishes. Running make install then trying to run the binary gives.
Code: [Select]
H:\usr\local\bin>SDLInvaders.exe

SDLInvaders Version 0.8.0

libpng error: IDAT: CRC error

Bad png?
Popuplog has,
Code: [Select]
01-07-2026  18:00:49  SYS3170  PID 0cdc  TID 0001  Slot 00ae
H:\USR\LOCAL\BIN\SDLINVADERS.EXE
c0000026
1d1aab6c
EAX=00000000  EBX=00000001  ECX=00000053  EDX=026436f4
ESI=026436f4  EDI=026436f4
DS=0053  DSACC=d0f3  DSLIM=b7ffffff
ES=0053  ESACC=d0f3  ESLIM=b7ffffff
FS=150b  FSACC=00f3  FSLIM=00000030
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1ffca0e3  CSACC=d0df  CSLIM=b7ffffff
SS:ESP=0053:0012f15c  SSACC=d0f3  SSLIM=b7ffffff
EBP=0012f27c  FLG=00000246

SDLIMAGE.DLL 0002:0000ab6c

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #132 on: January 08, 2026, 03:55:43 am »
Hmm, downloaded the version on hobbes, moved the DLL's out of the way and replaced the binary and it ran.
Copying the data files to my install still gave the same failure. Weird.
My binary attached.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5582
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #133 on: January 08, 2026, 02:41:38 pm »
Thanks Dave

It is working here, I'm attaching the file on how I want to upload it to hobbes.

I had uploaded the package on this os2world fork, if you changed something to the make file, please post it there.
- https://github.com/OS2World/GAME-SDL-ACTION-SDLInvaders

Regards

Update: old file removed.
« Last Edit: January 08, 2026, 06:38:20 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5637
  • Karma: +143/-1
    • View Profile
Re: Games with older SDL and FSLIB
« Reply #134 on: January 08, 2026, 04:00:13 pm »
I hacked configure.in to remove the sdlimage and sdlmixer tests. Pushed the updated auto files, and a brief note on how I built. "make 'LIBS=-lsdlimage -lsdlmixer -lsdl12'"
I never did test for sound, did you?