View Full Version : show logs and messages on a scaleform hud?
09-27-2010, 09:15 AM
does anyone know how to get the logs showing on a scaleform hud?
i followed this tutorial to make my hud
iv tried to copy bits from udkhud but i cant get it working cos its made in a very different way from mine
any help please?
09-27-2010, 10:28 AM
I would say the process would be as follows: take your hud .fla, and set up where a prospective message would be, except make the movieClip invisible (set visible=false). Inside the log, make a textfield with dynamic text. When you need to send a message, set the movieClip visible property to true, and set the field.
Now, as far as how to make that text actually display...
09-27-2010, 10:30 AM
This is as simple as using the property Settext on a flash object in UnrealScript which points to a text field in Flash.
09-27-2010, 11:29 AM
ok so what do i need to put in here?
mything.settext("the normal ut logs and messages please")
09-27-2010, 04:39 PM
This topic has been covered in the Scaleform video tutorial series - particularly the one on creating a custom menu. Please review the Getting Started with GFx sticky post for links to those.
09-27-2010, 05:24 PM
thanks matt doyle
keep up the good work!
ill persevere to the end of that video
im already familiar with flash (its a p in the a) so i just skipped through a lot of it
missed something important there oops
09-28-2010, 11:53 AM
No worries. I understand completely. The tutorial doesn't cover the specific use case you mention (displaying an Unreal log message, etc.), but it does cover how to change what a text field displays using a string. You can easily substitute the string for any variable you wish.
09-29-2010, 08:31 AM
The tutorial doesn't cover the specific use case you mention (displaying an Unreal log message, etc.)
thats what im after, its easy to display a variable and i know how to do that.
i suppose what im trying to find out is what variables represent the log and the messages
for example in my gametype i had this in postlogin
NewPlayer.ClientMessage("This Message WORKS!!!!!!!!!!!!!!!");
but now it doesnt appear
ill try mything.settext(ClientMessage) in a minute
and i have kismet logs displaying messages, or they used to
EDIT: no this doesnt work
09-29-2010, 10:20 AM
Assuming you have a text field in your Flash file on the root level of the timeline, with an instance name of 'myTextField', this code will display the string stored in the variable 'MyMessage'. Now you just need to get the UDK log message and store it in that variable.
var GFxObject MyTextField;
var string MyMessage;
MyMessage = "Something cool!";
function SetDisplayText(string message)
MyTextField = GetVariableObject("_root.myTextField");
09-29-2010, 11:45 AM
thanks but i know all that
what i dont know is how to store udk messages in a variable
i cant work out how its done in the udkhud, where does it get the messages from?
i should maybe ask this in the programming bit
10-05-2011, 02:17 AM
is there any solution for this yet ?? i been trying it but cant seem to get the output on HUD....
10-05-2011, 12:43 PM
This probably isn't the best forum to ask this question, as getting the UDK log messages into a variable is not Scaleform specific. Try the programming forum.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.