Game Development Community

WritePacketData vs PackUpdate

by Fraser Graham · in Technical Issues · 03/11/2007 (6:47 pm) · 3 replies

I'm sure this question has been asked and answered before but I can't find a good clear description anywhere. Could somebody elaborate on the differences between the read/writePacketData() functions and pack/unpackUpdate()?

Also, I'm trying to get my head around where cameras fit into the networking architecture? In other engines i've worked on the camera has never been a network object so in my mind I don't see why I need to send it's data back and forth. I understand the scope issues and managing what other objects need to be sent to a client but I'm focusing on a single player game and I really wish I could just treat a camera as a client side object and move it around without the hassle of keeping the server happy. Can anyone suggest a good resource on cameras in relation to Torque Networking?

Thanks,

Fraser

#1
03/11/2007 (7:41 pm)
Should be in the private forums ;P, these aren't even the Torque forums (posters are so sloppy sometimes. THAT is why I don't make threads ;) )

There's plenty of good explanation in the engine comments (more helpful than the docs sometimes).

read/write packet data writes state information necessary to perform client side prediction of an object.
It should be noted that this information is sent only to the controling object. For example, if you are a client controlling a Player, the server uses writePacketData() instead of packUpdate() to generate the data you receive.

Ripped clean out of the source comments, paraphrased. Someone else answer the others >.>
#2
03/11/2007 (7:52 pm)
Forgive me for being "sloppy" but I've never seen or heard of any other forums, I have purchased Torque and logged into the site and these are the only forums I see. If I am supposed to be posting somewhere else then please tell me where and I will.
#3
03/11/2007 (8:05 pm)
Heh, it was just a joke man ;)

No no no don't take anything I say except explanations seriously. Now onto the topic at hand.

Torque scripting problems and such you should post in the torque public forums, problems and questions that will involve discussion of the source code however must go in the private forums. You can find them both by going to community->forums and scrolling till you see the sections. There are little bits of info under each section to tell you where to post (getting started, engine, general discussion, etc). I'm sorry about any mixup. If you can't see the forums just go to community -> edit subscriptions (or something like that) and it should be fairly easy from there. Good luck and happy Torquing.