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.

Dark Physics & Dark A.I. & Dark Dynamix / PHYSICS compile error

Author
Message
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 5th Jun 2009 00:11
Ive installed physics but not even the examples work, ive looked through the documentation and cant find an answer that i havent tried.

Anyone ran into this prob?

can anyone help?

Mista Wilson
15
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 5th Jun 2009 04:10
Which version are you using ? DarkGDK or DarkBasic ?

If its the DarkGDK version then you will probably need to go through and setup your projects manually yourself to point to the library and include it as an additional dependancy.

I dont use DarkBasic so if thats the version you have i cant help im sorry.

good luck, its a great product when it works, makes using physics very easy

If it ain't broke.... DONT FIX IT !!!
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2009 11:48
if its darkbasic here's a check list.

1. DirectX 9.c oct version.
2. Nvidia PhysX driver 909.02.03
3. TGC PhysX upgrade 1.05 installed.
4. latest graphic drivers.
5. DarkPhysX activated.

if that all checks out come back and will try something else.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 5th Jun 2009 20:43
sorry been out all day.

Im using GDK. I will try those things wen I return but just for reference whats meant by this :

Quote: "DarkPhysX activated"


Thanks in advance

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 01:07
dont know wat ive done but now all i get is a message saying it cant find

NxCooking.dll

Any ideas

Ive tried searching for the file but cant seem to find it

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 12:21
Quote: "5. DarkPhysX activated."


only needed if you are using normal Darkbasic.

Not required if using GDK.


Have you install the Nvidia PhysX driver? this has the NxCooking.dll and others.

link
http://www.nvidia.com/Download/index.aspx?lang=en-us

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 12:34
yes I installed this and even then I cant seem to find this file.

Yes Im using GDK

I really am begining to get annoyed with this

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 12:36
followed that site and it says I have the latest drivers

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 12:38
out of interest wat do u suggest I actually download from begining to end t get this working?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 13:02
well I only know a little about c++ and gdk, I can only get a few to actual run as I have not set it up right.

I suppose you have told the linker where physX libs files are?

If you look down this forum post on GDK physX you may find one that shows what to do.(I think)

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 13:12
no i havent but I shall search the forum as you suggest

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 14:25
ok almost a success.

Got the DLL files required, but NOW debuging stops at this point in the file crt0.c:


Quote: "#ifdef _WINMAIN_


lpszCommandLine = _twincmdln();
mainret = _tWinMain( (HINSTANCE)&__ImageBase,
NULL,
lpszCommandLine,
StartupInfo.dwFlags & STARTF_USESHOWWINDOW
? StartupInfo.wShowWindow
: SW_SHOWDEFAULT
);"


Think Im gonna go mad

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 14:26
That was after I had to sort the problem it had finding the images

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 15:24
dont know wats happened seems to have gone backwards now I get

Quote: "fatal error C1047: The object or library file 'C:\Program Files\The Game Creators\Dark GDK\Lib\VS9\DarkPhysics.lib' was created with an older compiler than other objects; rebuild old objects and libraries
LINK : fatal error LNK1257: code generation failed"


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 15:31
Have not got a clue what your above quote is saying, so hope you find something, is C++ your main coding language or did you learn basic first then C++.

Will be of insrest to me if you can show what you have in the linker for libs and other bits how it set.

When I was setting mine up, clicked and change so many things because I did not know what or how to use things, that some bits work other bits do not, all because I do not know enough about the ide(for a word).

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 15:33
c++ is rather new to me although ive been coding for many years in other languages.

Ill just go and copy wat it says for the linker

All I am trying to do ATM is get the samples working

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 15:34
Quote: "dont know wats happened seems to have gone backwards now I get"


Is the GDK you are using is 7.4 and physX 26th may update?

Dark Physics makes any hot drink go cold.
Skela90
15
Years of Service
User Offline
Joined: 18th Apr 2009
Location:
Posted: 6th Jun 2009 15:37
to be perfectly honest Ive downloaded and redownloaded so many things trying to get this to work Ive lost track
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 15:39
ive downloaded and redownloaded so much Im not too sure on versions

