Announcement

Collapse
No announcement yet.

Help with ScaleForm

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

    Help with ScaleForm

    Hi all, new here in the forums. Im doing some research on Scaleform, trying to do a simple HUD for our game in college.

    I have a simple swf with only three yellow squares in the top left corner, like item holders. I've found a tutorial to create a simple HudWrapper to use SF, but I couldnt make it work. Although I can open the swf normally via kismet node 'Open Gfx Movie'.

    Im using UDK-2010-09 and the SF that came with it.

    FxHudGameInfo.uc

    Code:
    class FxHudGameInfo extends UTGame;
    
    DefaultProperties
    {
    	bUseClassicHUD = true;
    	bGivePhysicsGun = false;
    	HUDType = class'HudWrapper';
    }
    HudWrapper.uc

    Code:
    class HudWrapper extends UTHUDBase;
    
    var FxHUD HUDMovie;
    
    simulated function PostBeginPlay()
    {
    	super.PostBeginPlay();
    
    	HUDMovie = new class'FxHud';
    
    	HUDMovie.SetTimingMode(TM_Real);
    
    	HUDMovie.Init();
    }
    
    event PostRender()
    {
    	super.PostRender();
    
    	if (HUDMovie != none)
    	{
    		HUDMovie.TickHUD();
    	}
    
        DrawHUD();
    }
    FxHUD.uc
    Code:
    class FxHUD extends GFxMoviePlayer;
    
    function TickHUD()
    {
    
    }
    
    function Init( optional LocalPlayer LocPlay)
    {
    	super.Init(LocPlay);
    	Start();
    	Advance(0.f);
    }
    
    
    DefaultProperties
    {
    	MovieInfo = SwfMovie'MySFHud.SFHud'
    	bDisplayWithHudOff = false;
    	bIgnoreMouseInput = false;
    	bAutoPlay = true;
    }

    Am I missing something or maybe everything? lol Any help will be appreciated.

    #2
    Try...

    Code:
    bUseClassicHUD = false

    Comment


      #3
      Post log here, i have one guess
      UPD. It seems, my guess, even if it is correct, hasn't any connection to this

      Comment


        #4
        Strangely working now..

        The only I've done is reimporting the swf package and compiling the .uc files, cause now Im at work and before I was at college's computer.

        Any thoughts? Is this something that often happens?

        There goes the log:

        Code:
        Init: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
        Init: Version: 7258
        Init: Epic Internal: 0
        Init: Compiled (32-bit): Sep 14 2010 14:54:36
        Init: Changelist: 641002
        Init: Command line: editor -log -DEFENGINEINI=..\..\UDKGame\Config\DefaultEngine.ini
        Init: Base directory: C:\UDK\UDK-2010-09\Binaries\Win32\
        DevConfig: GConfig::LoadFile associated file:  ..\..\UDKGame\Config\UDKCompat.ini
        [0000.11] Init: Computer: E-4053
        [0000.11] Init: User: ayslanmarques
        [0000.11] Init: CPU Page size=4096, Processors=4
        [0000.11] Init: High frequency timer resolution =3.020517 MHz
        [0000.11] Init: Memory total: Physical=3.9GB Pagefile=7.8GB Virtual=4.0GB
        [0000.11] Log: STEAMWORKS initialized 0
        [0000.14] Init: WinSock: I am E-4053 (192.168.2.212:0)
        [0000.14] Init: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
        [0000.14] Init: Object subsystem initialized
        [0000.18] Log: Shader platform (RHI): PC-D3D-SM3
        [0000.39] Log: PhysX GPU Support: DISABLED
        [0000.39] Init: Initializing FaceFX...
        [0000.39] Init: FaceFX 1.7.3.1 initialized.
        [0001.77] Init: Finished loading startup packages in 1.29 seconds
        [0001.77] Log: 88409 objects as part of root set at end of initial load.
        [0001.77] Log: 0 out of 0 bytes used by permanent object pool.
        [0001.77] Log: Supported Consoles:
        [0001.77] Log:   PC
        [0001.77] Log: Initializing Engine...
        [0001.81] Log: Encountered missing default brush - spawning new one
        [0001.81] Init: UEngine initialized
        [0001.82] Init: Transaction tracking system initialized
        [0001.82] Log: Can't find edit package 'OnlineSubsystemGameSpy'
        [0001.83] Log: Can't find edit package 'OnlineSubsystemLive'
        [0002.19] Init: XAudio2 using 'Alto-falantes (Conexant HD Audio)' : 2 channels at 48 kHz using 32 bits per sample (channel mask 0x3)
        [0002.21] Warning: The Outer object (Package A_interface.RadioChirps) for 'A_Interface.RadioChirps.Radio_ChirpIn01' couldn't be loaded [while loading package A_
        interface]: Invalid linker index [couldn't load Package A_interface.RadioChirps]?
        [0002.21] Warning: Failed to load 'SoundNodeWave A_interface.RadioChirps.Radio_ChirpIn01': Failed to find object 'SoundNodeWave A_interface.RadioChirps.Radio_Ch
        irpIn01'
        [0002.21] Warning: The Outer object (Package A_interface.RadioChirps) for 'A_Interface.RadioChirps.Radio_ChirpOut01' couldn't be loaded [while loading package A
        _interface]: Invalid linker index [couldn't load Package A_interface.RadioChirps]?
        [0002.21] Warning: Failed to load 'SoundNodeWave A_interface.RadioChirps.Radio_ChirpOut01': Failed to find object 'SoundNodeWave A_interface.RadioChirps.Radio_C
        hirpOut01'
        [0002.21] Init: XAudio2Device initialized.
        [0002.25] Init: Client initialized
        [0002.25] Init: Editor engine initialized
        [0002.30] Log: Initializing Engine Completed
        [0002.30] Log: >>>>>>>>>>>>>> Initial startup: 2.30s <<<<<<<<<<<<<<<
        [0002.33] Cmd: MODE MAPEXT=udk
        [0002.38] SourceControl: Source Control disabled in GAMEEditorUserSettings.ini.  [SourceControl] has Disabled=False
        [0004.27] Log: TIMER ALL OF INIT : [3.861910]
        [0008.23] Cmd: MAP LOAD FILE="C:\Users\ayslanmarques\Desktop\SFHud.udk"
        [0008.29] Log: Encountered missing default brush - spawning new one
        [0008.54] Log: -- Checking Building LODs
        [0008.55] Log: Primary PhysX scene will be in software.
        [0008.55] Log: Creating Primary PhysX Scene.
        [0008.55] Log: APEX Warning: Debug Warning: Unable to find AgPerfMon.dll
        [0008.55] Log: Finished looking for orphan Actors (0.003 secs)
        [0008.58] Cmd: MAP CHECKDEP DONTCLEARMESSAGES
        [0059.23] Log:
        ==== Worlds needing PIE Save:
        [0059.23] Log: SFHud
        [0059.23] Log: ==== 1 total
        [0059.26] Log: Built Phys StaticMesh Cache: 1.661 ms
        [0059.26] Log: COOKEDPHYSICS: 0 TriMeshes (0.000000 KB), 0 Convex Hulls (0.000000 KB) - Total 0.000000 KB
        [0059.27] Log: COOKEDPHYSICS: BSP 0.65 KB
        [0059.31] Log: Save=55.842758
        [0059.32] Log: Moving 'C:\UDK\UDK-2010-09\Binaries\Win32\..\..\UDKGame\Autosaves\Save.tmp' to 'C:\UDK\UDK-2010-09\Binaries\Win32\..\..\UDKGame\Autosaves\UEDPIES
        FHud.udk'
        [0059.34] Cmd: MAP LOAD PLAYWORLD=1 FILE="C:\UDK\UDK-2010-09\Binaries\Win32\..\..\UDKGame\Autosaves\UEDPIESFHud.udk"
        [0059.34] Log: Finished looking for orphan Actors (0.002 secs)
        [0059.34] Log: Spawned Clear paths rebuilt
        [0059.34] Log: Game class is 'FxHudGameInfo'
        [0059.35] Log: Primary PhysX scene will be in software.
        [0059.35] Log: Creating Primary PhysX Scene.
        [0059.36] Log: APEX Warning: Debug Warning: Unable to find AgPerfMon.dll
        [0059.36] Log: Bringing World UEDPIESFHud.TheWorld up for play (0) at 2012.05.15-10.41.44
        [0059.37] Log: Bringing up level for play took: 0.015289
        [0059.38] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0059.38] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0059.39] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0059.39] Log: GFx attempted to load missing object [?INT?GFxUI.IME.MoviePath?]
        [0059.39] ScriptWarning: Accessed None 'OnlineSub'
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_0
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:0033
        [0059.39] ScriptWarning: Accessed None 'OnlineSub'
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_0
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:02D1
        [0059.39] ScriptWarning: Accessed None
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_0
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:02E5
        [0059.42] Log: PIE: play in editor start time for UEDPIESFHud 0.278
        [0059.44] Cmd: SETSOUNDMODE Default
        [0059.44] ScriptLog: START MATCH
        [0066.09] Cmd: onrelease ShowMenu
        [0067.22] Log:
        ==== Worlds needing PIE Save:
        [0067.22] Log: ==== 0 total
        [0067.23] Cmd: MAP LOAD PLAYWORLD=1 FILE="C:\UDK\UDK-2010-09\Binaries\Win32\..\..\UDKGame\Autosaves\UEDPIESFHud.udk"
        [0067.23] Log: Finished looking for orphan Actors (0.002 secs)
        [0067.23] Log: Game class is 'FxHudGameInfo'
        [0067.24] Log: Primary PhysX scene will be in software.
        [0067.24] Log: Creating Primary PhysX Scene.
        [0067.24] Log: APEX Warning: Debug Warning: Unable to find AgPerfMon.dll
        [0067.24] Log: Bringing World UEDPIESFHud.TheWorld up for play (0) at 2012.05.15-10.41.52
        [0067.25] Log: Bringing up level for play took: 0.012816
        [0067.26] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0067.26] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0067.26] Warning: Failed to load 'SwfMovie ?INT?GFxUI.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?GFxUI.IME.MoviePath?'
        [0067.26] Log: GFx attempted to load missing object [?INT?GFxUI.IME.MoviePath?]
        [0067.26] ScriptWarning: Accessed None 'OnlineSub'
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_1
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:0033
        [0067.26] ScriptWarning: Accessed None 'OnlineSub'
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_1
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:02D1
        [0067.27] ScriptWarning: Accessed None
                UTPlayerController UEDPIESFHud.TheWorld:PersistentLevel.UTPlayerController_1
                Function UTGame.UTPlayerController:ClientSetOnlineStatus:02E5
        [0067.30] Log: PIE: play in editor start time for UEDPIESFHud 0.157
        [0067.37] Cmd: SETSOUNDMODE Default
        [0067.37] ScriptLog: START MATCH
        [0069.60] Cmd: onrelease ShowMenu

        Comment


          #5
          One question - where did you saved package with your HUD swf?

          Comment


            #6
            Location of the swf:
            UDKGame\Flash\MySFHud

            When it prompted the location to save the package, I've hit Ok in the default 'Content' directory.

            But its working and I guess it's a good start for SF Huds, few lines of code.

            I need to do some animation when I pickup some item, like a key. As far as I know, I have to create another 'GFxMoviePlayer' Hud only for the animation. Am I correct?

            Thanks in advance.

            Comment

            Working...
            X