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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #255 on: July 30, 2026, 05:45:17 pm »
Abe is back.
It is compiled now with SDL2. Seems to be working here.
Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #256 on: July 31, 2026, 01:39:49 am »
AirStrike also worked. But I was not able to fix the "Toggle Fullscreen" option.

It is more a demo than a full game but has it's fun.

Regards
« Last Edit: July 31, 2026, 01:45:29 am by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #257 on: July 31, 2026, 08:35:40 pm »
Hello

Amoebax is also playable with SDL2. There is some issues, like the "Ready!" remains on the background.
Also, I don't know if you experience some issue with the music, or is it just my VM.

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

Dave Yeo

  • Hero Member
  • *****
  • Posts: 6060
  • Karma: +167/-1
Re: Games with older SDL and FSLIB
« Reply #258 on: August 01, 2026, 12:01:58 am »
Hi Martin, seems to work fine here. Music works.
I notice that you haven't included a link to the source (Github) in your last few ports including this one.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #259 on: August 01, 2026, 02:08:18 pm »
Thanks Dave, that's a good catch. I'm fixing it.

Here it is Anagramarama that seems to works fine.
- https://github.com/OS2World/GAME-SDL-PUZZLE-anagramarama

Regards
« Last Edit: August 01, 2026, 02:23:07 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #260 on: August 01, 2026, 07:36:38 pm »
And now Kobo Deluxe is back, with SDL2.
- No Full screen support.

-- https://github.com/OSSGames/GAME-SDL-ACTION-KoboDeluxe
« Last Edit: August 01, 2026, 07:46:03 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 6060
  • Karma: +167/-1
Re: Games with older SDL and FSLIB
« Reply #261 on: August 02, 2026, 02:04:32 am »
Hi Martin, these don't compile here. Also with the default MAKESHELL=sh.exe make clean also fails like so,
Code: [Select]
H:\tmp\GAME-SDL-ACTION-KoboDeluxe>make -f Makefile.os2 clean
del /Q src\*.obj src\*.d 2>nul
make.exe: [Makefile.os2:102: clean] Error 127 (ignored)
del /Q src\graphics\*.obj src\graphics\*.d 2>nul
make.exe: [Makefile.os2:103: clean] Error 127 (ignored)
del /Q src\sound\*.obj src\sound\*.d 2>nul
make.exe: [Makefile.os2:104: clean] Error 127 (ignored)
del /Q src\eel\*.obj src\eel\*.d 2>nul
make.exe: [Makefile.os2:105: clean] Error 127 (ignored)
del /Q kobodl.exe 2>nul
make.exe: [Makefile.os2:106: clean] Error 127 (ignored)

Here's a quick fix for the KoboDeluxe Makefile.os2,
Code: [Select]
diff --git a/Makefile.os2 b/Makefile.os2
index 27cab6c..d58cf6c 100644
--- a/Makefile.os2
+++ b/Makefile.os2
@@ -21,16 +21,16 @@ WARNFLAGS = -Wall \
             -Wno-array-bounds \
             -Wno-sequence-point

-CFLAGS   = -Zomf -Zmt -O2 -MMD -MP $(WARNFLAGS) \
+CFLAGS   = -O2 -MMD -MP $(WARNFLAGS) \
            -Isrc -Isrc/graphics -Isrc/sound -Isrc/eel -Idata/sfx \
-           -IC:/usr/include -IC:/usr/include/SDL2 \
+           -I/@unixroot/usr/include -I/@unixroot/usr/include/SDL2 \
            $(DEFINES)
 CXXFLAGS = $(CFLAGS) -Wno-literal-suffix

-LDFLAGS  = -Zomf -Zmt -Zstack 512
-LIBS     = C:/usr/lib/SDL2_dll.a \
-           C:/usr/lib/SDL2_image_dll.a \
-           C:/usr/lib/SDL2_mixer_dll.a
+LDFLAGS  = -Zomf -Zhigh-mem -Zmap
+LIBS     = /@unixroot/usr/lib/SDL2_dll.a \
+           /@unixroot/usr/lib/SDL2_image_dll.a \
+           /@unixroot/usr/lib/SDL2_mixer_dll.a

 TARGET   = kobodl.exe

@@ -99,11 +99,11 @@ $(TARGET): $(ALLOBJS) src/kobodl.def
        $(CC) $(CFLAGS) -c -o $@ $<

 clean:
