Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dave Yeo

Pages: 1 [2] 3 4 ... 378
16
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 06:06:44 pm »
SDLroids looks good. I'll look at the sdlZombies later

17
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 04:03:10 pm »
Sure. There's no SDLIMAGE requirement, and perhaps a link to the OS2world repository.
Edit: Pushed my changes

18
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 03:56:19 am »
So removed the inline statements on the functions that were missing. All errors are gone except,
Code: [Select]
sdl.c: In function 'Pause':
sdl.c:892:9: warning: variable 'Pt' set but not used [-Wunused-but-set-variable]

  892 |   POINT Pt;
         |             ^~

Which causes errors related to Pt.x and Pt.y if commented out.
I did have those other warnings previously even though the build succeeded so I figure good to fix the warnings anyways and removing some inlines shouldn't matter on most all hardware.
Here's the current binary. Martin, if no one comments with a better way fix, should use this binary as it corresponds to the source changes I'll push tomorrow after renewing my password token.

19
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 03:33:42 am »
Well, I cleaned up all the warnings related to static and still get the same missing symbols.
Guess put them back and remove the inline statements.

20
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 10, 2026, 12:36:52 am »
OK, there are warnings like,
Code: [Select]
sdl.c: At top level:
sdl.c:548:3: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
  548 |   current_y=y;
      |   ^~~~~~~~~
sdl.c:547:3: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
  547 |   current_x=x;
      |   ^~~~~~~~~
sdl.c:546:22: warning: 'current_y' is static but used in inline function 'LineTo' which is not static
  546 |   drawline(current_x,current_y,x,y);
      |                      ^~~~~~~~~
sdl.c:546:12: warning: 'current_x' is static but used in inline function 'LineTo' which is not static
  546 |   drawline(current_x,current_y,x,y);

But I can not see where the static comes from,
Code: [Select]
static int is_poly=0;
inline void LineTo(int x,int y)
{
  x = convx(x); y = convy(y);
  drawline(current_x,current_y,x,y);
  current_x=x;
  current_y=y;
}

21
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 11:41:22 pm »
I don't like editing generated makefiles so trying to build just by passing arguments to configure, like so.
Code: [Select]
configure CFLAGS=-DHAVE_LIBSDL_MIXER 'LDFLAGS=-Zomf -Zhigh-mem -Zmap' 'LIBS=-lSDL_mixer'
Doesn't make a difference if I use -Zhigh-mem and/or -Zmap.
This results in this when running make,
...
Code: [Select]
gcc  -DHAVE_LIBSDL_MIXER -Ih:/tmp/SDL/h -Ih:/tmp/SDL/h/SDL  -Zomf -Zhigh-mem -Zmap -o sdlroids.exe hyperoid.o roidsupp.o sdlsound.o sdl.o petopt.o getargs.o rand.o  -lm -lSDL_mixer -Lh:/tmp/SDL/lib -Zomf -lsdl12
...
Code: [Select]
Error! E2028: _ifloor is an undefined reference
Error! E2028: _SDL_GetPixel is an undefined reference
Error! E2028: _iceil is an undefined reference
Error! E2028: _MoveTo is an undefined reference
Error! E2028: _LineTo is an undefined reference
Error! E2028: _drawline is an undefined reference

These symbols are all in sdl.o and in common are all inline in sdl.c. Weird, especially that without the CFLAGS entry the build succeeds, though without sound.

22
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 10:24:33 pm »
Ok, edited the makefile's LDFLAGS instead of trying to pass the libs in the environment and seems to work, almost gave the wife a heart attack as I had the volume up :) You'll need to use exehdr to make it a PM program though I could add a def.

23
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 06:01:10 am »
I enabled sound but,
Code: [Select]
[H:\tmp\GAME-SDL-ACTION-SDLRoids]sdlroids

Killed by SIGFPE
pid=0x3627 ppid=0x029e tid=0x0001 slot=0x00c4 pri=0x0200 mc=0x0001 ps=0x0010
H:\TMP\GAME-SDL-ACTION-SDLROIDS\SDLROIDS.EXE
cs:eip=0003:00000008      ss:esp=0000:20000000      ebp=1f380053
 ds=2003013c      es=0000      fs=0013fc14      gs=0000     efl=20000218
eax=0013fd28 ebx=1ffc9d7c ecx=0013fd3c edx=0013fd60 edi=00000000 esi=0013ff9c
Creating 3627_01.TRP
Moved 3627_01.TRP to W:\var\log\app\69601a22-3627_01-SDLROIDS-exceptq.txt

And I can't see why it crashes.
Did sound work on the original? I had to add #define HAVE_LIBSDL_MIXER 1 to config.h. It seems it was dead code before I added it as it was only in sdlsound.c while I would expect it to get defined by configure.

24
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 04:50:18 am »
Try,
Code: [Select]
exehdr /PMTYPE:PM sdlroids.exe

25
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 09, 2026, 12:37:13 am »
First try attached. Can't seem to get it to use sdlmixer, I'll look more. It is supposed to fall back to SDL for sound but may be *nix centered.

26
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 08, 2026, 08:59:18 pm »
Good, pushed last changes to enable sound.

27
Article Discussions / Re: Games with older SDL and FSLIB
« on: January 08, 2026, 05:27:06 pm »
Hmm, my bad. Try this one.

28
Article Discussions / Re: Games with older SDL and FSLIB
« 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?

29
Article Discussions / Re: Games with older SDL and FSLIB
« 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.

30
Article Discussions / Re: Games with older SDL and FSLIB
« 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

Pages: 1 [2] 3 4 ... 378