Game Development Community

How to access the client copy of information?

by Joy Box · in Torque Game Engine · 11/05/2006 (4:16 am) · 9 replies

I need to access the players data from the client to use this information with the gui of my game, I tried to send them 10 times per second from script by the function "commandToClient" but it had slowed down the performance of networking too much.

the players are always rendered on the client's screen, so I think there is a copy of information in the client, I want only to access these information (read only).

can anyone help me please????

#1
11/05/2006 (6:41 am)
Sending commandToClient 10 times per second should not slow down performance of networking by anything, really.

To your question: What information are you looking for, exactly?
#2
11/06/2006 (12:42 am)
Yes it doesn't slow performance when it have no parameters, but when it have a string containing 12 numbers as a parameter it really slow down the performance.

i need to have the information about positions of players to use them in rendering minimap.
#3
11/06/2006 (1:34 am)
Use getTransform () on the ghosts?
#4
11/06/2006 (1:47 am)
Which ghosts?? i mean how can i get them??
#5
11/06/2006 (1:59 am)
You really need to send it 10 times per sec ?
#6
11/06/2006 (2:00 am)
You don't send that stuff over the wire Aun, it's already available on the client. How else would it be able to render them if not?

Joy, if this is all greek to you then you are in deep waters and you should check out the radar resource. It does all this already and if you dont want to use it then at least learn from it.

Edit: Ghosting is not something you can describe in a single post, which is why I suggest you look at the radar resource :) All objects within your clients scope is ghosted to it and thus you can grab their transforms.
#7
11/06/2006 (2:55 am)
Which ghosts?? i mean how can i get them??
#8
11/06/2006 (3:04 am)
Quote:
Joy, if this is all greek to you then you are in deep waters and you should check out the radar resource. It does all this already and if you dont want to use it then at least learn from it.

?
#9
11/06/2006 (11:40 pm)
Thank you all for help, and sorry for reposting, but it was because of an error on my pc.

i've got the resource and i think it will help