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 GDK / create objects

Author
Message
gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 26th Mar 2007 03:57
hi all, i know this is a prett stupid questions but been a while since i looked at dgdk,

At one point was it not possible to create something by :

int tmpobject = dbMakeObjectSphere (10,10,10);

or something similar? seemed more logical and i swear it was changed to work this way but could be mistaken?

cheers

If i dont know,
I'm sure you will
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 26th Mar 2007 18:41
Hi gdogg2k

If you mean C++ version of DGDK then I dont think it's OOP like you want.

Im using DGDK.NET with DarkEngine from kBessa and that have excately what you are looking for.

Niels Henriksen
Working on a (MMO)RPG right now in DarkEngine
http://yourmmo.wikispaces.com/
gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 26th Mar 2007 19:24 Edited at: 26th Mar 2007 19:25
i wouldnt consider it to be oop as this kind of assigning is essentially the sames as save x = 10 * 2.

but if dgdk.net does this its a shame i cant swap what my license if for :'-(

i just find having variables to store references to objects etc more intuitive than usings the ID numbers but u work with what you got right

If i dont know,
I'm sure you will
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 26th Mar 2007 20:03
gdogg2k - if you just bought it then try to ask support if you can swap it.

My opinion is that when we buy it it should be both C++ and NET versions we will get

Niels Henriksen
Working on a (MMO)RPG right now in DarkEngine
http://yourmmo.wikispaces.com/
gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 26th Mar 2007 20:24
hehe, got it back in 2004 so i guess its unlikely this late on
does the .net version do what i was looking for tho? or does it still work on the basis of object ID's being passed as parameters?

If i dont know,
I'm sure you will
Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 26th Mar 2007 20:38 Edited at: 26th Mar 2007 20:39
gdogg2k - the .net version are using object ID's but kBessa (here on the forum) has made an wrapper called DarkEngine. It does excately what you want.... thats why I cant make my game without it.

Here is some code from my game:




as you can see.... wonderful OOP

And DarkEngine is free....

Niels Henriksen
Working on a (MMO)RPG right now in DarkEngine
http://yourmmo.wikispaces.com/
gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 26th Mar 2007 20:43
ah seriously sweet, just what i wanted :-(
guess i'll need to purchase that in a few months when i got spare monies

If i dont know,
I'm sure you will
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 26th Mar 2007 22:54
Maybe you should search around for the thin C++ wrapper I posted a long while back - it allows you to create (C++) objects to move (DSDK) objects around, without messing with object id's or image id's.

If you have trouble, Morcilla will still have a copy (he's using it for his astronomy project IIRC).

If you still have no luck, then if you don't mind a little wait, I'll try and find the last version I was working on and post it for you.

gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 26th Mar 2007 23:00
i'm in no hurry IanM, i will search around as well tho, cheers dude

If i dont know,
I'm sure you will
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 27th Mar 2007 23:28
Well, here it is ... and I couldn't resist cleaning up a little and adding a few goodies.

You'll need DGDK 12/03/2007, and the boost 1.33.1 libraries installed to use it - the rest of the project is self-contained.

Attachments

Login to view attachments
gdogg2k
20
Years of Service
User Offline
Joined: 20th May 2004
Location: Cornwall, UK
Posted: 28th Mar 2007 18:45
sweet, only ref. i could seem to fins was to your site which i think had it removed??? thanks, will try it now

If i dont know,
I'm sure you will
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 28th Mar 2007 22:22
That was the interface library - a completely different thing. It allowed you to do with DBPro what you can do now with DGDK ... and still does for me

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 29th Mar 2007 02:07
I still used it for the DBPro version of the CSM importer. Was going to do the same with the 3DWS importer, but I think that Lost In Thought is working on a version now, which helps me now since I can concentrate on DGDK.NET.

Paul.


Abundance = Choice = Freedom - Scarcity = Dependancy = Control, Truth!

Login to post a reply

Server time is: 2024-11-19 12:20:10
Your offset time is: 2024-11-19 12:20:10