-       -del /Q src\*.obj src\*.d 2>nul
-       -del /Q src\graphics\*.obj src\graphics\*.d 2>nul
-       -del /Q src\sound\*.obj src\sound\*.d 2>nul
-       -del /Q src\eel\*.obj src\eel\*.d 2>nul
-       -del /Q $(TARGET) 2>nul
+       -rm -rf src\*.obj src\*.d 2>nul
+       -rm -rf src\graphics\*.obj src\graphics\*.d 2>nul
+       -rm -rf src\sound\*.obj src\sound\*.d 2>nul
+       -rm -rf src\eel\*.obj src\eel\*.d 2>nul
+       -rm -rf $(TARGET) 2>nul

 .PHONY: all clean

Big breaker was using C: instead of /@unixroot. My @unixroot is W:
CFLAGS, -Zomf is optional, I don't usually use it in CFLAGS as it slightly slows things down. Ideally without the -Zomf, the objects should use .o as a suffix instead of .obj
 -Zmt is an EMXism (use multithread library) that doesn't make sense with kLIBC, though it is accepted and ignored for compatibility.
LDFLAGS, same with -Zmt as above. -Zstack removed as the DEF file has a stack directive. Also really the defaults are probably fine, personal preference. added -Zhigh-mem to use high memory when possible. Added -Zmap for help with debugging, also can build an XQS with it, "mapxqs kobodl.map" Mapfile currently isn't cleaned, easy to fix.
Use rm -rf instead of DEL to clean.
Most of these are suggestions, though the hard coded C: is a deal breaker here.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #262 on: August 02, 2026, 02:56:19 am »
Thanks for that finding Dave.
It is fixed: https://github.com/OS2World/GAME-SDL-ACTION-KoboDeluxe

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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #263 on: August 02, 2026, 03:09:33 am »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 6060
  • Karma: +167/-1
Re: Games with older SDL and FSLIB
« Reply #264 on: August 02, 2026, 03:38:24 am »
Thanks for that finding Dave.
It is fixed: https://github.com/OS2World/GAME-SDL-ACTION-KoboDeluxe

Regards

Thanks Martin, one last change to the Makefile.os2, run
Code: [Select]
sed -i s/.obj/.o/g Makefile.os2
to change the object suffix to .o, which is standard for a.out objects.
Might want to consider adding a kobodl.rc containing,
Code: [Select]
/* wrc kobodl.rc kobodl.exe */
ICON 1 DISCARDABLE "kobodl.ico"
and asking the ai the best way to add it to the makefile running it on the $target at the end of the build.
The code itself seems quite good and the program seems to run fine.
You're doing a good job, just have to keep on top of the ai.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 6060
  • Karma: +167/-1
Re: Games with older SDL and FSLIB
« Reply #265 on: August 02, 2026, 03:49:10 am »
Now here it is Kuklomenos.
- https://github.com/OS2World/GAME-SDL-ACTION-Kuklomenos

This builds and runs fine. Not sure about the sounds, likely just the authors weird choice.
The LDFLAGS could be adjusted as I mentioned but it is plenty good enough like this.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #266 on: August 02, 2026, 03:19:50 pm »
Thanks Dave for trying it out.
I also added the rc to include the icon.

SnakeMe also worked.
-- https://github.com/OS2World/GAME-SDL-PUZZLE-Snakeme

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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #267 on: August 02, 2026, 04:24:45 pm »
Hello

I'm going to put a marker here, just to indicate that I had uploaded all the files posted in Github and hobbes.os-2.in.

 ;D ;D ;D ;D ;D ;D :) :) :) :) :) ;D ;D ;D ;D :D :D :D :D :D :D :) :) :) :) :) :);D ;D ;D ;D ;D ;D :) :) :) :) :) ;D ;D ;D ;D :D :
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #268 on: August 02, 2026, 11:45:15 pm »
Now Apricots.

AI change it to SDL2 and replaces the OpenAL for SDL.

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

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5881
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • Martin's Personal Blog
Re: Games with older SDL and FSLIB
« Reply #269 on: August 12, 2026, 05:20:38 am »
Hello

Here it is sdlZombies, migrated to SDL2, Enabled fullscreen with "Alt+Enter", and increased the window size.
Let me know if it works on your side.

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