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.

DarkBASIC Professional Discussion / Old code and problem with Sparky's DLL

Author
Message
Zink
20
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 3rd Feb 2011 20:27
Greetings all!

I've ended up in a rather interesting position in that I haven't actually used DBPro in about 4 years and I just found all my old code in a backup of my last computer. As anyone would be, I was compelled to see what I'd done all that time ago.

The code in question uses Sparky's DLL for Collision, and when I opened the old exe it worked fine. Wanting to make some improvements I installed DBPro onto my new rig and without changing any of the code, compiled it again. But this time, there's something very odd about the collision. It's colliding, but with something invisible and with a shape I don't think it related to the model it's supposed to be colliding with. I should mention it's a .x file, but it used to work fine...

As I haven't changed the code, I was wondering if there was some change to either DBPro or Sparkey's DLL in my 4 years of absence that would cause it to become so weird.

Many thanks in advance. It's very frustrating... Hahaha. :/
Z
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Feb 2011 11:18
It could be to do with object scaling. There is a command in current sparky's that allows object scaling, if you don't use it and scale an object you might see those kind of problems...

C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 4th Feb 2011 13:03
Yeah that sounds very much like your using the old version of Sparky's DLL.

I'm still using it too because I hate how the new one works.

Zink
20
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 4th Feb 2011 14:29
Thank you both for your replies.

baxslash, it's true that I do scale it before sc_setupComplexObject. Do you think that the lastest version of DBPro would mean that that no longer works?

C0wbox, I didn't realise there was a new version of Sparky. I had a look around and saw no mention of it. Could you link it please?

Thanks
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 4th Feb 2011 14:39
Latest version is available here: http://forum.thegamecreators.com/?m=forum_view&t=74762&b=5

I would consider using some other scaling code before setting the object up like this:


(not my code)...

Zink
20
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 5th Feb 2011 18:40
Oh excellent! Thanks so much. With the new version and different scaling, it's started working again.
You've saved me much frustration.
Thaaanks
Z

Login to post a reply

Server time is: 2026-07-18 23:15:46
Your offset time is: 2026-07-18 23:15:46