Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / why does my game crach?

Author
Message
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 1st Jul 2009 14:36
why does my program crash
I'am testing a game menu

here is the code
no media needed



thanx for help
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 1st Jul 2009 15:50
Beacause of the set display mode, I suppose.
You should verify that the display mode you want is indeed supported before trying to set it.

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 1st Jul 2009 16:00
I also get an eror running that code, when you switch to and from menu mode a few times.

Windows error message about "dbpromatrixdebug.dll".

Is that the error you get Destroyer? are you also running the 7.4beta update? I think I read something about that file causing problems in the 7.4 beta thread.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 1st Jul 2009 16:10
when you delete the display mode in the viewmenu function it works fine

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 1st Jul 2009 16:30
Nice

I think my brain is struggling with the heat (34 degrees yesterday according to the readout in my car); I was also wrong about that file and the beta forum.

I think maybe I'm gonna stick to reading forums only until it gets back to a sensible temperature outside!

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 1st Jul 2009 19:48
Quote: "I think maybe I'm gonna stick to reading forums only until it gets back to a sensible temperature outside!"


Oh! you mean cold and wet, like it should be.

Dark Physics makes any hot drink go cold.
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 2nd Jul 2009 00:07
I wanted to clear the screen making in it black when the menu shows
that's why i change the screen resolution, any help how to do it?
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 2nd Jul 2009 00:19
It doesn't work well once you've initiated the 3d commands.
The easiest thing is to just have a black sprite covering the entire screen and hide / show it when appropriate (also make sure that that sprite is drawn before any other 2d but after all 3d).

bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 2nd Jul 2009 09:19
or you can use the BOX command from 0,0 to screen width(), screen height() or CLS RGB(0,0,0) before you draw the text

=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 2nd Jul 2009 09:39
Call me old school, but I'd just use the Cls command

I have used the sprite method before, and with a little patience and the set sprite alpha command, it can be used to make the game screen fade in and out.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 2nd Jul 2009 09:52
can't I just use clear camera view?
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 2nd Jul 2009 10:05
Yes, set the backdrop colour to black and position the camera somewhere where it can't see any objects. Not the cleanest method, but it should work.

bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 2nd Jul 2009 10:44
Oh! you can also use backdrop off, so you won't see the objects and don't have to use CLS. remember to use Backdrop On again when the menu is finished.

the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 2nd Jul 2009 11:53
allright thanx everyone

Login to post a reply

Server time is: 2024-09-28 08:20:44
Your offset time is: 2024-09-28 08:20:44