A few problems here...
I'm using a font by importing into the editor and editing the localisation file to match it up to the Flash file. 2nd method in this video: http://www.youtube.com/watch?v=QP-MawV87Vc
1. Once I create a new font in Flash I can no longer save the file.
This happens even if I save as a new file.
Unable to save the document as "C:/UDK/etc etc etc" Please try saving to a different filename or to a different location.
2. I can import the font into the editor just fine, and connect the font in the editor to the text field in the Flash file by editing GFxUI.int in the localisation folder. But ingame it only appears as the default Flash font. All steps in the video were followed.
3. I'm following this script (which is a bit outdated with the "PlayerOwner" thing, but otherwise good) and when I get it to put some custom text in, I get blank boxes.
The text field and movie clip are named appropriately and set to Dynamic Text. The HealthTF.SetString happens in TickHUD()
var GFxObject HealthTF;
HealthTF = GetVariableObject("_root.healthbar_mc.health_txt");
4. If I change the "test" text above to the variable LastHealthpc as below:
then I get the compile error:
var int LastHealthpc;
LastHealthpc = MyPawn.Health;
So much going wrong... Spent all day and have gotten nowhere. Any suggestions?
C:\UDK\UDK-2012-01\Development\Src\MonkeyTag\Classes\MonkeyGFxHUD. uc(41) : Error, Type mismatch in Call to 'SetString', parameter 2