Hi,
The plugin was working for me until just a few minutes ago. Now I get a crash during startup of the compiled application. It just says "DBPro application has stopped working". This is on Vista.
I was running U7.3 when this happened, then searched around and found out that DBPro U7.4 was out, so I downloaded that, and also the DKShopu74 fix, but the problem persists.
Is it normal for a plugin to fail randomly? I mean, it was working perfect just a few minutes ago.
I have tracked the problem down to this command: DK Get Limb Count().
The funny thing is, that command is not causing any crashes in any of the demos. However I experience the problem mentioned in above posts when running the pick limb demo.
My DBProCameraDebug.dll is dated 17.06.2009.
Edit,
This is even weirder because it still crashes with either DBPro U71, U72 or U73 installed with the corresponding DKShop version, so It's not just U74 related. I don't get it.
It sounds like this is my fault, in the way I program the game. But I don't think so, not when it was working perfectly and then it does not; without me touching the DKShop commands. Will have to live without footstep sounds for a while then, until another solution comes to mind.
edit,
No, it's definitely a problem with my code because I just made a simple test with the commands I use with DKShop and it worked flawlessly:
sync on
sync rate 0
autocam off
position camera 0, 100, 0
load object "maps/dev.dbo", 1
do
control camera using arrowkeys 0, 1, 0.3
Result = -1
NearestDistance# = 1000000.0
ObjectNum = 1
For i = 0 To DK Get Limb Count( ObjectNum ) -1
d# = DK Intersect Limb( ObjectNum, i, camera position x(), camera position y()+2, camera position z(), camera position x(), camera position y() - 105.0, camera position z() )
If d# <= NearestDistance# And d# > 0.0
NearestDistance# = d#
Result = i
Endif
Next i
LimbID = Result
set cursor 0,0
print "below you is limb no:", limbID
sync : loop
Now comes the pain of going through 5000 lines of code to figure out why something causes the DKShop plugin to crash. AWW!
edit,
I couldn't bother. Instead I replaced DK Get Limb Count with a different command: Get Limb Count(). Not sure if it is DBPro standard or some other plugin I have installed that have this command in its library. Anyway now it doesn't crash and it works just as well as it did before.
A mod accidentally your signature