PDA

View Full Version : Class naming influences load ability?



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?

Blade[UG]
05-21-2011, 02:04 PM
are the maps you're packaging told they can support pickleGame and pickleMenuGame?

ContentCooking

kloveridge
05-21-2011, 02:11 PM
Nope! Thats the problem. its always something stupid. One day, I might be a master, but today I am but a learner.

Blade[UG]
05-21-2011, 02:28 PM
That's one of the annoying parts of this whole thing, is how you have to tell it what to package :D but it's gotta be done