Results 1 to 4 of 4
  1. #1
    MSgt. Shooter Person
    Join Date
    Dec 2010
    Location
    Utah
    Posts
    173

    Default 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. #2
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

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

    ContentCooking
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks

  3. #3
    MSgt. Shooter Person
    Join Date
    Dec 2010
    Location
    Utah
    Posts
    173

    Default

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

  4. #4
    Veteran
    Join Date
    May 2007
    Location
    Above KillZ, Below StallZ
    Posts
    9,953

    Default

    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
    http://www.ericbla.de http://www.dungeondefenders.com http://en.wikipedia.org/wiki/Warm_Gun http://www.rekoil.com http://www.groundbranch.com

    - Please don't send me private messages asking programming questions, those would be better asked on the Programming forum here. Thanks


 

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.