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 / DGDK.NET - Missing "Exist" functions?

Author
Message
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 18th Dec 2006 03:30
I notice some classes misses the "Exist" function, I've read DBPro help and I know that they are present in DBPro. These are the the missing functions:

-CameraExist
-TerrainExist

If you've read the OOP Wrapper thread, you know whate me and MudBug are doing. This function is really important to the Wrapper. Any workaround to know if a object exists given its ID?

We're hoping to make a Christmas Technology Preview release (or a New Year's), so I hope somebody can help me!

Thanks in advance!

Thiago "k"Bessa
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 18th Dec 2006 05:28
Huh, it appears the C++ DGDK is missing those too. How odd

Big whorls have little whorls which feed on their velocity,
Little whorls have lesser whorls and so on to viscosity. - Lewis F. Richardson

Also, my website has no content. But it looks perty
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 18th Dec 2006 15:01
if its not in the c++ lib version, its definitely not in the dgdk.net, and is a question for Lee and Mike

APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 17:06
I've not tried this personally, but for the camera function, try calling the GetCameraInternalData function. If it returns 0 for a camera object, chances are, it doesn't exist.

I can't help on the Terrain side of things as I've based all DGDK.NET functionality on what is exposed by the original DGDK toolkit.

Paul.

James Bondo
18
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 18th Dec 2006 17:08
While we are on it, i noticed that this command:

oDB3D.MakeObjectPlane()

is spelled wrong... or it was done on purpose. Im pretty sure it should have been:

oDB3D.MakeObjectPlain()

This is from .NET. Don't know if it's also the case in C++ lib.

Proud member of The Unforgiven Warriors
http://www.tuwguild.com
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 18th Dec 2006 17:29
Thanks for the info everyone.

Apex: I'm already using this workaround. Will have to figure out something for Terrain. So, both functions aren't exposed even by C++ DGDK? (Sorry, I only own DBPro and DGDK.NET, so I can't say anything about it).

James Bondo: Yeah, that's Odd. In our Wrapper the class is called DarkPlain, for a more "DBPro Compatibility".
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 18th Dec 2006 17:36 Edited at: 18th Dec 2006 18:13
I'll add the Plain version for the next release of DGDK.NET. It was exposed in the C++ version but I obviously neglected to add the additional fix. Sorry for the inconvenience.

I'll see if the Terrain and camera exist functions can also be fixed.

Paul.

flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 19th Dec 2006 01:08
James Bondo: Make Object Plane has been wrong since Dark Basic Classic Lee just left it that way so every other version would be compatible with the next

Big whorls have little whorls which feed on their velocity,
Little whorls have lesser whorls and so on to viscosity. - Lewis F. Richardson

Also, my website has no content. But it looks perty
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 19th Dec 2006 05:36
Does C++ DGDK have a WriteLong method for File? Because DBPro has it and DGDK.NET is missing it.
enablerbr
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: United Kingdom
Posted: 19th Dec 2006 14:23 Edited at: 19th Dec 2006 14:25
yes c++ DGDK has WriteLong. also DGDK.NET has it. i just checked.
kBessa
18
Years of Service
User Offline
Joined: 8th Nov 2006
Location: Manaus, Amazonas, Brazil
Posted: 19th Dec 2006 16:43
Thanks Enablerbr.

My bad, VS Code Completion was not showing it (re-started and it reapeared, VS bug?). Should have take a look at the documentation.
James Bondo
18
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 19th Dec 2006 18:14
@flibX0r
Ah, didnt know that. After i read that i went to wikipedia:

Plane (mathematics), theoretical surface which has infinite width and length, zero thickness, and zero curvature.

Seems like the perfect description

Proud member of The Unforgiven Warriors
http://www.tuwguild.com

Login to post a reply

Server time is: 2024-11-19 10:46:39
Your offset time is: 2024-11-19 10:46:39