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 / Weird crash problem

Author
Message
Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 11th Aug 2013 14:59 Edited at: 11th Aug 2013 15:01
Hi all! Working on a project and I've hit a snag. Basically, completely randomly, my game crashes every time a sub is run, however I cannot work out why? would be grateful if anyone could shed some light on this problem!

Anyway, I get an error report as follows:
... I have check up the line number in the temp file. And it refers to this sub:


I then obviously went to check this sub:
... And I cannot find anything wrong?

Thanks in advance!

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 11th Aug 2013 15:28
How comes the transparency command references model 15 and not I?

Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 11th Aug 2013 16:48
Since it is outside the "For i = " loop! I only want to change the transparency on that particular object.

Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 11th Aug 2013 17:27 Edited at: 11th Aug 2013 17:33
Duh!

Anyway,.. I cannot see what is stored in the variables at the moment of termination.

What happens when you compile with some of these lines commented out; does the error still occur? Who knows, perhaps Sparkys collision has an issue with a model file, or INI_models_amount is not what is supposed to be; or perhaps there is a constant with a similar name as a subroutine label.

Paronamixxe
AGK Bronze Backer
14
Years of Service
User Offline
Joined: 10th Feb 2012
Location: Sweden
Posted: 11th Aug 2013 18:23
I kind of sorted it out! ... XD Well, it was sparky's command which was causing the crash, which really isn't good news, I've been experimenting with some other solutions, however, I am having a lot of trouble setting up collision :/

I changed world load to this (just so I can test collision)
And I'm using code stolen from Comet's demo using sparky's plugin:


I set up my player like so:

But it does not work! HELP!

Mage
Valued Member
19
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 20th Aug 2013 09:20
I was just gonna say before I read your last post. Usually crashes that occur without error messages are the result of plugins. Was gonna suggest Sparky's but I see you discovered it.

Also you seem to be using If Else a lot just for the purpose of using Else. You should use <> in place of the equal sign (greater than and less than operators). That way you can remove the else statements. It'll make the code look a bit cleaner.

There's some other symbols you can use to but I'm more familiar with Java, and C and I know DBP is a bit different.

Login to post a reply

Server time is: 2026-07-11 11:58:26
Your offset time is: 2026-07-11 11:58:26