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 / I don't want to see 3D vieuw

Author
Message
Bjorn
14
Years of Service
User Offline
Joined: 20th Mar 2010
Location:
Posted: 10th Apr 2010 21:42
I'm having a server that will make some NPC's.
it wil move the NPC's and upload the position to the clients.
now I don't want to see them. I want to keep my black text message screen.
I'm not using dbSync(); but when I load the object I still swap to 3D vieuw.
Someone know how to turn it off so I only see the dbPrint on black screen?
Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 11th Apr 2010 08:45
3d views always there i think. what you can do is draw a black box on the screen first then do the text drawing. 2d is still done in 3d just draw onto the 2d world.

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
entomophobiac
22
Years of Service
User Offline
Joined: 1st Nov 2002
Location: United States
Posted: 11th Apr 2010 11:11
If you don't want to see them, simply don't load them. You can use the data sent by a client to recalculate its position using dbNewXValue() and similar functions and send back the recalculated data to the client without ever rendering the model.
Cetobasilius
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location: Mexico
Posted: 11th Apr 2010 14:12 Edited at: 11th Apr 2010 14:15
yeah, as entemonophobiac says, dont load them... just send x,y,z data and some other stuff that your game might need, only the client needs the model.

Server: Send Data (npcid,x,y,z)
Server: Send Data rotations

client: try to recieve data (npcid,x,y,z)
client: try to recieve data rotations

client: dbPositionObject(npcid,x,y,z)
client: dbRotateObject(npcid,rotations)


this above is an example and is no real code. just something to represent things, you can also send an animation id or something...
this is the most basic of game networking. As you can see the server doesnt need any model loaded, and maybe for the server you dont even need darkgdk at all... just a simple console app.
hope it helps

hi

Login to post a reply

Server time is: 2024-11-20 01:28:04
Your offset time is: 2024-11-20 01:28:04