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 / My code doesn't work please help!

Author
Message
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 15th Sep 2011 00:13 Edited at: 15th Sep 2011 00:40
Hi,
My game demo will not run properly and will have a blank screen with a runtime error please help me find out and/or fix this problem. Any help would be greatly appreciated. Many thanks ahead of time!




Austin H Wicker
http://captainwicker.webs.com/
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th Sep 2011 00:41
I've corrected your code tags for you. For future information, the tags are [[/b]code] to start your code, and [[b]/code] to end it.

Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 15th Sep 2011 01:23
So what's the runtime error?

JackDawson
14
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 15th Sep 2011 01:50
Quote: "So what's the run-time error?"


And also WHEN does the run-time error occur ? At the beginning when you try to start it or after or during ?

"Life is like a box of chocolates.. eat it before it melts."
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 15th Sep 2011 03:46
Ok i have fixed the runtime error but now when it runs it will have a blank black screen. I actually wrote the code in the original dark basic but I was quite disturbed by the ide and look of the program so I am running dbpro.

Austin H Wicker
http://captainwicker.webs.com/
CumQuaT
AGK Master
16
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 15th Sep 2011 07:35
Try using sprites for your HUD rather than a 3D texture plane.

Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 15th Sep 2011 21:40
Alright now I have taken out the HUD but its no use. I try to run the program but my task manager opens and states that "DarkBASIC Pro Application.exe" has stopped responding. Could it be possible that I have not setup the code correctly? and can this be fixed?


You can download the complete project if it helps

Austin H Wicker
http://captainwicker.webs.com/
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 16th Sep 2011 07:12 Edited at: 16th Sep 2011 07:27
Hi DarkDISCUSSION

I see a problem with "color light 1,512,100,100"
The problem is don't use 512 for the color it only goes up to 255.

Try this see if it runs. If it runs good. If Not you have a problem with windows 7 or something?


I commented some stuff out so just un-comment them if you need it.

darkvee
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 16th Sep 2011 07:26 Edited at: 16th Sep 2011 07:28
Hi I downloaded you project file DarkDISCUSSION.

Looks like it's having problems loading up
"load object "pyramid.3ds",3"

I put that model in a empty dbp file and it took forever to load up with a black screen. I just closed it.

For one it's a 3ds which takes longer to load up than a dbo file or x file. I would convert that file to a dbo or x file. That should solve your problems.

darkvee
Yodaman Jer
User Banned
Posted: 16th Sep 2011 08:33 Edited at: 16th Sep 2011 08:35
Also, you're not setting up any graphics mode.

At the top of your program, before "Backdrop on", put "Set display mode [width], [height], [depth]". That might help with something.


^ Click for my Deviant page!
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 16th Sep 2011 21:12
Alright now I have the code working swell but am having horrible issues with collisions.It is as if my player will walk right through solid object. No matter what I do I just cannot seem to get it working correctly.


I have never been able to prevent objects from going through each other and it is quite the pest.

@darvee
Thanks, Your advice really helped out

Austin H Wicker
http://captainwicker.webs.com/
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 17th Sep 2011 05:17
Hi DarkDISCUSSION
Glad I could help. Send your project file and folder with media again with your new models converted.

darkvee
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 17th Sep 2011 19:19 Edited at: 17th Sep 2011 19:21
@darkvee
Alright the Project is now converted. but I still cant get the animation to change from idle.x to walk.x with the cursor keys.

Austin H Wicker
http://captainwicker.webs.com/
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 18th Sep 2011 08:54 Edited at: 18th Sep 2011 08:55
Hi DarkDISCUSSION,

I fixed the animation and now you can see the pyramid.


However I didn't add collision. Collision is pretty easy in dbp check out this article.
http://www.thegamecreators.com/?m=view_product&id=2030&page=3d_tutorial_5

It explains dbp collision detection very good.

darkvee
DarkDISCUSSION
15
Years of Service
User Offline
Joined: 6th Jul 2011
Location: Ft Madison, IA
Posted: 18th Sep 2011 18:47
@darkvee
Do collisions prevent objects from like walking through other objects?

Thanks for this fix. Nice

Austin H Wicker
http://captainwicker.webs.com/

Login to post a reply

Server time is: 2026-07-10 10:19:35
Your offset time is: 2026-07-10 10:19:35