PureMemory Deluxe
Here I am, brace yourself !
On my usual XP SP3 I use everyday for develop/internet/music etc (let's call this SYSTEM A):
134321 = init DirectX 7
134321 = init 3D hardware
134321 = init keyboard
134321 = init mouse
So the problem seems to be with init sound ?
1) Sounds work ok on SYSTEM A using other programs, but I never tried to make a sound using PB, I can try if you like... or if you want to give me a piece of code from your program to try/debug.
2) If I run your program from another Windows XP on the same PC (let's call this SYSTEM B, only a different partition/same hardware) and with the same audio driver (same version), I get this:
14:01:01 = init DirectX 7
14:01:01 = init 3D hardware
14:01:01 = init keyboard
14:01:01 = init mouse
14:01:01 = init sound
14:01:01 = load component: minizip
14:01:01 = load component: animsprite
14:01:01 = load component: imagefont
14:01:01 = load component: highscore
14:01:01 = load component: zip access
14:01:01 = load component: interface
14:01:01 = read settings
14:01:01 = open screen
14:01:01 = prepare resources
14:01:01 = load sounds
14:01:01 = load music
14:01:01 = load graphics
and then silently quits.
But wait, there is more.
If I try the release version of your program, the unpacked one:
on SYSTEM A keeps quitting
on system B WORKS!
I'm sure this will help you a lot, LOL !
ADDENDUM: I tried Microsoft's dxdiag on SYSTEM A:, it passed all the sound tests.
EDIT: wait a moment, in the first log, where are the ":" between the numbers ???
EDIT2: something really peculiar is happening here, now the debug version, on SYSTEM A, doesn't even create the log anymore, just quits.
I'll try to reboot to see if changes.
I don't know what to say, doesn't create the log anymore (?)
On my usual XP SP3 I use everyday for develop/internet/music etc (let's call this SYSTEM A):
134321 = init DirectX 7
134321 = init 3D hardware
134321 = init keyboard
134321 = init mouse
So the problem seems to be with init sound ?
1) Sounds work ok on SYSTEM A using other programs, but I never tried to make a sound using PB, I can try if you like... or if you want to give me a piece of code from your program to try/debug.
2) If I run your program from another Windows XP on the same PC (let's call this SYSTEM B, only a different partition/same hardware) and with the same audio driver (same version), I get this:
14:01:01 = init DirectX 7
14:01:01 = init 3D hardware
14:01:01 = init keyboard
14:01:01 = init mouse
14:01:01 = init sound
14:01:01 = load component: minizip
14:01:01 = load component: animsprite
14:01:01 = load component: imagefont
14:01:01 = load component: highscore
14:01:01 = load component: zip access
14:01:01 = load component: interface
14:01:01 = read settings
14:01:01 = open screen
14:01:01 = prepare resources
14:01:01 = load sounds
14:01:01 = load music
14:01:01 = load graphics
and then silently quits.
But wait, there is more.
If I try the release version of your program, the unpacked one:
on SYSTEM A keeps quitting
on system B WORKS!
I'm sure this will help you a lot, LOL !
ADDENDUM: I tried Microsoft's dxdiag on SYSTEM A:, it passed all the sound tests.
EDIT: wait a moment, in the first log, where are the ":" between the numbers ???
EDIT2: something really peculiar is happening here, now the debug version, on SYSTEM A, doesn't even create the log anymore, just quits.
I'll try to reboot to see if changes.
I don't know what to say, doesn't create the log anymore (?)
Last edited by luis on Wed Mar 04, 2009 2:49 pm, edited 1 time in total.
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
WTF is going on?
I'm totally confused now ..
I have updated the debug version a couple of times. Try now (.EXE only):
http://www.codedreality.de/tl_files/gam ... _Debug.zip

I'm totally confused now ..

I have updated the debug version a couple of times. Try now (.EXE only):
http://www.codedreality.de/tl_files/gam ... _Debug.zip
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Works on SYSTEM B. Launched many times to be sure, tried a little, ok, works.Fluid Byte wrote: I have updated the debug version a couple of times. Try now (.EXE only):
On SYSTEM A it doesn't write the log. Nothing. Quits.
1) Can you try to put a log write on the very first line of executed code ?
2) What kind of code is executed before the first log write, currently ?
3) Is this a exe generated by pb or is processed in some way ? I saw a "shrink" string inside, and the bulk of the code seem compacted. If this is the case could be something in the unpack code ?
It looks like a stray pointer problem or something similar.
I tried to run the exe and in the meantime I launched a virtual machine (read: allocated a lot of ram)
Keeping launching your exe while the vm was loading, at a certain point your exe wrote a log
15:30:13 = init DirectX 7
15:30:13 = init 3D hardware
15:30:13 = init keyboard
15:30:13 = init mouse
the next run, nothing.
I start closing the vm, and start running your exe repeatedly, at a certain point it wrote another log, the same as above.
The vm unloaded and your program stopped writing logs.
So, changing my memory load, your exe is loaded at different offset in memory, and maybe the stray pointer is affecting it in different ways, so the different behaviour.
Maybe I'm wrong, but it looks something of that kind to me (that, or my computer is possessed).
I tried to run the exe and in the meantime I launched a virtual machine (read: allocated a lot of ram)
Keeping launching your exe while the vm was loading, at a certain point your exe wrote a log
15:30:13 = init DirectX 7
15:30:13 = init 3D hardware
15:30:13 = init keyboard
15:30:13 = init mouse
the next run, nothing.
I start closing the vm, and start running your exe repeatedly, at a certain point it wrote another log, the same as above.
The vm unloaded and your program stopped writing logs.
So, changing my memory load, your exe is loaded at different offset in memory, and maybe the stray pointer is affecting it in different ways, so the different behaviour.
Maybe I'm wrong, but it looks something of that kind to me (that, or my computer is possessed).
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
This is how I do it at the moment:luis wrote:1) Can you try to put a log write on the very first line of executed code ?
2) What kind of code is executed before the first log write, currently ?
Code: Select all
#L2F_ENABLED = 1
Macro L2F_INIT (sFileName, flgAppend)
CompilerIf Defined(L2F_ENABLED, #PB_Constant)
_DebugToFile ("", sFileName, flgAppend)
CompilerEndIf
EndMacro
Macro L2F (sText)
CompilerIf Defined(L2F_ENABLED, #PB_Constant)
_DebugToFile (sText)
CompilerEndIf
EndMacro
CompilerIf Defined(L2F_ENABLED, #PB_Constant)
Procedure _DebugToFile (sText.s, sFileName.s = "", flgAppend = #False)
Static nFileNum
Static sDebugFileName.s
If IsFile(nFileNum) = 0
sDebugFileName = GetPathPart(ProgramFilename())
If Len(sFileName)
sDebugFileName + sFileName
Else
sDebugFileName + "debug.log"
EndIf
If flgAppend
nFileNum = OpenFile(#PB_Any, sDebugFileName)
If nFileNum
FileSeek(nFileNum, Lof(nFileNum))
EndIf
Else
nFileNum = CreateFile(#PB_Any, sDebugFileName)
EndIf
EndIf
If Len(sText)
sText = FormatDate("%hh:%ii:%ss = ", Date()) + sText
EndIf
If IsFile(nFileNum)
WriteString(nFileNum, sText + #CRLF$)
FlushFileBuffers(nFileNum)
EndIf
EndProcedure
CompilerEndIf
EnableExplicit
If InitSprite() = 0 : MessageRequester("Error","Failed to initialise graphics output.",16) : End : EndIf : L2F("init: graphics")
If InitSprite3D() = 0 : MessageRequester("Error","Failed to initialise 3D acceleration.",16) : End : EndIf : L2F("init: 3D acceleration")
If InitKeyboard() = 0 : MessageRequester("Error","Failed to initialise keyboard input.",16) : End : EndIf : L2F("init: keyboard")
If InitMouse() = 0 : MessageRequester("Error","Failed to initialise mouse input.",16) : End : EndIf : L2F("init: mouse")
If InitSound() = 0 : MessageRequester("Error","Failed to initialise sound output.",16) : End : EndIf : L2F("init: sound")
; rest of the code ....
Indeed. The program is packed and protected with various checks.luis wrote:3) Is this a exe generated by pb or is processed in some way ?
PS: updated debug version again, please redownload
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
From screenshot's game looking very good. Not sure if this helps, but ill post anyway. Here is what i get, when i run updated debug exe.
http://img91.imageshack.us/img91/2954/errore.png
And debug.txt.
Edit, added more info.
On fresh installed Windows xp home, SP1, DirectX 8.1, System memory 128 mb ram. Processor AMD Duron, MMX, 902MHz.
Gfx card is Nvidia Riva TNT2 model 64 and Gfx card memory: 32MB.
http://img91.imageshack.us/img91/2954/errore.png
And debug.txt.
Code: Select all
20:58:29 = create logfile
20:58:29 = init: graphics
20:58:29 = init: 3D acceleration
20:58:29 = init: keyboard
20:58:29 = init: mouse
20:58:29 = init: sound
20:58:30 = extrn: minizip
20:58:30 = extrn: animsprite
20:58:30 = extrn: imagefont
20:58:30 = extrn: highscore
20:58:30 = extrn: zip access
20:58:30 = extrn: interface
20:58:30 = read settings
20:58:30 = open screen
20:58:30 = prepare resources
20:58:30 = zip: find -> tile.wav (0)
20:58:30 = zip: catch -> tile.wav (0)
20:58:30 = sfx: catch -> tile.wav (0)
20:58:30 = zip: find -> score.wav (0)
20:58:30 = zip: catch -> score.wav (0)
20:58:30 = sfx: catch -> score.wav (0)
20:58:30 = zip: find -> hover.wav (0)
20:58:30 = zip: catch -> hover.wav (0)
20:58:30 = sfx: catch -> hover.wav (0)
20:58:30 = zip: find -> select.wav (0)
20:58:30 = zip: catch -> select.wav (0)
20:58:30 = sfx: catch -> select.wav (0)
20:58:30 = zip: find -> buzz.wav (0)
20:58:30 = zip: catch -> buzz.wav (0)
20:58:30 = sfx: catch -> buzz.wav (0)
20:58:30 = zip: find -> applause.wav (0)
20:58:30 = zip: catch -> applause.wav (0)
20:58:30 = sfx: catch -> applause.wav (0)
20:58:30 = zip: find -> combo.wav (0)
20:58:30 = zip: catch -> combo.wav (0)
20:58:30 = sfx: catch -> combo.wav (0)
20:58:30 = zip: find -> gameover.wav (0)
20:58:30 = zip: catch -> gameover.wav (0)
20:58:30 = sfx: catch -> gameover.wav (0)
20:58:30 = zip: find -> about.ogg (0)
20:58:30 = zip: catch -> about.ogg (0)
20:58:30 = sfx: catch -> about.ogg (0)
20:58:30 = zip: find -> game.ogg (0)
20:58:30 = zip: catch -> game.ogg (0)
20:58:30 = sfx: catch -> game.ogg (0)
20:58:30 = zip: find -> menu.ogg (0)
20:58:30 = zip: catch -> menu.ogg (0)
20:58:30 = sfx: catch -> menu.ogg (0)
20:58:30 = set volume
20:58:30 = gfx: transparent color
20:58:30 = zip: find -> checkerbox.png (0)
20:58:30 = zip: catch -> checkerbox.png (0)
20:58:30 = gfx: catch -> checkerbox.png
On fresh installed Windows xp home, SP1, DirectX 8.1, System memory 128 mb ram. Processor AMD Duron, MMX, 902MHz.
Gfx card is Nvidia Riva TNT2 model 64 and Gfx card memory: 32MB.
Last edited by Mark.s on Fri Mar 06, 2009 6:35 am, edited 4 times in total.
Very nice
Good work,
game is very nice
sorry for my english
game is very nice
sorry for my english

- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
128MB? For the system or the GFX card?Mark.s wrote:On fresh installed Windows xp home, SP1, DirectX 8.1, memory 128 mb ram. Processor AMD Duron, MMX, 902MHz.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Same problem here (Vista 32-bit), but when I change from windowed screen to full screen (and vice versa), the text is shown until the next time I run the gamenco2k wrote:works really nice here, but the options font is missing

But surely it's an excellent work Fluid Byte

- Fluid Byte
- Addict
- Posts: 2336
- Joined: Fri Jul 21, 2006 4:41 am
- Location: Berlin, Germany
Update v1.3
- Fixed: "invisible font" bug on Vista
- Fixed: time was not stoped/cached in "TimeMode" when the game loses focus
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?