kloveridge
05-21-2011, 01:10 PM
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.
// 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:
// 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...
[Engine.GameInfo]
DefaultGame=pickleA.pickleGame
DefaultServerGame=pickleA.pickleGame
DefaultGameType="pickleA.pickleGame"
This doesn't work...
[Engine.GameInfo]
DefaultGame=pickleA.pickleMenuGame
DefaultServerGame=pickleA.pickleMenuGame
DefaultGameType="pickleA.pickleMenuGame"
Whats going on on the iPad here?
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.
// 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:
// 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...
[Engine.GameInfo]
DefaultGame=pickleA.pickleGame
DefaultServerGame=pickleA.pickleGame
DefaultGameType="pickleA.pickleGame"
This doesn't work...
[Engine.GameInfo]
DefaultGame=pickleA.pickleMenuGame
DefaultServerGame=pickleA.pickleMenuGame
DefaultGameType="pickleA.pickleMenuGame"
Whats going on on the iPad here?