Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Nov 2011
    Location
    Hungary
    Posts
    119

    Default MobileHUD problem.

    Hi there,

    I configured up my UDK to my gameproject and I have a little problem about HUD.

    I have a HUD class extended from MobileHUD and i setup a button within kismet but my button doesent shows up, the button is there i know just not visible, if i extend from MobuleHUDExt everythings fine, why? MobileHUD and UDKHUD should work too as i know.

    Only i changed is my config files:

    DefaultEngine.ini

    Code:
    [Configuration]
    BasedOn=..\Engine\Config\BaseEngine.ini
    
    [URL]
    MapExt=mobile
    EXEName=MobileGame.exe
    DebugEXEName=DEBUG-MobileGame.exe
    GameName=SpaceGame
    GameNameShort=SG
    Map=TestMenu.mobile
    LocalMap=TestMenu.mobile
    TransitionMap=TestMenu.mobile
    
    [Core.System]
    +Paths=..\..\UDKGame\Content
    +Paths=..\..\UDKGame\__Trashcan
    +LocalizationPaths=..\..\UDKGame\Localization
    +Suppress=DevScript
    +Suppress=DevAnim
    -Suppress=Init
    +Extensions=mobile
    SeekFreePCPaths=..\..\UDKGame\CookedPC
    SeekFreePCExtensions=xxx
    SavePath=..\..\UDKGame\Save
    bDisablePromptToRebuildScripts=TRUE
    
    [UnrealEd.EditorEngine]
    EditPackagesOutPath=..\..\UDKGame\Script
    FRScriptOutputPath=..\..\UDKGame\ScriptFinalRelease
    -EditPackages=OnlineSubsystemLive
    -EditPackages=OnlineSubsystemSteamworks
    -EditPackages=OnlineSubsystemGameSpy
    +EditPackages=OnlineSubsystemGameCenter
    +EditPackages=UDKBase
    +EditPackages=SpaceGame
    AutoSaveDir=..\..\UDKGame\Autosaves
    InEditorGameURLOptions=
    
    [Engine.Engine]
    bEnableColorClear=TRUE
    DefaultOnlineSubsystemName=OnlineSubsystemPC.OnlineSubsystemPC
    GameViewportClientClassName=Engine.GameViewportClient
    ConsoleClassName=Engine.Console
    TinyFontName=EngineFonts.TinyFont
    SmallFontName=EngineFonts.SmallFont
    MediumFontName=EngineFonts.SmallFont
    LargeFontName=EngineFonts.SmallFont
    SubtitleFontName=EngineFonts.SmallFont
    
    ; Frame rate is clamped to ~30 for optimal performance with Epic Citadel
    bSmoothFrameRate=TRUE
    MinSmoothedFrameRate=20
    MaxSmoothedFrameRate=35
    
    ; Texture streaming is not supported on mobile yet.  We disable it game-wide so PC behaves consistently.
    bUseTextureStreaming=False
    
    ; Turns off gamma correction when rendering with D3D, as well as other changes for mobile development
    bEmulateMobileRendering=TRUE
    
    [Engine.PackagesToAlwaysCook]
    +Package=SpaceGame
    
    [Engine.StartupPackages]
    bSerializeStartupPackagesFromMemory=TRUE
    bFullyCompressStartupPackages=FALSE
    -Package=EngineSounds
    -Package=EngineBuildings
    +Package=SpaceGame
    -Package=EngineDebugMaterials
    
    [Engine.DataStoreClient]
    !GlobalDataStoreClasses=ClearArray
    !PlayerDataStoreClassNames=ClearArray
    
    [SystemSettings]
    ResX=960
    ResY=640
    
    ; Turn off dynamic shadows for MobileGame.  When enabled, this will draw planar shadows for objects
    ; on mobile, which may be desirable for certain types of games.
    DynamicShadows=False
    
    ; Set system settings on PC to more closely match mobile
    DirectionalLightmaps=False
    DynamicLights=False
    bAllowWholeSceneDominantShadows=False
    bAllowLightShafts=False
    SHSecondaryLighting=False
    MotionBlur=FALSE
    MotionBlurPause=FALSE
    DepthOfField=FALSE
    AmbientOcclusion=FALSE
    Bloom=FALSE
    UseHighQualityBloom=FALSE
    Distortion=FALSE
    FilteredDistortion=FALSE
    DropParticleDistortion=TRUE
    MaxAnisotropy=2
    bAllowBetterModulatedShadows=FALSE
    ;FloatingPointRenderTargets=FALSE
    ;DynamicDecals=False
    ;UnbatchedDecals=False
    
    
    [Windows.StandardUser]
    MyDocumentsSubDirName=UnrealEngine3
    
    [MobileSupport]
    bShouldCachePVRTCTextures=False
    bShouldFlattenMaterials=True
    FlattenedTextureResolutionBias=0
    
    [TextureStreaming]
    AllowStreamingLightmaps=False
    
    [ConfigCoalesceFilter]
    FilterOut=OnlineSubsystemGameSpy.int
    
    [FullScreenMovie]
    ;Startup is already playing, so just add a looping movie to the end
    +StartupMovies=Startup
    ;Allow for skipping the Startup movie after engine has loaded
    -SkippableMovies=Startup
    bShouldStopMovieAtEndOfLoadMap=True
    DefaultSplashTime=14.0
    SplashTime_CastleLoad=20.0
    
    [SystemSettingsMobileTextureBias]
    BasedOn=SystemSettingsMobile
    TEXTUREGROUP_World=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_WorldNormalMap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_WorldSpecular=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Character=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_CharacterNormalMap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_CharacterSpecular=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Weapon=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_WeaponNormalMap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_WeaponSpecular=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Vehicle=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_VehicleNormalMap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_VehicleSpecular=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Cinematic=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Effects=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=linear,MipFilter=point)
    TEXTUREGROUP_EffectsNotFiltered=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Skybox=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_UI=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Lightmap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Shadowmap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point,NumStreamedMips=3)
    TEXTUREGROUP_RenderTarget=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_MobileFlattened=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_ProcBuilding_Face=(MinLODSize=1,MaxLODSize=1024,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_ProcBuilding_LightMap=(MinLODSize=1,MaxLODSize=256,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Terrain_Heightmap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    TEXTUREGROUP_Terrain_Weightmap=(MinLODSize=1,MaxLODSize=4096,LODBias=0,MinMagFilter=aniso,MipFilter=point)
    DefaultGame.ini

    Code:
    [Configuration]
    BasedOn=..\Engine\Config\BaseGame.ini
    
    [Engine.GameInfo]
    DefaultGame=SpaceGame.SpaceGame
    DefaultServerGame=SpaceGame.SpaceGame
    DefaultGameType="SpaceGame.SpaceGame"
    
    [DefaultPlayer]
    Name=Player
    team=255
    
    [GameFramework.MobilePlayerInput]
    MobileDoubleTapTime=0.33
    MobileTapRepeatTime=0.1
    MobileMinHoldForTap=0.5
    ZoneTimeout=2.0
    
    ; Enable mobile-style touch control emulation in PC builds
    bFakeMobileTouches=True
    
    [GameFramework.MobileHud]
    bShowMotionDebug=false
    
    
    [SpaceGame.SpaceGame]
    +RequiredMobileInputConfigs=(GroupName="UberGroup",RequireZoneNames=("UberStickMoveZone"))
    
    
    
    [MenuSlider MobileInputZone]
    Type=ZoneType_Slider
    X=0.5
    bRelativeX=true
    bCenterX=true
    Y=0
    bRelativeSizeX=true
    bRelativeSizeY=true
    SizeX=0.165625
    SizeY=1.0
    ActiveSizeX=0.165625
    ActiveSizeY=0.4
    bActiveSizeYFromX=true
    SlideType=ZoneSlide_UpDown
    RenderColor=(R=255,G=255,B=255,A=255)
    InactiveAlpha=1.0
    bUseGentleTransitions=true
    ActivateTime=0.0
    DeactivateTime=0.33
    TapDistanceConstraint=32
    
    [ExitAttractModeZone MobileInputZone]
    Type=ZoneType_Button
    bRelativeX=true
    bRelativeY=true
    X=0
    Y=0
    bRelativeSizeX=true
    bRelativeSizeY=true
    SizeX=1.0
    SizeY=1.0
    bIsInvisible=true
    TapDistanceConstraint=32
    
    // this special zone will be programmatically added when not using FinalRelease script compilation
    [DebugZone MobileInputZone]
    InputKey=MOBILE_ShowDebugMenu
    Type=ZoneType_Button
    bRelativeX=true
    bRelativeY=true
    X=-0.062
    Y=-0.5
    bRelativeSizeX=true
    bRelativeSizeY=true
    SizeX=0.0625
    SizeY=0.0938
    Caption=*
    RenderColor=(R=0,G=128,B=255,A=255)
    InactiveAlpha=0.8
    
    [UberLookZone MobileInputZone]
    InputKey=MouseY
    HorizontalInputKey=MouseX
    TapInputKey=MOBILE_Fire
    Type=ZoneType_Trackball
    bRelativeSizeX=true
    bRelativeSizeY=true
    X=0
    Y=0
    SizeX=1.0
    SizeY=1.0
    VertMultiplier=-0.0007
    HorizMultiplier=0.001
    Acceleration=12.0
    Smoothing=1.0
    EscapeVelocityStrength=0.85
    bIsInvisible=1
    TapDistanceConstraint=32
    
    [TapTutorialZone MobileInputZone]
    InputKey=
    HorizontalInputKey=
    Type=ZoneType_Trackball
    bRelativeSizeX=true
    bRelativeSizeY=true
    X=0
    Y=0
    SizeX=1.0
    SizeY=1.0
    bIsInvisible=1
    TapDistanceConstraint=32
    
    [SwipeTutorialZone MobileInputZone]
    InputKey=MouseY
    HorizontalInputKey=MouseX
    Type=ZoneType_Trackball
    bRelativeSizeX=true
    bRelativeSizeY=true
    X=0
    Y=0
    SizeX=1.0
    SizeY=1.0
    VertMultiplier=-0.0007
    HorizMultiplier=0.001
    Acceleration=12.0
    Smoothing=1.0
    EscapeVelocityStrength=0.85
    bIsInvisible=1
    TapDistanceConstraint=32
    
    [UberStickMoveZone MobileInputZone]
    InputKey=MOBILE_AForward
    HorizontalInputKey=MOBILE_AStrafe
    Type=ZoneType_Joystick
    bRelativeX=true
    bRelativeY=true
    bRelativeSizeX=true
    bRelativeSizeY=true
    X=0.05
    Y=-0.4
    SizeX=0.1965
    SizeY=1.0
    bSizeYFromSizeX=true
    VertMultiplier=-1.0
    HorizMultiplier=1.0
    bScalePawnMovement=true
    RenderColor=(R=255,G=255,B=255,A=255)
    InactiveAlpha=0.25
    bUseGentleTransitions=true
    ResetCenterAfterInactivityTime=3.0
    ActivateTime=0.6
    DeactivateTime=0.2
    TapDistanceConstraint=5
    
    [UberStickLookZone MobileInputZone]
    InputKey=MOBILE_ALookUp
    HorizontalInputKey=MOBILE_ATurn
    Type=ZoneType_Joystick
    bRelativeX=true
    bRelativeY=true
    bRelativeSizeX=true
    bRelativeSizeY=true
    VertMultiplier=-0.5
    HorizMultiplier=0.35
    X=-0.2465
    Y=-0.4
    SizeX=0.1965
    SizeY=1.0
    bSizeYFromSizeX=true
    RenderColor=(R=255,G=255,B=255,A=255)
    InactiveAlpha=0.25
    bUseGentleTransitions=true
    ResetCenterAfterInactivityTime=3.0
    ActivateTime=0.6
    DeactivateTime=0.2
    TapDistanceConstraint=5
    
    [MainView MobileInputZone]
    InputKey=
    HorizontalInputKey=
    TapInputKey=
    Type=ZoneType_Trackball
    bRelativeSizeX=true
    bRelativeSizeY=true
    X=0
    Y=0
    SizeX=1.0
    SizeY=1.0
    VertMultiplier=-0.0007
    HorizMultiplier=0.001
    Acceleration=12.0
    Smoothing=1.0
    EscapeVelocityStrength=0.85
    bIsInvisible=1
    TapDistanceConstraint=32
    DefaultInput.ini

    Code:
    [Configuration]
    BasedOn=..\Engine\Config\BaseInput.ini
    
    [Engine.PlayerInput]
    .Bindings=(Name="MOBILE_ShowDebugMenu",Command="OnRelease OpenMobileMenu MobileGame.MobileMenuDebug")

  2. #2

    Default

    Did you set the default properties in your subclass? ButtonImages (0) and ButtonImages (1) etc...

  3. #3
    MSgt. Shooter Person
    Join Date
    Nov 2011
    Location
    Hungary
    Posts
    119

    Default

    Not really, what do u mean exatly? Can u give me a simple example?

  4. #4

    Default

    Sure, take a look in the default properties from MobileHUDExt, copy and paste the bits that set up the button textures into the default properties of your subclass

    i.e

    Code:
    ButtonImages(0)=Texture2D'MobileResources.HUD.MobileHUDButton3'
    ButtonImages(1)=Texture2D'MobileResources.HUD.MobileHUDButton3'
    ButtonUVs(0)=(U=0,V=0,UL=32,VL=32)
    ButtonUVs(1)=(U=0,V=0,UL=32,VL=32)
    Hope that helps!

  5. #5
    MSgt. Shooter Person
    Join Date
    Nov 2011
    Location
    Hungary
    Posts
    119

    Default

    Thank you very much! I'll try it

    works fine thanks.
    Last edited by Anteris; 06-20-2012 at 04:16 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.