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.