Game Development Community

Some GUI troubles (radar and reticle hud)

by Adam Beer · in Torque 3D Professional · 05/14/2009 (9:39 pm) · 2 replies

I have been trying to implement the Gui Radar resource here:

http://www.garagegames.com/community/resources/view/12726

and the Reticle hud resource here:
http://www.garagegames.com/community/resources/view/13805

Both resources arent working over the network. Me and a few others connect to a dedicated server and neither of these items show what they are supposed to. I am assuming this is some sort of issue with a code change for guis that grab info from the server? I have no idea what could be causing this issue, but it is with both resources and they both dont show anything when connected to a dedicated server. Anyone have any ideas as to whats going on?

#1
05/15/2009 (6:34 am)
err the GUI Radar, surely, only needs to be clientside? So the network should have nothing to do with it!
Which leads me to beleive for (atleast) that resource, you need to tweak something somewhere client side =]

EDIT: i just looked through the files very quickly, hook up your debugger and check this statement on line 317.

// Must have a connection
	GameConnection* conn = GameConnection::getConnectionToServer();
	if (!conn) return;
	// Must have controlled object
	ShapeBase* control = conn->getControlObject();
	if (!control) return;

Maybe one of them checks is failing?
#2
05/15/2009 (1:06 pm)
Turns out it was in the lines below. I needed to make sure in the scripts I was setting setShapeName to %player.nameBase instead of %player.name.