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 / DB doent say i have errors but my program won run

Author
Message
jaykav99
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 9th Aug 2009 23:13
I am creating a brick breaker game from one of the books and Ive tested my game through out the process. Its loaded everytime. Now i just put the finishing touches of sound and powerups. Fixed all errors DB found and when i tell it to compile and run the screen goes black for a second and then bounces back to DB. I assume maybe i have an error DB isnt seeing???
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 10th Aug 2009 00:40
As far as I know the only thing that will cause it to do that is the END command. Go through the code and make sure it isn't hitting an END or getting to the end of the code, or it will close. You could also put some debug readouts (have it print stuff at certain times) to see where the problem is occuring.



Diggsey: I have a spine and memory, but one memorable guy says he hates me. What am I?
Dream And Death
18
Years of Service
User Offline
Joined: 21st Feb 2006
Location: The circus! Juggling job, kids and DBPro
Posted: 10th Aug 2009 02:06
Hmm, your best bet is to comment out your recent additions and see if it runs.

You may find that there is a model issue (if a 3D model has errors, it can boot DBPro out as soon as it is loaded)

"You get what everyone gets, you get a lifetime!" - Death, The Sandman Library

First you Dream, then you ... - Neil Gaiman, 2001
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 10th Aug 2009 04:05
Post some code and we'll see if we can spot the error.

jaykav99
15
Years of Service
User Offline
Joined: 30th Jul 2009
Location:
Posted: 10th Aug 2009 18:09
Thanks guys I found the error, in the main game loop. I had the loop command but forgot the DO command. For my first game I only had that error and some mis-spelling. I guess i cant complain.
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 10th Aug 2009 22:12
Quote: "I had the loop command but forgot the DO command"

But pro didnt attack you?

(\__/) HHAHAHAHAHAH!
(O.o ) / WORLD DOMINATION!!!!!!!!!!
(> < )

Login to post a reply

Server time is: 2024-11-25 03:06:50
Your offset time is: 2024-11-25 03:06:50