Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Class naming influences load ability?

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

  • Class naming influences load ability?

    I've been learning UDK iPad development, and ran across something that has wasted a half a day.

    I thought I was having a problem with the MobileMenu classes. But I now realize that I am having a loading problem on the iPad. I have two simple game classes. Both of these examples work as expected on PC and mobile previewer. But on Ipad, only the first one works.

    Code:
    // Works on ipad, pc and pc mobile preview
    class pickleGame extends MobileMenuGame;
    
    var int count;
    
    function Tick( float deltaTime )
    {
    	WorldInfo.Game.Broadcast(self, "In Pickle Game with Menu Extension");
    	count++;
    }
    
    DefaultProperties
    {
    	DefaultPawnClass=class'pickleA.picklePawn'
    	PlayerControllerClass=class'pickleA.picklePC'
    	HUDType=class'pickleA.pickle_HUD'
    	bDelayedStart=false	
    	InitialSceneToDisplayClass=class'pickleMobileMenu'
    }
    but this one only works on PC and mobile PC:

    Code:
    // Only works on pc and pc mobile preview
    class pickleMenuGame extends MobileMenuGame;
    
    var int count2;
    
    function Tick( float deltaTime )
    {
    	WorldInfo.Game.Broadcast(self, "In Pickle Menu Game");
    	count2++;
    }
    
    DefaultProperties
    {
    	DefaultPawnClass=class'pickleA.picklePawn'
    	PlayerControllerClass=class'pickleA.picklePC'
    	HUDType=class'pickleA.pickle_HUD'
    	bDelayedStart=false	
    	InitialSceneToDisplayClass=class'pickleMobileMenu'
    }
    The only real difference is the name of the class. I have been modifying DefaultGame.ini two tell the game how to startup like this:

    This works...
    Code:
    [Engine.GameInfo]
    DefaultGame=pickleA.pickleGame
    DefaultServerGame=pickleA.pickleGame
    DefaultGameType="pickleA.pickleGame"
    This doesn't work...
    Code:
    [Engine.GameInfo]
    DefaultGame=pickleA.pickleMenuGame
    DefaultServerGame=pickleA.pickleMenuGame
    DefaultGameType="pickleA.pickleMenuGame"
    Whats going on on the iPad here?

  • #2
    are the maps you're packaging told they can support pickleGame and pickleMenuGame?

    [udn]ContentCooking[/udn]

    Comment


    • #3
      Nope! Thats the problem. its always something stupid. One day, I might be a master, but today I am but a learner.

      Comment


      • #4
        That's one of the annoying parts of this whole thing, is how you have to tell it what to package but it's gotta be done

        Comment

        Working...
        X