About Store Forum Documentation Contact



Post Reply 
PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
Author Message
scarmahdi Offline
Member

Post: #1
PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
Hi,

I am pretty new to this and was running through the tutorials. I ran into some issues with relative paths not working correctly. I have the PhysX DLLs stored relative to my application and when I specify the path with ../PhysX I run into issues with the exe not able to find the supporting DLLs. If I move the DLLs to the root folder of my app it works fine.

I ran into similar issues with the engine path where I had to use the IOPath directive and I could not directly use Paks.add("..\Data\engine.pak"). I had to use the following instead:
IOPath("Data");
Paks.add("engine.pak");

Have any of you run into this before? I am running Win 7 64.

Really appreciate your help and please pardon the rookie questions.

Regards
12-14-2010 04:14 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
You need to use full path for the physx folder

There is always evil somewhere, you just have to look for it properly.
12-14-2010 04:42 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
scarmahdi Wrote:  I ran into similar issues with the engine path where I had to use the IOPath directive and I could not directly use Paks.add("..\Data\engine.pak"). I had to use the following instead:
IOPath("Data");
Paks.add("engine.pak");

Do you mean tutorials or your custom project?

What's the full path of your exe, and engine.pak, and physx dll's?
like c:\game\game.exe
...
12-14-2010 04:45 PM
Find all posts by this user Quote this message in a reply
scarmahdi Offline
Member

Post: #4
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
Thanks Dynad/Esenthel.

I have the SDK setup for a custom project under: C:\MyGames\Test.

The engine file is under C:\MyGames\Test\Data\engine.pak

The physx DLLs are under under C:\MyGames\Test\PhysX\

Should I be able to use relative paths in this case?
12-14-2010 05:21 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
where is your exe?
12-14-2010 05:44 PM
Find all posts by this user Quote this message in a reply
scarmahdi Offline
Member

Post: #6
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
The exe is at C:\MyGames\Test

Thanks
12-14-2010 05:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #7
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
You should use this:
IOPath("Data");
Paks.add("engine.pak");
Physics.create(CSS_NONE,true,"PhysX");
12-14-2010 05:57 PM
Find all posts by this user Quote this message in a reply
scarmahdi Offline
Member

Post: #8
RE: PhysX // create physics Physics.create(CSS_NONE,true,"../PhysX");
Ah! So it depends on relation to location of exe.

Thanks again Esenthel - really appreciate your time with this.
12-14-2010 06:05 PM
Find all posts by this user Quote this message in a reply
Post Reply