Announcement

Collapse
No announcement yet.

MyGameHUD Extends MobileHUDExt script log bug

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

  • replied
    Or you could make your PlayerController extend from CastlePC.

    Leave a comment:


  • replied
    MobileHUDExt is CastleGame specific and tries to find the CastlePC class which it won't find unless you specify CastleGame as your gametype.

    You might want to extend your HUD class from MobileHUD. Most people forget that the MobileHUD class does not specify textures for the input zones - it's fully functional if you add this to your own HUD class:

    Code:
    defaultproperties
    {
        JoystickBackground=Texture2D'MobileResources.T_MobileControls_texture'
        JoystickBackgroundUVs=(U=0,V=0,UL=126,VL=126)
        JoystickHat=Texture2D'MobileResources.T_MobileControls_texture'
        JoystickHatUVs=(U=128,V=0,UL=78,VL=78)
    
        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)
    
        TrackballBackground=none
        TrackballTouchIndicator=Texture2D'MobileResources.T_MobileControls_texture'
        TrackballTouchIndicatorUVs=(U=160,V=0,UL=92,VL=92)
    
        ButtonFont = Font'EngineFonts.SmallFont'
        ButtonCaptionColor=(R=0,G=0,B=0,A=255);
    }

    Leave a comment:


  • started a topic MyGameHUD Extends MobileHUDExt script log bug

    MyGameHUD Extends MobileHUDExt script log bug

    Hello everyone,


    I'm wondering if I make things right with this...

    So I'm trying to make some game and to use the default mobile controllers I have to extend my HUD Class to MobileHUDExt.
    If I simply extend to MobileHUD I won't see the joysticks and I don't think I can use it.

    But, when I extend from MobileHUDExt I have an error which keeps coming in
    Code:
    [0003.73] ScriptWarning: Accessed None 'PC'
    	SpaceHUD SpaceGame_A.TheWorld:PersistentLevel.SpaceHUD_0
    	Function UDKBase.MobileHUDExt:PostRender:005B
    [0003.73] ScriptWarning: Accessed None 'PC'
    	SpaceHUD SpaceGame_A.TheWorld:PersistentLevel.SpaceHUD_0
    	Function UDKBase.MobileHUDExt:PostRender:01E8
    I have looked into the function and I think it can comes from the fact I use another GameType than the Castle demo.
    Am I the only one with this bug?

    Except the log I don't notice anything but it's just **** in the log and I have other things to see than this.


    Any ideas?
Working...
X