Announcement

Collapse
No announcement yet.

Scaleform Sandbox Files

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

    Scaleform Sandbox Files

    Hey everyone,

    In honor of my one year anniversary on the UDK forums, I've decided to release all the Autodesk Scaleform sample UDK files which showcase many of the tutorials and use cases talked about here on the forums. Please be aware that these files are not indicative of final content, and may look quite ugly. Their purpose is to demonstrate functionality and not art quality.

    You may download the entire zip file here:

    Download Matthew's September 2011 UDK Scaleform Sandbox Files
    Confirmed working in the September 2011 release of UDK.

    NOTE: Flash files (.FLA) require Adobe Flash Pro CS4 or better.



    UDK - September 2011 - Scaleform Sandbox

    /************************************************** ********************
    These file are provided
    AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY
    OF DESIGN, MERCHANTABILITY AND FITNESS FOR ANY PURPOSE.
    ************************************************** ********************/


    Instructions:
    1. Unzip the contents into the root UDK directory.
    2. Add to [UnrealEd.EditorEngine] in DefaultEngine.ini:
      +ModEditPackages=SFTutorial
    3. Add to DefaultInput.ini:
      .Bindings=(Name="LeftShift",Command="SetShowCursor true | Onrelease SetShowCursor false")
      .Bindings=(Name="Enter",Command="ChatHandler")
    4. Comment out or delete this line from DefaultInput.ini:
      .Bindings=(Name="Enter",Command="GBA_Use")
    5. Add to [Engine.GameInfo] in DefaultGame.ini:
      DefaultGame=SFTutorial.SFTutorialGame
      DefaultServerGame=SFTutorial.SFTutorialGame
      PlayerControllerClassName=SFTutorial.SFPlayerContr oller
      +DefaultMapPrefixes(Prefix="SF",bUsesCommonPackage =FALSE,GameType="SFTutorial.SFTutorialGame")


    NOTE: Any maps that you want to use this game type (SFTutorialGame) must be prefixed with "SF-" in the map name.


    Launching From the FrontEnd
    1. Launch the UDK Frontend. (\Binaries\UnrealFrontend.exe)
    2. Right click DM-Deck and choose Clone Profile
    3. Rename the newly cloned profile: DM-Deck.udk - Copy to SFTutorial
    4. Remove DM-Deck.udk under Maps to Cook.
    5. Click Add under Maps to Cook, and select all the maps beginning with SF-
    6. Put a check in the Override Default checkbox, and choose SF-MenuDemo.udk in the dropdown.
    7. Put -log resx=1280 resy=720 in the Launch Options text field.
    8. You can now launch using the Start button.


    Launching From the Game Shortcut

    You can also launch straight into the SFTutorial game from the desktop UDK game shortcut:
    1. Open DefaultEngine.ini
    2. Select the two lines Map= and LocalMap= under [URL] and copy and paste them immediately below themselves.
    3. Put a semi-colon in front of the original Map=UDKFrontEndMap.udk and LocalMap=UDKFrontEndMap.udk lines.
    4. Change both the new lines to point to SF-MenuDemo.udk instead.


    You should now have something like this:

    Code:
    [URL]
    MapExt=udk
    ; Any additional map extension to support for map loading.  
    ; Maps without an extension always saved with the above MapExt
    AdditionalMapExt=mobile
    ;Map=UDKFrontEndMap.udk
    ;LocalMap=UDKFrontEndMap.udk
    TransitionMap=EnvyEntry.udk
    Map=SF-MenuDemo.udk
    LocalMap=SF-MenuDemo.udk
    Notes:
    • While in game, hold down left shift to display the mouse cursor and interact with the various HUD elements.
    • The menu screen demonstrates back and forth communication between UnrealScript and ActionScript, as well as how to implement drop down/pop-up UI that stays beneath the mouse cursor, and a working animated mask.
    • Use the top slider on the HUD to rotate the armor in the middle of the room.
    • The two flags can be captured, demonstrating two ways to display a Scaleform capture graphic in UnrealScript.
    • The Set Resolution button will change the game window size, and demonstrates how to adjust the location of UI elements (using ActionScript).
    • The Toggle MovieClip button demonstrates dynamically loading/unloading an image using the Scaleform UILoader component.
    • The Chat window demonstrates a draggable multiplayer multi-line chat window. Pressing Enter will start chatting, as well as ending chatting & sending the message.
    • In the SF-Tutorial.udk map, walk up to the red bar, and use the Y & U keys on your keyboard to rotate it. This file demonstrates the use of capture keys in Kismet.



    Files Provided:
    • Maps: \UDKGame\Content\Maps\SFTutorials\
    • Config Files: \UDKGame\Config\DefaultScaleformMenu.ini
    • INT Files: \UDKGame\Localization\INT\SFTutorial.int
    • Packages: \UDKGame\Content\ScaleformTutorial\UDKSFTutorial.u pk
    • Flash Files & Assets: \UDKGame\Flash\UDKSFTutorial\
    • UnrealScript: \Development\Src\SFTutorial\

    #2
    Very cool of you.

    The community will build a shrine of you!

    Comment


      #3
      This is awesome! Thank you so much!

      Comment


        #4
        Thanks Matt

        Comment


          #5
          Thank you very much

          Comment


            #6
            Awesome!!

            It's very helpful to study.

            Comment


              #7
              Now the CLIK components packed in an SWF and we all will worship you.

              Comment


                #8
                matt you've been a gent, gratz and thanks!

                Comment


                  #9
                  Thank you this is very helpful to study

                  Comment


                    #10
                    what do the GFxAction_SetClikTextField and theGFxAction_SetTextField classes do?

                    Comment


                      #11
                      http://forums.epicgames.com/threads/...-Set-TextField

                      Comment


                        #12
                        okay thanks, didnt see that. was hoping it had something to get my input to work lol

                        Comment


                          #13
                          Hi Matt,

                          Thanks for posting your source code. I have been struggling to get a scaleform hud to appear in my game when setting up the SwfMovie inside of uscript. Your example code is great because I am able to compare it's result to what my code has produced.

                          The problem that I am having is that the SwfMovie will not appear when I launch the game using Unreal Frontend or from the Game shortcut in my start menu. However, the SwfMovie does render correctly when playing or launching the game from within the editor.

                          Here's an example:
                          When I load the SF-Tutorial.udk map and play it in the editor, I am able to see the chat box as well as the slider at the top of the screen. However, when I launch the same game and map from the Unreal Frontend, I am presented with the standard UDK hud. At the same time, I am able to see the rotate-able red bar in both environments.

                          I am wondering if this is an expected result, if it happens for anyone else and what can be done to solve this problem.

                          Comment


                            #14
                            Please follow the instructions for setting up a profile in the frontend included in the post. That should fix your issues.

                            Comment


                              #15
                              Thanks Matt, really appreciate the files to pick apart and learn from!

                              Comment

                              Working...
                              X