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.

Newcomers DBPro Corner / Game closes as soon as it starts...

Author
Message
Jaydon52
15
Years of Service
User Offline
Joined: 4th Dec 2008
Location:
Posted: 5th Dec 2008 01:34
I got this code from someone (sorry can't remember who)...
and I swapped the object with my terrain ( it was a .x file).
But when i go to run it, it open up a black, blank screen for a few seconds then closes and goes back to DBPro...

A little help would be much appreciated!

Heres the Code...
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Dec 2008 15:26
Write a new piece of code that just loads the object: does it crash?
Change the existing code, commenting out the sc_setupComplexobject command in your makeLevel subroutine: does it crash?

DsarchyUK
16
Years of Service
User Offline
Joined: 21st Nov 2008
Location: UK
Posted: 11th Dec 2008 00:46
When I first Compiled I had the error that the Object didn't exist at line 47.

Its not creating the Sphere because the variable Radius isn't in the right Scope try changing your declared variables to Globals:



Of course I then got the error that the .X object couldn't be loaded but thats no surprise as I don't have it . See if that works though.
Jaydon52
15
Years of Service
User Offline
Joined: 4th Dec 2008
Location:
Posted: 12th Dec 2008 01:59
I tried your code and it still crashed...

Thanks for your help though.

Login to post a reply

Server time is: 2024-11-25 14:59:26
Your offset time is: 2024-11-25 14:59:26