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 Discussion / Randomly crashing?

Author
Message
Code eater
17
Years of Service
User Offline
Joined: 17th Feb 2008
Location: Behind You!
Posted: 22nd Oct 2008 21:41
I have been making a car game but recently for no apparent reason it suddenly seems to be crashing.

When I run the program, it suddenly stops and the only way to end it is by using task manager.

Is there a reason? Does this happen for you?



This is the code, I have also attached the files needed and the .dba file.

If it is necessary then I will find out my pc specs and tell u guys.

thanks,,,

Codeeater

Attachments

Login to view attachments
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 22nd Oct 2008 22:27 Edited at: 22nd Oct 2008 22:42
This seems to be a problem with the DBC collision. I've run into it since using 1.20. I'm not sure if it happened as much with 1.13. Anyway, it can happen when there is constant collision detection. I can't track down exactly why or when it happens because it doesn't happen in my DBC collision get ground height examples; it actually may be related to something else and is triggered by collision? Anyway, your program crashed constantly for me at first until I made the following changes:

change lines 32 33 and 34 to read


Change the ; to a : in line 33 . Comment out of get rid of line 34.

get rid of line 100. Set global collision on is very buggy. If you need to use DBC collision, control each object with set object collision on and set object collision off.

There also seems to be something not quite right with the Road2.jpg image. I was unable to open it in a photo editing program and when I convert it to a bitmap it DBC is looks like the attachment I've included.

Since you are using sparky's dll anyway, maybe find a way to avoid using the DBC collision altogether. It may mean casting a lot of rays around, but it may help.

I'm also glad to see that my Sparky's tilt function seems to work!

Enjoy your day.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-07 08:25:18
Your offset time is: 2025-06-07 08:25:18