Game Development Community

Sim::getDataBlockGroup() on client

by Lorne McIntosh · in Technical Issues · 04/23/2008 (9:04 pm) · 2 replies

Hi there,

I'm running TGEA 1.7.0. Could somebody please tell me what the expected behavior of Sim::getDataBlockGroup() on a client is? On a server it returns a SimGroup containing all loaded datablocks. On a client though, it seems to return an empty SimGroup. Is this expected?

How should I find a datablock by name on a client (in C++)?

Thanks,
Lorne

About the author

Ubiq Visuals is a software and creative content developer for the entertainment industry. Our vision is to provide inspiration and the tools for soon-to-be game designers and creative minds of all ages.


#1
04/24/2008 (7:27 am)
My understanding is that datablocks can not be found by name on the client in stock Torque. This is because the datablock names are not sent over server-to-client. This can be added for specific blocks or even for all.

There have been several discussions about this. This is one:
www.garagegames.com/mg/forums/result.thread.php?qt=65651
Notice the potential problem discussed in the latest posts.
#2
04/25/2008 (12:42 pm)
Thanks Matthew! I think I'll do things differently so I don't need datablock names on the client.