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 / Crashing with multiple cameras

Author
Message
Maxmax123
18
Years of Service
User Offline
Joined: 11th Feb 2008
Location:
Posted: 27th Jun 2011 08:10 Edited at: 27th Jun 2011 08:12
My current project has been crashing from what seems to be two cameras looking at the same two objects at the same time. I posted another thread like this months ago (now locked) and was given the suggestion that I had not saved both a source file and a project file. After taking that advice and copying my code into a newly created project folder, the problem went away for a while I really do not know if I properly saved the project files as advised in the previous thread or if it is a different issue.

Here is how I observe it happening:

If only my two player objects and part of the terrain object are in view of both cameras, the game crashes.

If both player objects and a weapon "entity" object are in view of both cameras
, the game does not crash until only the two player objects are in view of both cameras.

The code for my main game loop:


My project has lots of code in it so, some help in where to look for the problem would be most appreciated.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Jun 2011 21:48
1. What does 'crash' mean? DBPro error? Windows error? No error message?
2. Put together some code that shows the crash, and that people can play with (with media if needed).

Login to post a reply

Server time is: 2026-07-10 19:06:41
Your offset time is: 2026-07-10 19:06:41