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 / [Game] has stopped working.

Author
Message
Master SeePlusPlus
12
Years of Service
User Offline
Joined: 30th Dec 2012
Location:
Posted: 17th Oct 2014 06:02
Hey,

So I have been working on a 3D Horror game in DBPro for about half year now, and quite frankly it looks really good. I was playing with sky spheres for one cutscene, ran the program, and all of a sudden after scene two I got the error "Horror.exe has stopped working."

I undid everything I put in and it still happened. On average, it crashed at the same spot about 50% of the time, and works the other 50%. I put in markers to figure out what part of the code it crashed during and there is nothing that should be causing it in the code.

I have heard of these problems before, but not one where I don't see a coding issue. I ran the program on another computer and still received the same error occasionally.

Also, it is 1600 lines of code, so I can't really just post the code up here, but if there are any ideas I can check them out on my own.

Thank you very much.
GreenDixy
16
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 17th Oct 2014 06:48
i have gotten that error lots of times normally it is something small I have missed and using code tags people have put up a lot more then 1600 lines

.:: Http://DeanWorks.Ca ::.
My software never has bugs. It just develops random features.
Master SeePlusPlus
12
Years of Service
User Offline
Joined: 30th Dec 2012
Location:
Posted: 17th Oct 2014 17:59
The problem is not the length, it is that I plan on selling this game so I do not want to make it open source haha
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 17th Oct 2014 18:48
Whenever I run into issues like this, I check things that affect memory more than anything. Like, making sure that any new model files work perfectly in DBPro, double checking memblock creation and modification, array and typed array handling.

If you would like another pair of eyes to have a look, then I'd be happy to help if I can. I'm a moderator here so my actions are more accountable - but anyway I could have a look with complete non-disclosure and I have a couple of debugging tricks that can help find these sorts of issues. Drop me an email if you are interested.

I am the one who knocks...
Cescano
10
Years of Service
User Offline
Joined: 4th Sep 2014
Location: Italy
Posted: 17th Oct 2014 20:05
I am working on a game since 2 months ago, my goal is to sell it on steam too, my project is currently about 8000 lines (space lines and comments included) and so far i never get a crash (only sometimes when i try to run the game within the editor and it stops working as soon as I launch it, but never midgame), the only times i got crashes when i was trying to implement new code was:

1- Using .3ds objects, so make sure your objects are all in .dbo or .x (i use .x for the animated models and .dbo for anything else)

2- Trying to use the command "set shadow shading on"

So you can start converting the models from .3ds to .dbo or.x and if that didn t fix the problem try removing the shadow commands (just to detect if is that the problem).
Master SeePlusPlus
12
Years of Service
User Offline
Joined: 30th Dec 2012
Location:
Posted: 17th Oct 2014 20:05 Edited at: 18th Oct 2014 04:26
I am a little busy now, but when I can I will be sure to check for memory leaks and any new model implementations and such. If I can't I will probably e-mail you. Thanks!

EDIT: I will check about the objects recently pointed out as well.
EDIT2: I did not use either of those, so that's not the problem. It's weird that when it does crash it is in the same spot, so I know the area of code that would be wrong but I feel like I commented enough out..

EDIT3: I am fairly certain I figured out what section the problem lies in (and yes, I believe it is in the memory). Will post updates shortly.
Master SeePlusPlus
12
Years of Service
User Offline
Joined: 30th Dec 2012
Location:
Posted: 20th Oct 2014 04:57
I know this is a late response, but I am fairly certain I have isolated the problem. Will attempt to fix, but just removing the code removes the error.

Login to post a reply

Server time is: 2025-05-12 10:43:16
Your offset time is: 2025-05-12 10:43:16