Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Custom Hud working in PIE but dissapear running on PC

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Hud working in PIE but dissapear running on PC

    hi i'm trying to setuo my custom hud for my game, the custom hud is made using scaleform, it will show and works fine in pie, but when i try to test the game running on PC the hud will dissapear and appear the default hud for the utgames

    here is my custom code

    game info
    Code:
    class ***ame extends UTGame;
    defaultproperties
    {
    	bUseClassicHUD=true
    	HUDType=class'FleshAsunderHud'
    }
    hud class
    Code:
    class FleshAsunderHud extends UTHUDBase;
    
    var ***FxHUD HudMovie;
    
    //Called when this is destroyed
    singular event Destroyed()
    {
         if (HudMovie != none)
         {
             HudMovie.Close(true);
             HudMovie = none;
         }
    
    }
    
    
    //Called after game loaded - initialise things
    simulated event PostBeginPlay()
    {
         super.PostBeginPlay();
    
         HudMovie = new class'***FxHUD';
    
         HudMovie.SetTimingMode(TM_Real);
    
         HudMovie.Init();
    }
    
    //Called every tick the HUD should be updated
    event PostRender()
    {
         local FA_PlayerController   PC;
         super.PostRender();
         PC=FA_PlayerController(Owner);
         HudMovie.TickHUD(PC.InflictedDamage);
    }
    
    DefaultProperties
    {
    
    }
    and for last my gfxmovie
    Code:
    class ***FxHUD extends GFxMoviePlayer;
    
    function Init(optional LocalPlayer LocPlay)
    {
        Start();
        Advance(0.f);
    }
    
    
    function TickHUD(float wTotalDamage)
    {
         CallShowTotalDamage(wTotalDamage);
    
    }
    
    // total damage
    function CallShowTotalDamage(float TotalDamage)
    {
         ActionScriptVoid("ShowTotalDamage");
    }
    
    DefaultProperties
    {
          bDisplayWithHudOff=false
          MovieInfo=SwfMovie'FAHUD.FAHUD'
    }
    any ideas on why my custom hud dissapear when running on PC ? i have used the scaleform hud before but in my previous games i have extending my game from GameInfo, i know that is something about UTGame, but i don't know why.

    thanks in advance for all the help ....

  • #2
    This could be your problem:

    Code:
    bUseClassicHUD=true
    Try setting that to false and it should load right up.

    Comment


    • #3
      i have changed that value to false like

      Code:
      bUseClassicHUD=false
      now the hud isn't showing on PIE

      i know that extending from GameInfo and setting bUseClassisHUD to false will work, but i need to extend my game from UTGame, any help or idea ?

      Comment


      • #4
        sorry for the bump, but any ideas on how to solve this ?

        Comment


        • #5
          Are you sure that your particular gametype is being loaded correctly? If you have other mechanics that are obviously different from UDK vanilla, you might try seeing if those are also missing.

          If that is the problem, you might make an easy fix by specifying your gametype in the URLs you use when loading maps, as in this console command:

          Code:
          open MyMap?game=MyMod.MyGameInfo

          Comment


          • #6
            my custom game is running, i have my custom camera on it and it is working right, all my custom classes are running in PIE, when i run in PC the only class that doens't run is my custom hud.

            Comment


            • #7
              sorry for bumping up my post, but i have search many times over the forum trying to find an answer for this but i can find anything.

              Comment

              Working...
              X