International BlitzMax/DirectX Test - Please Help

Miscellaneous Forums/General Discussion/International BlitzMax/DirectX Test - Please Help

Hi, I found out that a couple of international users seem to have trouble running a basic BlitzMax directX screen even though they have DirectX9 installed (and correct Radeon drivers) on a modern XP PC. OpenGL works fine. I would like to know if it's something on their PCs specifically, or if it's anything to do with their XPs being set in Greek and Finnish modes (this could be a fluke though).

So I've made this tiny test app:

http://www.greyaliengames.com/framework/directxtest.zip (578Kb)

And I wonder if you can try it on your PC. It should show a black full-screen 800x600x32 bit screen running at 60Hz with some text on it. Press Escape to exit.

If you don't see the black screen with text (you may see an access violation instead), please let me know your system specs and international settings. Thanks very much.

For those of you who are interested, this is the code:

Strict
SetGraphicsDriver D3D7Max2DDriver()
Local OK:TGraphics = Null
Local ScreenWidth=800
Local ScreenHeight=600
Local Depth=32

If GraphicsModeExists(ScreenWidth, ScreenHeight,Depth) Then
	OK = Graphics(ScreenWidth, ScreenHeight,Depth,60)
EndIf

If OK = Null Then End

While Not KeyHit(KEY_ESCAPE)
	Cls
	DrawText("Does this work?", 10, 10)
	DrawText("Press <Escape>", 10, 30)
	Flip
Wend


I had the same problem with oz and some debug code I wrote returned "Attempt to access field or method of null object", and this seems to be occuring on the GraphicsModeExistsline probably because D3D7Max2DDriver() is returning null and thus no current driver is being set. So why do these PCs that play other games fail to set the DirectX driver in BMax? Any ideas? Look at these screenshots:




Thanks for helping me test this. When solved, it will help everyone out.

..working fine here...

nVidia 5600FX, 256MB VRAM, WinXP SP2, P4 2.4 GHz, 1Gig RAM, Dx9.0c

Thanks. My Greek contact reports that nothing happens (i.e. the code has bombed and cos Max doesn't output the error unless you Catch and display it, he sees nothing)

Thing is, if they have DirectX installed why won't Bmax register the driver. Perhap another test app need to be made in B3D to compare ... anyone? BPlus is only DirectX 1 so less relevent.

It' ok here.
Athlon64 x2 3800+, 1Gig RAM, Geforce 6600, Dx9.0c

It works in Egypt :)

Works under 768MB Ram, GeForce FX5200, WinXP SP2 Chinese

works in germany

works in Norway :p

A shot in the dark...

http://www.blitzbasic.com/Community/posts.php?topic=64863

??

Thanks all, so we know it's probably not an international issue then! But a driver/BMax issue.

Thanks Yan. I've haven't done a sync mods so that could be related. But I'm not sure... Basically I've made a workaround so that if D3D7Max2DDriver() returns null it uses OpenGL and if that returns null it errors. This "auto-detection" worked on the Greek PC.

I've just tried it on a rather obscure Croatian version of Windows and it works OK.

Barney

haha OK cool. I don't think it's an Internation problem any more, just some DirectX driver anomaly...