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.

DLL Talk / getting ngc to work

Author
Message
dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 13:12
I have just orderd ngc and downloaded it but evrey time i use a comand from ngc it says it cannot reconise comand or somthing like that. i have put it in the plugins user folder and heres proof

but it whant work what am i doing wrong

Your signature has been erased by a mod because it's larger than 600x120
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 13:41
Not sure if this applies to your version, but the NGC DLL needs to be placed into your application EXE's folder doesn't it? NGC uses runtime binding rather than as a DBP plugin. So you'll need to ensure that you've included the dba file as well.

Paul.

dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 14:14
so thers a dll file that come's with ngc that i need to put in the same folder as my prodject.

Your signature has been erased by a mod because it's larger than 600x120
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 14:27
No no, I'm not saying that, see in previous versions of NGC, the DLL was meant to be loacted in the same folder as your EXE, and you used a .DBA file to call the collision functions. With the new version, you still place the DLL into your EXE's folder and include the .DBA file that comes with the installation.

You'll need to clarify this by reading the usage instructions for NGC.

Paul.

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 14:32 Edited at: 18th Dec 2006 14:33
Quoted from the 4.03 manual:

[EDIT] "Place the "NGCP_v402_DBP.dll" file in the directory with your EXE and/or DBPro project"

Quote: "Installation



--------------------------------------------------------------------------------
First off, if you find any bugs in this plugin, notify us immediately! We are very dedicated and committed to releasing quality, bug-free products.

Place the "NGCP_v402_DBP.dll" file in the directory with your EXE and/or DBPro project.

Make sure the DBPro IDE has included the "NGCollision.dba" file (This file contains functions to communicate with the DLL, so it is very important)

- To Make sure the include file "NGCollision.dba" is included on the DBPro IDE, first make sure your Project Manager is open. (View->Show Project Manager)

- Click on the "Files" button on the bottom left of the project manager.

- Click on the "browse" button near the top of the project manager

- Surf to the "NGCollision.dba" file, select it, and click "Open"

- Now you should be all set.



It is also highly recommended to put this bit of code at the very top of your program:

#Constant TYPE_NGC_ELLIP=1
#Constant TYPE_NGC_MESH=2

#Constant ELLIP_2_ELLIP=1
#Constant ELLIP_2_POLY=2

#Constant RESP_STICK=1
#Constant RESP_SLIDE=2
#Constant RESP_SLIDE_NO_SLOPES=6
#Constant RESP_SLIDE_NO_GRAV=10
#Constant RESP_SLIDE_NO_ACCEL=18
#Constant RESP_NONE=32

#Constant DYN_NO_RESP=1
#Constant DYN_RESP=2
#Constant DYN_RESP_LOCK=4
#Constant DYN_RESP_LOCK_NOTURN=12

#Constant NCULL_CLOCK=0
#Constant NCULL_COUNTER_CLOCK=1
#Constant NCULL_NONE=2

This will make it a lot easier to read the "SetCollisionsPRO()" commands as well as the ray-cast functions.

Now you should be able to make your game and use the collision system!


Keywords file setup:

The "keywords_ngc402.ini" file in this package contains keywords to make the syntax for the commands hilight when you type them in the standard DBP editor. To make this work, do the following:

- Open the "keywords_ngc402.ini" file with Notepad

- Select all of the contents and copy

- Surf to your main DBP installation folder

- Go into the "Editor" folder then the "FrontEnd" folder

- Open the "keywords.ini" in a text editor

- Move the cursor to the end of the file and paste

- Save the file

- Restart (or start) your DBP editor. The commands will now hilight when you type them. "


Paul.

dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 16:23
ok, looks like itll work ill go se if it does now, just one question thats a bit noobish were it says Make sure the DBPro IDE has included the "NGCollision.dba" i am useing the manual ide do i have to do anything, arghh reading it i think i no what it means but im not compleatly sure.

Your signature has been erased by a mod because it's larger than 600x120
dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 16:40 Edited at: 18th Dec 2006 16:57
nope still not working, i whent to view prodject manager files then i clicked the top brows button and located the ngcollision file and clicked open and still ndosent work.

edit
ok it gives me the error about unarys or sumithing when i put
startcollisionPro==(oooo, oooo, oooo)
note i put my key codes in ther not just 0's

Your signature has been erased by a mod because it's larger than 600x120
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 17:01
Could you be more specific about the error please?

Paul.

dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 17:15
ill put a pic up when i can get on next, is that the proper way to formay the code tho that i posted isnt it ment to be startcollisionpro(,,).

Your signature has been erased by a mod because it's larger than 600x120
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 17:20 Edited at: 18th Dec 2006 17:21
No, it should be:

StartCollisionPRO(000000000,000000000,000000000)

The toolkit comes with examples to demonstrate how to use the toolkit, I'd seriously recommend looking that them first.

Paul.

[EDIT] Obviously replace the zeros with your key codes.

dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 20:59
ok i finally got startcollisionpro to work but ran into another problem, that is the positionobjectpro whant work i think this is beacouse i have no set it out right and the openme.exe dosent show you how to format it as such, i have put positionobjectpro (2,0,0,-15) but it says that it cannot be reconised, is it beacouse i havent formated it righ.

Your signature has been erased by a mod because it's larger than 600x120
dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 18th Dec 2006 22:40
ok, now evrey time i put startcollisionpro it says could not load collision system.

Your signature has been erased by a mod because it's larger than 600x120
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 19th Dec 2006 00:45
To use NGC (any version) with your projects:

Copy the dll and include file to the same location that your exe will be compiled to. Use the project explorer to add the include file into your project. Make sure you put your keys inside the startcollisionpro() function.

There is a framework .dbpro that you can use to see the minimum required code to use NGC.

The collision system could not be loaded error is from the dll not being in the same location as the exe.

dark donkey
18
Years of Service
User Offline
Joined: 4th May 2006
Location:
Posted: 19th Dec 2006 12:01
ok thanks! lost in thought and apex. that helped me alot. Now i can start recodeing thunder soul rpg.

Your signature has been erased by a mod because it's larger than 600x120

Login to post a reply

Server time is: 2024-06-28 03:36:49
Your offset time is: 2024-06-28 03:36:49