I just downloaded the Physics GDK, and Both updates for that but It doesnt say the version number

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 15:39
ok Im going to start again i think

what should I donload and where from? Do u know?

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 15:49
sorry this was my mistake for not reading properly

Im using the very lates version of GDK

but I dont think Im using the PhysX update. Also I cant even find that update

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 15:58
As far as you know the basic GDK work ok yes.

so all you need to down load is

Download Dark Physics for Dark GDK
Download optional Dark GDK Update - 26th November 2008
Download optional Dark GDK Update - 26th May 2009

Then add this line to the linker VC++ directorys
in the includes

C:\Program Files\The Game Creators\Dark GDK\Include

in library file.

C:\Program Files\The Game Creators\Dark GDK\Lib\VS9

cannot say if this right as I have yet to get one of the demos to go as well, been sometime since I did any of this as it was driving nuts, so left it a while.

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:02
the above link should take you there and it on the bottom half of the screen in amonks other links.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:03
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:05
which version of NVIDIA should be used?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:06
plus try testing with 'falling objects demo' as that the only one I know that works first time however you setup VS.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:07
Ill give that a go now

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:09
there only one file to used, here a direct link to physX dirvers however it does not update if they update the driver.

http://www.nvidia.com/object/physx_9.09.0428_whql.html

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:09
same error it sayin DarkPhysic.lib was created using an older compiler

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:12
If you open the Nvidia control box for the graphic card then click on system information it should show the number 9.09.0428 as the driver number.

keep cool took me 2 weeks to get this far.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:13
cheers mate but, wheres the NVIDIA control box?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:17
start/ control panel /

then look for a nvidia control panel icon, d/d click that.

then click on help / system information. find tab components.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:18
ok downloaded and installed and still get the same issue.

Where do I set the libraries?

I dont get it, this was getting past the compiling part before

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:21
it shows the number 9.09.0428

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:22
looks like you may have clicked something that did not need clicking.

If you remember how you set VS up for basic GDK then it in the same place.

If not look in the GDK install guide it should show how to get there.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:29
good news it compiles



bad news, it cant seem to find the image files that I know are there

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:30
oh in case it helps cos I know it has issues, Im using Vista

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:32
are you using the correct file path to the images.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:34
yes but ive just tried changing all the directories to a new one

DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:40
just tried the falling object sample again. No directories or anything has been changed but yet it still will not actually find the images? surely this was released working so WHHYYYYYYYY!!!!!

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:44
rem out the images it should at least work then.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:46
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 16:48
it seems to be crashing at almost ever db command after

dbPhyStart ( );


did that, crashed at next line, remmed dat out, then the next

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:52
ok, click on the falling object code, now press ALT+F7

look for linker expaned it.

then find input.

then check if you have this in the first box.

DarkPhysics.lib
dxFluidRenderLib.lib

Dark Physics makes any hot drink go cold.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 16:56
If it does not go, can you post debug output file may help me see what else might need setting.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 17:17
i have DarkPhysics.lib but not dxFluidRenderLib.lib but I'll add it now

Attachments

Login to view attachments
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 17:33
no difference

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 17:37
what does the error file show? post it if you can.

Dark Physics makes any hot drink go cold.
DragonsLair
14
Years of Service
User Offline
Joined: 3rd May 2009
Location: Scarborough
Posted: 6th Jun 2009 17:46
it compiles ok, but when it run the exe, it stops debugging with this error

Quote: "Unhandled exception at 0x00cfdf9b in Multiple Cloth Objects.exe: 0xC0000005: Access violation reading location 0x00000000."


Ive even tried running the exe directly and it just stalls

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 6th Jun 2009 17:57
well its beyond my knowledge on what to do next, hope you can find someone who may be able to help you further.

There are lot of threads on this, it just finding the ones that work.

Dark Physics makes any hot drink go cold.

Login to post a reply

Server time is: 2024-04-20 07:09:07
Your offset time is: 2024-04-20 07:09:07