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.

DarkBASIC Professional Discussion / My program has caused an error

Author
Message
Unseen Ghost
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 19th Nov 2002 04:01
Hi,

Well, I hit F5 to start my program and it loads fine and I can turn left or right, but if I try to hit the upkey it says that my program has caused an error and my program will close. If this problem continues, try restarting the computer.
Can anyone help ?

UnseenGhost
brittd
21
Years of Service
User Offline
Joined: 28th Oct 2002
Location:
Posted: 19th Nov 2002 04:57
Someone might be able to help if you post the code example.
Unseen Ghost
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 20th Nov 2002 03:45


Unseen Ghost
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 20th Nov 2002 03:47
I forgot to say that here is the code snippet.

UnseenGhost

The Wendigo
21
Years of Service
User Offline
Joined: 13th Sep 2002
Location: A hole near the base of a tree in the US
Posted: 22nd Nov 2002 21:55
I haven't tried your code so this is a shot in the dark, but your matrix size is HUGE! 200x200 tiles makes my 1Ghz Geforce 3 run choppy. try setting that to say 50x50 and see if it works. As a programmer with some years behind me, I've found that sometimes it's the things that shouldn't be the problems that are the problems

1.00 GHZ processor, 256 MB RAM, GeForce 3 64MB, SB Live!, 8 cans of soda per day
swdave
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United States
Posted: 23rd Nov 2002 05:47
Your code doesnt seem complete but I see a couple problems.
Looks like there is a logic error in the if statement

ztest#>0 and ztest#>10000

also you should initially position the camera in the range like
position camera 100,100,100

Unseen Ghost
21
Years of Service
User Offline
Joined: 2nd Sep 2002
Location: Ohio
Posted: 9th Dec 2002 00:26
Hi, sorry it took me so long to get back to you all, I took some time off for the holidays.

I will check my code and change it. I see what you mean.

I will also change the matrix so it isn't so big.

Thank you all for your input.

UnseenGhost

Login to post a reply

Server time is: 2024-05-07 17:26:50
Your offset time is: 2024-05-07 17:26:50