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 / NGC doesn't seem to be working at the moment...

Author
Message
Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 4th Nov 2004 17:46 Edited at: 4th Nov 2004 19:14
I just bought the .dll, and when I tried opening the first project (sphere2sphere) and running it, it says 'could not understand command' blah blah for every nuclear glory command. I did everythign it said to do, like including the NGcollision.dba file... what is it thats not working?

I have DarkBASIC Pro fully updated.

Bleh

Neeeeeeeewom!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 4th Nov 2004 20:14
Have you put the DLL in the same folder as your project?
Have you entered the 3 serial codes in the StartCollisionsPro() command?

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 4th Nov 2004 21:51
You can put (00000000,000000000,000000000) for the serial keys until you get ready to release your game. That way if you post any code you won't forget to remove the keys. Make sure you include the NGCollision.dba file and have it in the folder as well.

Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 5th Nov 2004 03:37 Edited at: 5th Nov 2004 04:41
Yeah... I tried all of that. It just won't recognize the commands for some reason. I've read all over their website and here in the forums. Hmmm...

(I noticed the NGcollision file that you are supposed to include is nothing more than a few REM lines... should it be more than that? I doubt that I could have somehow received the wrong file though.... meh)

Neeeeeeeewom!
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 5th Nov 2004 06:37
Yes it should be alot more than that. You need a new file. Make sure the name is NGCollision.dba

Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 5th Nov 2004 16:46
Aye, I contacted their support and they suggested that it might have been a corrupt download file, so I redownloaded and it works perfect. Oi!

Thanks =)

Neeeeeeeewom!
Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 5th Nov 2004 19:01 Edited at: 5th Nov 2004 19:05
Ok, now that I got it working with the tutorials I tried it with my movement and jumping code I had done before, but I can't seem to get it to work. I followed their examples closely, and made sure that everything they did in their sample projects that needed to be done was in fact included in my code... but when I try to compile the screen pops up and then quickly closes again....

Here's the code:



I am not sure what it is thats stopping the program from running... but when I remove the CollisionTypePRO commands...

... the program displays fine, but the object stays stationary...

Hmmm

Neeeeeeeewom!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Nov 2004 20:17
You need to SetCollisionsPro() first, then CollisionTypePro() second.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 6th Nov 2004 04:24 Edited at: 6th Nov 2004 17:17


Ok, I replaced the position object command with the replacement code PositionObjectPRO()(I thought it was still like that but I guess it didn't save last night), and now it works fine, except something odd going on with the ellipse around my object. I noticed some odd behavior so I turned on the visible volume object to have a look. It appears that the collision ellipse trails behind the object, and when it hits the ground the object slides below the ellipse, so the object always appears to be slightly inside whatever its colliding with. Is there a fault in my code causing this? hmm....

Thanks for the help though!

Neeeeeeeewom!
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 6th Nov 2004 17:26
One minor but very important change:



You should always move everything, then RunCollisionPro() afterwards. This is so that NGC can adjust your objects before you SYNC. In your example, the collision was always acting on the previous cycle positions, not the curent cycle.

I spotted this when I noticed the volume sphere moved further from your object the higher the speed went.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Indie Rock 13
19
Years of Service
User Offline
Joined: 1st Sep 2004
Location:
Posted: 6th Nov 2004 17:46
Perfect! It is now exactly as I want it. I dunno what I'd do without this forum or the wonderfully helpful people such as yourself BatVink!

Neeeeeeeewom!

Login to post a reply

Server time is: 2024-04-25 14:41:46
Your offset time is: 2024-04-25 14:41:46