Game Development Community

RPC probs

by M · in Torque Game Engine · 04/22/2005 (8:17 am) · 5 replies

Hi,

ok, I have been using the RPC calls to send data i need to be delivered. I am now sending strings (for chat). I saw the way you send strings in the examples using const char* to the message you wish to send. Seems obvious. However, when I send const char* data, the recipiant has a bad pointer. If i change the funcs to send S32's then it gets the correct data through, so its not the how and why's of the functions, or where im calling them.

Any ideas? Do you need to override anything, or add new types to the write functions to use const char*'s?

( PS, at the moment im using 1.4 not the new 1.5).

cheers,
M

#1
04/22/2005 (8:24 am)
Oic, just read another post,
can you not use const char*?

StringPtr to be used in its stead?

will try it
#2
04/22/2005 (8:26 am)
Is StringPtr new to 1.5?
#3
04/22/2005 (8:27 am)
Im....actually....monologging... :)
#4
04/22/2005 (8:44 am)
EDIT: Bah was looking at TGE versions not TNL versions :)
#5
04/24/2005 (6:07 pm)
No need to put my name in the thread name. I certainly don't want to be the default help guy!

Yes, use StringPtr instead.