Game Development Community

CH5] messageClient function not displaying text ingame

by Andreas Johansen · in Torque Game Engine · 06/15/2006 (6:41 am) · 2 replies

I got the emaga5 game as it is in chapter 5 running with everything working except for messaging the player when picking up items. In the code from chapter 5 there is for example this command in the Weapon::onUse function:

Quote:messageClient(%obj.client, 'MsgWeaponUsed', '\c0Weapon selected');

However, ingame nothing displays. In the console.log file however this gets added on first encounter of a messageClient call;

Quote:Mapping string: MsgItemPickup to index: 13
Mapping string: You picked up %1 to index: 14
Mapping string: MsgWeaponUsed to index: 15
Mapping string: Weapon selected to index: 16

So, the function seem to run, but not displaying anything to the player in the HUD ingame...

#1
06/15/2006 (7:12 am)
I noticed that too, both in the typed-in and on-disc copies. I'm just starting Chapter 6, which is about messenging, and which uses Emaga5 as a template, and I'm assumed the messenging lines are precursors to chapter 6 material.

Anybody already know?
#2
06/15/2006 (7:57 am)
Can't find the method 'ServerMessage' that gets sent to the client using the 'messageClient' function. And there also isn't any GuiTextCtrl created in the playerinterface.gui file for holding messages to the player.