Has anyone else had issues involving broken high scores?
Sometimes (I'll even go as far as to say 'often') my high scores just don't get saved.
My scores.raw file is just 256 bytes:
Directory of I:\games\angsrc\trunk\lib\apex
03/25/2008 12:31 AM <DIR> .
03/25/2008 12:31 AM <DIR> ..
03/19/2008 08:36 PM <DIR> .svn
03/25/2008 12:31 AM 0 scores.lok
03/25/2008 12:31 AM 256 scores.raw
2 File(s) 256 bytes
I could swear there is something broken with fseek.
The fseek returns 0 for any (!!) offset.
highscore_read either returns the first record (if the seek is to 0 or 128)
or fails.
Side note: in highscore_add, there should probably be an error= TRUE
if highscore_read() fails. On my box it just keeps looping around,
with highscore_seek always returning 1, and highscore_read failing,
until i = MAX_HISCORES.
suck.
[Edit]
nightly build seems to work for me for some reason.
I'm compiling myself with cygwin.
I'm setting MINGW=yes
make -f Makefile.win
and I changed -O to -ggdb, and removed -s to make it debuggable.
I don't see why any of that is causing the failure, though.
- Frank
Sometimes (I'll even go as far as to say 'often') my high scores just don't get saved.
My scores.raw file is just 256 bytes:
Directory of I:\games\angsrc\trunk\lib\apex
03/25/2008 12:31 AM <DIR> .
03/25/2008 12:31 AM <DIR> ..
03/19/2008 08:36 PM <DIR> .svn
03/25/2008 12:31 AM 0 scores.lok
03/25/2008 12:31 AM 256 scores.raw
2 File(s) 256 bytes
I could swear there is something broken with fseek.
The fseek returns 0 for any (!!) offset.
highscore_read either returns the first record (if the seek is to 0 or 128)
or fails.
Side note: in highscore_add, there should probably be an error= TRUE
if highscore_read() fails. On my box it just keeps looping around,
with highscore_seek always returning 1, and highscore_read failing,
until i = MAX_HISCORES.
suck.
[Edit]
nightly build seems to work for me for some reason.
I'm compiling myself with cygwin.
I'm setting MINGW=yes
make -f Makefile.win
and I changed -O to -ggdb, and removed -s to make it debuggable.
I don't see why any of that is causing the failure, though.
- Frank
Comment