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 / Help with Sparky's DLL Required

Author
Message
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 18th Dec 2009 20:05
Hi All
I am tring a code snippet for Sparky dill. when I run the code I do get my level of my world just for a moment then it goes to a blue screen. Here is the code I have. Thanks in advance.


Eggs and Ham Breakfast
The Chicken was involved the Pig was Committed
Symon
21
Years of Service
User Offline
Joined: 29th Aug 2003
Location:
Posted: 19th Dec 2009 02:35
hi
add sync before loop
e.g
AUTOCAM OFF
SYNC RATE 60
SYNC ON
do
add code here

sync
loop

make it sync = sync rate 60 = frames per sec
loop = repeat code
sync = update screen
delete meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!
even a ant knows that!
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 19th Dec 2009 06:16
Thanks

I changed that but I am still getting the same problem.

Eggs and Ham Breakfast
The Chicken was involved the Pig was Committed
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 19th Dec 2009 10:34
I can't compile the code, but the fact that it's blue is correct, you're just not seeing your models because the camera hasn't been positioned correctly (or the model hasn't been positioned correctly). As a quick test, you could scale the model to a massive size, and you should be able to see it.

Since you do see it for a second though, i'm guessing there might be a problem with your gravity code. You probably see it for a second, before falling since you're not actually colliding with the model in question.

Also, with Sparky's collision, you need a memblock in your code, something you don't have. I'm surprised that it compiles at all.

B++
14
Years of Service
User Offline
Joined: 6th Dec 2009
Location: India
Posted: 19th Dec 2009 12:45 Edited at: 19th Dec 2009 13:10
DennisW:
Your code compiles and run without any problem even changing a letter(though add the sync). Just the movement code is not adequeate. But the only difference is, the .dbo file. I load a .x file. try to load a .x file and see.

REEDIT: it is also possible that your player is not inside the map or room, thats why you fall down and see blue background.
Regards


Your Signature Here;
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 19th Dec 2009 19:04
B++
I did change it to .X Format and everything worked. So that brings up a question when do you use .DBO and when to use .X I am using 3D World Studio and the first time I used .dbo because that is what the snippet showed.

Veron

I am just getting started tring to use sparky dil so how would I set up a memblock.

Old Dog new tricks is hard

Thanks

Eggs and Ham Breakfast
The Chicken was involved the Pig was Committed
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 19th Dec 2009 19:17 Edited at: 19th Dec 2009 19:19
At the end of all your code, outside any loops, just put DELETE MEMBLOCK 1.

When it comes to using .DBO or .X, DBP loads .DBO files faster, but I generally just use .X files for everything. There really shouldn't be any major differences like the ones you experienced.

DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 19th Dec 2009 20:53
Thanks for all the help every body I will keep all of the above in mind

Dennis

Thanks

Eggs and Ham Breakfast
The Chicken was involved the Pig was Committed

Login to post a reply

Server time is: 2024-09-28 12:14:54
Your offset time is: 2024-09-28 12:14:54