Results 1 to 6 of 6
  1. #1
    Redeemer
    Join Date
    May 2012
    Location
    Barcelona
    Posts
    1,559

    Default access variables from an external SWF , not working

    So i decided to follow this "tutorial" http://udn.epicgames.com/Three/GFxVariableAccess.html


    So i used the QuickStart.Fla file and i placed the following variables in the actions layer , " wich i guess it's in the main timeline"

    Code:
    var MyString:String = "Something cool";
    var MyNumber:Number = 37;
    var MyBoolean:Boolean = true;
    After that in my UIScene_Profile
    i placed the following code
    Code:
    var bool myBoolean;
    var string myString;
    var float myNumber;
    
    var GFxObject RootMC
    
    RootMC = GetVariableObject("_root");
    
    /* Get AS Vars */
    myBoolean = RootMC.GetBool("MyBoolean");
    myString = RootMC.GetString("MyString");
    myNumber = RootMC.GetFloat("MyNumber");
       
    `log("##### MyBoolean: "@myBoolean);
    `log("##### MyString: "@myString);
    `log("##### MyNumber: "@myNumber);
    
    /* Set AS Vars */
    RootMC.SetBool("MyBoolean", false);
    RootMC.SetString("MyString", "Something AWESOME!");
    RootMC.SetFloat("MyNumber", 100);
    
    `log("##### MyString changed to: "@RootMC.GetString("MyString"));
    Yes everything like it was supposed to be , Vars decalred up and , the rest of the stuff down on a funtion.

    " Full code of the UI_SceneProfile

    Code:
    class UIScene_Profile extends GFxMoviePlayer;
    
    var bool myBoolean;
    var string myString;
    var float myNumber;
    
    var GFxObject RootMC;
    
    
    /** Reference to the label used to display the message on the UI */
    var GFxObject MessageLabel;
    
    /** Reference to the text field used to enter the player's name */
    var GFxObject PlayerText;
    
    /** Reference to the text field used to enter the player's title */
    var GFxObject TitleText;
    
    /** Reference to the text field used to enter the player's clan */
    var GFxObject ClanText;
    
    /** Reference to the button used to save the profile info - must add a widget binding since we expect a GFxCLIKWidget */
    var GFxCLIKWidget SaveButton;
    
    /** Reference to the button used to close the UI - must add a widget binding since we expect a GFxCLIKWidget */
    var GFxCLIKWidget ExitButton;
    
    // Called when the UI is opened to start the movie
    function bool Start(optional bool StartPaused = false)
    {
    
    
    
    
    RootMC = GetVariableObject("_root");
    
    /* Get AS Vars */
    myBoolean = RootMC.GetBool("MyBoolean");
    myString = RootMC.GetString("MyString");
    myNumber = RootMC.GetFloat("MyNumber");
       
    `log("##### MyBoolean: "@myBoolean);
    `log("##### MyString: "@myString);
    `log("##### MyNumber: "@myNumber);
    
    /* Set AS Vars */
    RootMC.SetBool("MyBoolean", false);
    RootMC.SetString("MyString", "Something AWESOME!");
    RootMC.SetFloat("MyNumber", 100);
    
    `log("##### MyString changed to: "@RootMC.GetString("MyString"));
    
    	// Start playing the movie
        Super.Start();
    
    	// Initialize all objects in the movie
        Advance(0);
    
        return true;
    }
    
    // Callback automatically called for each object in the movie with enableInitCallback enabled
    event bool WidgetInitialized(name WidgetName, name WidgetPath, GFxObject Widget)
    {
        // Determine which widget is being initialized and handle it accordingly
        switch(Widgetname)
        {
            case 'messageLabel':
            	// Save reference to the label that displays the message to the player
                MessageLabel = Widget;
                break;
            case 'playerText':
            	// Save reference to the text field for the player's name
                PlayerText = Widget;
                break;
            case 'titleText':
            	// Save reference to the text field for the player's title
                TitleText = Widget;
                break;
            case 'clanText':
            	// Save reference to the text field for the player's clan
                ClanText = Widget;
                break;
            case 'saveButton':
            	// Save reference to the button that saves the profile info
    		// the Widget is cast to a GFxCLIKWidget to allow for event listeners - see WidgetBindings
                SaveButton = GFxCLIKWidget(Widget);
                // Add a delegate for when this button is clicked
                SaveButton.AddEventListener('CLIK_click', SavePlayerData);
                break;
            case 'exitButton':
            	// Save reference to the button that closes the UI
    		// the Widget is cast to a GFxCLIKWidget to allow for event listeners - see WidgetBindings
                ExitButton = GFxCLIKWidget(Widget);
                // Add a delegate for when this button is clicked
                ExitButton.AddEventListener('CLIK_click', CloseMovie);
                break;
            default:
            	// Pass on if not a widget we are looking for
                return Super.WidgetInitialized(Widgetname, WidgetPath, Widget);
        }
        
        return false;
    }
    
    // Delegate added to change the message using the data entered
    //In a real game situation, the data would be saved somewhere
    function SavePlayerData(EventData data)
    {
        // Only on left mouse button
        if(data.mouseIndex == 0)
        {
        	// Set the text property of the message label using the profile info entered
            MessageLabel.SetString("text", "Welcome,"@PlayerText.GetString("text")@"("$TitleText.GetString("text")@"in"@ClanText.GetString("text")$")");
        }
    }
    
    // Delegate added to close the movie
    function CloseMovie(EventData data)
    {
        // Only on left mouse button
        if(data.mouseIndex == 0)
        {
        	// Close the UI
            Close();
        }
    }
    
    defaultproperties
    {
        // The imported SWF to use
    	MovieInfo=SwfMovie'UDNHud.UI_QuickStart'
    
        // Set widget bindings so the Widget passed to
        // WidgetInitialized for the buttons is a GFxCLICKWidget
        WidgetBindings.Add((WidgetName="saveButton",WidgetClass=class'GFxCLIKWidget'))
        WidgetBindings.Add((WidgetName="exitButton",WidgetClass=class'GFxCLIKWidget'))
    
        // Set properties for the movie
        // TimingMode=TM_Real makes the menu run while the game is paused
        bDisplayWithHudOff=TRUE
        TimingMode=TM_Real
    	bPauseGameWhileActive=TRUE
    	bCaptureInput=true
    }


    But i don't think that it works because in the Log File i get this

    Code:
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0036
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:006A
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:009D
    [0186.67] ScriptLog: ##### MyBoolean:  False
    [0186.67] ScriptLog: ##### MyString:  
    [0186.67] ScriptLog: ##### MyNumber:  0.0000
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:012C
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0157
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0195
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:01E2
    [0186.67] ScriptLog: ##### MyString changed to:  
    [0186.67] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Warning: Failed to load 'Font None.Arial': Failed to find object 'Font None.Arial'
    [0186.68] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Log: GFx attempted to load missing object [?INT?Scaleform.IME.MoviePath?]
    as you can see nothing was readen from my QuickStart swf


    Full log here

    Code:
    Log: Log file open, 06/15/12 12:50:32
    Init: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
    DevConfig: GConfig::LoadFile associated file:  ..\..\UDKGame\Config\UDKCompat.ini
    DevConfig: GConfig::Find has loaded file:  ..\..\Engine\Config\ConsoleVariables.ini
    Init: Version: 9953
    Init: Epic Internal: 0
    Init: Compiled (64-bit): May 11 2012 08:56:27
    Init: Changelist: 1260027
    Init: Command line: editor 
    Init: Base directory: C:\UDK\UDK-2012-05\Binaries\Win64\
    [0000.17] Init: Computer: NEON-PC
    [0000.17] Init: User: neon
    [0000.17] Init: CPU Page size=4096, Processors=2
    [0000.17] Init: High frequency timer resolution =2.083369 MHz
    [0000.17] Init: Memory total: Physical=2.0GB (2GB approx) Pagefile=4.0GB Virtual=8192.0GB
    [0000.17] Log: Steam Client API Disabled!
    [0000.19] Init: WinSock: I am neon-PC (192.168.0.138:0)
    [0000.19] Init: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
    [0000.20] Init: Object subsystem initialized
    [0000.20] Warning: Warning, Unknown language extension ESN. Defaulting to INT
    [0000.29] Log: Shader platform (RHI): PC-D3D-SM3
    [0000.65] Log: PhysX GPU Support: DISABLED
    [0000.65] Init: Initializing FaceFX...
    [0000.65] Init: FaceFX 1.7.4 initialized.
    [0008.72] Init: Finished loading startup packages in 7.50 seconds
    [0008.73] Log: 80088 objects as part of root set at end of initial load.
    [0008.73] Log: 0 out of 0 bytes used by permanent object pool.
    [0010.98] Log: Supported Consoles:
    [0010.98] Log:   IPhone
    [0010.98] Log:   Mac
    [0010.98] Log:   PC
    [0010.98] Log: Initializing Engine...
    [0011.18] Log: Encountered missing default brush - spawning new one
    [0011.19] Init: UEngine initialized
    [0011.19] Log: Primary PhysX scene will be in software.
    [0011.19] Log: Creating Primary PhysX Scene.
    [0011.20] Init: Transaction tracking system initialized
    [0011.22] Log: Can't find edit package 'OnlineSubsystemGameSpy'
    [0011.22] Log: Can't find edit package 'OnlineSubsystemLive'
    [0016.74] Init: XAudio2 using 'Altavoces (2- Dispositivo de High Definition Audio)' : 2 channels at 44.1 kHz using 16 bits per sample (channel mask 0x3)
    [0016.77] Init: XAudio2Device initialized.
    [0016.90] Init: Client initialized
    [0016.90] Init: Editor engine initialized
    [0017.41] Log: Initializing Engine Completed
    [0017.41] Log: >>>>>>>>>>>>>> Initial startup: 17.41s <<<<<<<<<<<<<<<
    [0017.54] Cmd: MODE MAPEXT=udk
    [0018.41] SourceControl: Source Control disabled in UDKEditorUserSettings.ini.  [SourceControl] has Disabled=True
    [0023.99] Cmd: MAP LOAD FILE="..\..\Engine\Content\Maps\Templates\Template_MidDay.umap" TEMPLATE=0
    [0024.38] Log: Encountered missing default brush - spawning new one
    [0024.88] Log: New File, Existing Package (Package Untitled_2, Package template_midday)
    [0025.26] Log: -- Checking Building LODs
    [0025.27] Log: Primary PhysX scene will be in software.
    [0025.28] Log: Creating Primary PhysX Scene.
    [0025.28] Log: Finished looking for orphan Actors (0.007 secs)
    [0025.29] Cmd: MAP CHECKDEP DONTCLEARMESSAGES DONTDOSLOWREFCHECK
    [0025.30] Log: TIMER ALL OF INIT : [24.604215]
    [0073.32] Log: FactoryCreateBinary: SwfMovie with GFxMovieFactory (0 0 C:\UDK\UDK-2012-05\UDKGame\Flash\UDNHud\UI_QuickStart.swf)
    [0073.48] Log: Running: "C:\UDK\UDK-2012-05\Binaries\GFx\gfxexport.exe"  -i TGA -rescale  mult4  "C:\UDK\UDK-2012-05\UDKGame\GFxExportTemp\UI_QuickStart.swf" -d "C:\UDK\UDK-2012-05\UDKGame\GFxExportTemp" -replace_images -id "C:\UDK\UDK-2012-05\UDKGame\Flash\UDNHud\UI_QuickStart".
    [0077.31] Log: Importing "cursor.tga"
    [0077.31] Log: FactoryCreateBinary: Texture2D with TextureFactory (0 0 C:\UDK\UDK-2012-05\UDKGame\GFxExportTemp\cursor.tga)
    [0077.36] Log: Importing "ui_bkgd.tga"
    [0077.36] Log: FactoryCreateBinary: Texture2D with TextureFactory (0 0 C:\UDK\UDK-2012-05\UDKGame\GFxExportTemp\ui_bkgd.tga)
    [0097.57] Log: Skipping  ""
    [0097.57] Log: Skipping  ""
    [0122.50] Log: Created new SeqEvent_LevelLoaded_0 in sequence Main_Sequence
    [0127.17] Log: Created new GFxAction_OpenMovie_0 in sequence Main_Sequence
    [0141.64] Log: 
    ==== Worlds needing PIE Save:
    [0141.64] Log: Untitled_2
    [0141.64] Log: ==== 1 total
    [0141.79] Log: Built Phys StaticMesh Cache: 79.723 ms
    [0141.79] Log: COOKEDPHYSICS: 0 TriMeshes (0.000000 KB), 2 Convex Hulls (2.164063 KB) - Total 2.164063 KB
    [0142.01] Log: Save=225.126706
    [0142.01] Log: Moving 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2_save.tmp' to 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk'
    [0142.06] Cmd: MAP LOAD PLAYWORLD=1 FILE="C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk"
    [0142.30] Log: Finished looking for orphan Actors (0.008 secs)
    [0142.30] Log: Game class is 'SimpleGame'
    [0142.33] Log: Primary PhysX scene will be in software.
    [0142.33] Log: Creating Primary PhysX Scene.
    [0142.33] Log: Bringing World uedpieuntitled_2.TheWorld up for play (0) at 2012.06.15-12.52.54
    [0142.33] Log: Bringing up level for play took: 0.011116
    [0142.38] Log: PIE: play in editor start time for UEDPIEUntitled_2 1.026
    [0142.42] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0142.43] Warning: Failed to load 'Font None.Arial': Failed to find object 'Font None.Arial'
    [0142.43] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0142.43] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0142.43] Log: GFx attempted to load missing object [?INT?Scaleform.IME.MoviePath?]
    [0144.36] Cmd: StartFire 
    [0144.36] Cmd: OnRelease StopFire
    [0144.48] Cmd: StopFire
    [0145.44] Cmd: StartFire 
    [0145.44] Cmd: OnRelease StopFire
    [0145.57] Cmd: StopFire
    [0146.22] Cmd: StartFire 
    [0146.22] Cmd: OnRelease StopFire
    [0146.35] Cmd: StopFire
    [0146.74] Cmd: StartFire 
    [0146.74] Cmd: OnRelease StopFire
    [0146.87] Cmd: StopFire
    [0149.80] Cmd: onrelease ShowMenu
    [0150.08] Cmd: UpdateLandscapeSetup
    [0162.35] Log: 
    ==== Worlds needing PIE Save:
    [0162.35] Log: Untitled_2
    [0162.35] Log: ==== 1 total
    [0162.42] Log: Built Phys StaticMesh Cache: 6.818 ms
    [0162.42] Log: COOKEDPHYSICS: 0 TriMeshes (0.000000 KB), 2 Convex Hulls (2.164063 KB) - Total 2.164063 KB
    [0162.57] Log: Save=150.065111
    [0162.57] Log: Moving 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2_save.tmp' to 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk'
    [0162.62] Cmd: MAP LOAD PLAYWORLD=1 FILE="C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk"
    [0162.85] Log: Finished looking for orphan Actors (0.008 secs)
    [0162.85] Log: Game class is 'SimpleGame'
    [0162.88] Log: Primary PhysX scene will be in software.
    [0162.88] Log: Creating Primary PhysX Scene.
    [0162.88] Log: Bringing World uedpieuntitled_2.TheWorld up for play (0) at 2012.06.15-12.53.14
    [0162.88] Log: Bringing up level for play took: 0.010827
    [0162.92] Log: PIE: play in editor start time for UEDPIEUntitled_2 0.830
    [0162.93] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0162.93] Warning: Failed to load 'Font None.Arial': Failed to find object 'Font None.Arial'
    [0162.94] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0162.94] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0162.94] Log: GFx attempted to load missing object [?INT?Scaleform.IME.MoviePath?]
    [0164.48] Cmd: StartFire 
    [0164.48] Cmd: OnRelease StopFire
    [0164.60] Cmd: StopFire
    [0164.98] Cmd: StartFire 
    [0164.98] Cmd: OnRelease StopFire
    [0165.07] Cmd: StopFire
    [0165.14] Cmd: StartFire 
    [0165.14] Cmd: OnRelease StopFire
    [0165.26] Cmd: StopFire
    [0169.30] Cmd: StartFire 
    [0169.30] Cmd: OnRelease StopFire
    [0169.38] Cmd: StopFire
    [0177.11] Cmd: onrelease ShowMenu
    [0177.38] Cmd: UpdateLandscapeSetup
    [0186.10] Log: 
    ==== Worlds needing PIE Save:
    [0186.10] Log: Untitled_2
    [0186.10] Log: ==== 1 total
    [0186.17] Log: Built Phys StaticMesh Cache: 5.725 ms
    [0186.17] Log: COOKEDPHYSICS: 0 TriMeshes (0.000000 KB), 2 Convex Hulls (2.164063 KB) - Total 2.164063 KB
    [0186.32] Log: Save=151.612124
    [0186.32] Log: Moving 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2_save.tmp' to 'C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk'
    [0186.36] Cmd: MAP LOAD PLAYWORLD=1 FILE="C:\UDK\UDK-2012-05\Binaries\Win64\..\..\UDKGame\Autosaves\UEDPIEUntitled_2.udk"
    [0186.59] Log: Finished looking for orphan Actors (0.008 secs)
    [0186.59] Log: Game class is 'SimpleGame'
    [0186.62] Log: Primary PhysX scene will be in software.
    [0186.62] Log: Creating Primary PhysX Scene.
    [0186.62] Log: Bringing World uedpieuntitled_2.TheWorld up for play (0) at 2012.06.15-12.53.38
    [0186.63] Log: Bringing up level for play took: 0.011059
    [0186.67] Log: PIE: play in editor start time for UEDPIEUntitled_2 0.821
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0036
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:006A
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:009D
    [0186.67] ScriptLog: ##### MyBoolean:  False
    [0186.67] ScriptLog: ##### MyString:  
    [0186.67] ScriptLog: ##### MyNumber:  0.0000
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:012C
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0157
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:0195
    [0186.67] ScriptWarning: Accessed None 'RootMC'
    	UIScene_Profile uedpieuntitled_2.TheWorld:PersistentLevel.Main_Sequence.UIScene_Profile_0
    	Function utgame.UIScene_Profile:Start:01E2
    [0186.67] ScriptLog: ##### MyString changed to:  
    [0186.67] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Warning: Failed to load 'Font None.Arial': Failed to find object 'Font None.Arial'
    [0186.68] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Warning: Failed to load 'SwfMovie ?INT?Scaleform.IME.MoviePath?': Failed to find object 'SwfMovie ?INT?Scaleform.IME.MoviePath?'
    [0186.68] Log: GFx attempted to load missing object [?INT?Scaleform.IME.MoviePath?]
    [0188.79] Cmd: StartFire 
    [0188.79] Cmd: OnRelease StopFire
    [0188.91] Cmd: StopFire
    [0189.74] Cmd: onrelease ShowMenu
    [0190.01] Cmd: UpdateLandscapeSetup
    [0224.37] Log: Built Phys StaticMesh Cache: 12.208 ms
    [0224.37] Log: COOKEDPHYSICS: 0 TriMeshes (0.000000 KB), 2 Convex Hulls (2.164063 KB) - Total 2.164063 KB
    [0224.72] Log: Save=154.073042
    [0224.72] Log: Moving 'C:\UDK\UDK-2012-05\UDKGame\Content\Maps\Map test_save.tmp' to 'C:\UDK\UDK-2012-05\UDKGame\Content\Maps\Map test.udk'
    [0224.76] Log: Saving Map: Untitled_2
    [0224.78] Log: OBJ SavePackage: Generating thumbnails for [0] asset(s) in package [UDNHud] ([3] browsable assets)...
    [0224.78] Log: OBJ SavePackage: Finished generating thumbnails for package [UDNHud]
    [0224.78] Cmd: OBJ SAVEPACKAGE PACKAGE="UDNHud" FILE="..\..\UDKGame\Content\Maps\UT3\UDNHud.upk" SILENT=TRUE
    [0277.67] Log: Save=52481.593035
    [0277.67] Log: Moving '..\..\UDKGame\Content\Maps\UT3\UDNHud_save.tmp' to '..\..\UDKGame\Content\Maps\UT3\UDNHud.upk'
    [0277.69] Log: Saving Package: UDNHud
    [0278.65] Exit: Preparing to exit.
    [0278.85] Exit: Editor shut down
    [0278.85] Exit: Transaction tracking system shut down
    [0279.01] Exit: Windows client shut down
    [0279.02] Exit: XAudio2 Device shut down.
    [0279.11] Exit: Object subsystem successfully closed.
    [0279.11] Log: Shutting down FaceFX...
    [0279.11] Log: FaceFX shutdown.
    [0279.15] Exit: Exiting.
    [0279.16] Log: Log file closed, 06/15/12 12:55:11

    So what's the problem , i can'T understand how to acces the variables , everything i try to communicate my scaleform stuff wiht the Unrealsc

    Pript fails , ad i can't find any tutorial , explaining how to properly communicate it.

    Please help

  2. #2
    Skaarj
    Join Date
    Dec 2011
    Location
    India
    Posts
    3

    Default

    I faced the same issue.

    In my case it had to do with the Action Script version that I was using.
    I used AS3 and it didn't work .... I switched on to AS2... thing were working perfectly....

    what UDK build are you using ? ...........Mine is Feb 2012

    Hope this helps you....!!

  3. #3
    Redeemer
    Join Date
    May 2012
    Location
    Barcelona
    Posts
    1,559

    Default

    But you are not explaining how to , maybe if you could provide and example or something?

    so it worked perfecly? usign the same system i use? i have no freaking idea on how to communicate my scaleform stuff , i got my own inventory there waitting to be used , but it looks impossible to communicate the swf with unrealscript ...


    It seems that i can't acces the _root of my swf file , as when i do it already fails RootMC = GetVariableObject("_root");



    but i tried RootMC = GetVariableObject("_root"); on the MinimapHud.uc and it worked , but , the swf file it's compressed on a .upk .

    I'm using cs6 and the newest version of UDK , what's the best version of adobe flash for UDK ?

    It seems to be an error related with the comaptibility i don't know , please help .
    Last edited by Neongho; 06-15-2012 at 03:16 PM.

  4. #4
    Redeemer
    Join Date
    May 2012
    Location
    Barcelona
    Posts
    1,559

    Default

    Yes I finally got it!

    I followed the Matts doyle Tutorial about creating a menu Scaleform UDK Tutorial - 6 of 11 - Creating Custom Menus

    That's prbably the best tutorial , for creating the first communication between the Flash stuff and unreal script

    So if anyone has the same problem just follow the tutorial and solved with 10 minutes

  5. #5

    Default

    Quote Originally Posted by Neongho View Post
    Yes I finally got it!
    How did you do it? Did you convert to AS2, or fix it in AS3? I think I may have the same problem, as I just get "Accessed None 'RootMC'" in log.

    I have extremely limited internet connection for a couple of days, and it takes hours to load these youtube-clips, so I would appreciate if you could explain what changes you made.

    Thanks.

  6. #6
    Redeemer
    Join Date
    May 2012
    Location
    Barcelona
    Posts
    1,559

    Default

    I did something , maybe wrong but , useful and gives you the same power as you could jsut starting a new file.

    Go to Devolopement/flash/AS2/Tutorial , then open that file /skinned menu i think , and try for example make change the text , the main menu one through a GFx .uc file, ( watch matt,s doyle tutorial so you see how he changes the Dynamic text thing "main menu" )

    As you will see it works , so basically delete everything and use it for making your GFx there , use the var timeline to place vars.

    ( so basically what i did it's use a already created Flash file that for some reason works ) remember to configurate well your cs flash , do the kismet thing , use the gfx class...

    hope it helps that problem it's frustrating!
    Last edited by Neongho; 07-03-2012 at 06:35 PM.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.