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 / Sparkys SC_IntersectObject Problem

Author
Message
StevetS
19
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 15th Apr 2008 23:48
Hi,

I'm in the process of converting my collision system to Sparkys and am trying to get my head round the new commands.

I'm looking at replacing my 'intersect object' commands with sc_intersectObject as a means of stopping my npcs from dropping off ledges but keep hitting the same error and I'm not sure where its coming from:

Quote: "Could not find function'?intersectObjectOld@@YAKHMMMMMM@Z' in 6:SC_Collision.dll"


I've set up a small piece of test code outside my program and am getting the same problem:



Any help would be appreciated.

Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 16th Apr 2008 06:54 Edited at: 16th Apr 2008 06:59
hmm... Seems to me as if Sparky has set up his string table with a typo... If that be the case, we'll just have to wait for him to fix it.

But...
Quote: "?intersectObjectOld@@YAKHMMMMMM@Z"

This makes me wonder if he has left that string in the string table and added a new one, and either 1) there is another command to use which is linked to a string table entry with a matching function or 2) both of these string table entries are linked to the same DBP command and this one seems to have found itself in the favor of the compiler, in which case there is nothing to do.

The above is, however, baseless speculation. Try opening the DLL with notepad and search for "intersectObject", see if there is one like "?intersectObject@@YAKHMMMMMM@Z" (without "Old") or something like "?intersectObjectNew@@YAKHMMMMMM@Z". o.O

StevetS
19
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 16th Apr 2008 15:55
Thanks for looking at this.

I'll give it a go but not sure what I'll be able to do with it - all this dll stuff is a bit beyond me.

I've got a copy of sparkys dll v2.02 (i think, the one I'm using at present is 2.04?) so I might give that a go and see if it gives the same result.

Otherwise I guess we'll just have to wait for a response from the man himself

Cheers.

Mistrel
Retired Moderator
18
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 17th Apr 2008 01:27
I've corrected the string table in the DLL. This will fix the problem for 2.04.

http://3dfolio.com

Attachments

Login to view attachments
StevetS
19
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 17th Apr 2008 15:16
Nice one Mistrel,

I'll give it a go when I get home tonight

StevetS
19
Years of Service
User Offline
Joined: 19th May 2004
Location:
Posted: 17th Apr 2008 20:53
Checked it out and its working!

Thanks v. much.

Login to post a reply

Server time is: 2024-03-28 18:17:22
Your offset time is: 2024-03-28 18:17:22