PureMemory Deluxe

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

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 (?)
Last edited by luis on Wed Mar 04, 2009 2:49 pm, edited 1 time in total.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

WTF is going on? :lol:

I'm totally confused now .. :x

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?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Fluid Byte wrote: I have updated the debug version a couple of times. Try now (.EXE only):
Works on SYSTEM B. Launched many times to be sure, tried a little, ok, works.

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 ?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

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).
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

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 ?
This is how I do it at the moment:

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 ....
luis wrote:3) Is this a exe generated by pb or is processed in some way ?
Indeed. The program is packed and protected with various checks.

PS: updated debug version again, please redownload
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Sorry, no changes: no start, no log.

Would be interesting to see if a version not packed works, but probably it's not feasible.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Send you PM :wink:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Mark.s
User
User
Posts: 16
Joined: Wed Dec 17, 2008 1:43 pm
Location: Finland

Post by Mark.s »

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.

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
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.
Last edited by Mark.s on Fri Mar 06, 2009 6:35 am, edited 4 times in total.
Wladek
User
User
Posts: 98
Joined: Mon Feb 23, 2009 4:01 pm
Location: Poland
Contact:

Very nice

Post by Wladek »

Good work,
game is very nice

sorry for my english :oops:
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

Mark.s wrote:On fresh installed Windows xp home, SP1, DirectX 8.1, memory 128 mb ram. Processor AMD Duron, MMX, 902MHz.
128MB? For the system or the GFX card?
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Wow, looks rad :)

On my vista64 system there is no text on any of the buttons tho, so it's a little difficult to navigate.

cheers
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

works really nice here, but the options font is missing.

Image

Vista Premium 64 + GeForce 8800 GTS 512

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Post by Arctic Fox »

nco2k wrote:works really nice here, but the options font is missing
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 game :? - you do that with the third checkbox in the Options.

But surely it's an excellent work Fluid Byte :o
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

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?
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post by luis »

Still doesn't start on my "sensible system" A, but I guess it was expected, after our experiments.

Just to let you know.

Cheers.
Post Reply