Running iPhone app
by Simon Golding · in iTorque 2D · 01/20/2009 (11:08 am) · 12 replies
Hey,
Just started working with iTGB and have run into a problem when trying to run the test app on the device.
I built the iPhone project as is (sideway scroller) runs fine on the simulator but when I try to run on the device itself I get the following after the bootup screen.
Game Startup Error
'initializeProject' function could not be found.
This could indicate a bad or corrupt common directory for your game.
Any ideas anyone?
Cheers,
Simon
Just started working with iTGB and have run into a problem when trying to run the test app on the device.
I built the iPhone project as is (sideway scroller) runs fine on the simulator but when I try to run on the device itself I get the following after the bootup screen.
Game Startup Error
'initializeProject' function could not be found.
This could indicate a bad or corrupt common directory for your game.
Any ideas anyone?
Cheers,
Simon
About the author
#2
01/20/2009 (11:47 am)
try running "tgbgame" before deploying to the device.
#3
I've got further, but now all i end up with is a 'white' screen, with a rectangular 'black' box in the top right corner.
Here is some of the console output.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/gui/mainScreen.gui.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/audio/AudioProfiles.cs.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/gameScripts/game.cs.
game/gameScripts/game.cs (21): Unable to find function enableJoystick
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/levels/DesertLevel.t2d.
Initing PUAP Profiler
Con::executef( 1, oniPhoneBecomeActive)
TakesDamageAdvComponent::explode -- Cannot find audioProfile expodeSound
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/levels/DesertLevel.t2d.
t2dSceneObject::mount() - Object '2038' is not in a SceneGraph!
01/20/2009 (11:59 am)
Thanks.I've got further, but now all i end up with is a 'white' screen, with a rectangular 'black' box in the top right corner.
Here is some of the console output.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/gui/mainScreen.gui.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/audio/AudioProfiles.cs.
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/gameScripts/game.cs.
game/gameScripts/game.cs (21): Unable to find function enableJoystick
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/levels/DesertLevel.t2d.
Initing PUAP Profiler
Con::executef( 1, oniPhoneBecomeActive)
TakesDamageAdvComponent::explode -- Cannot find audioProfile expodeSound
Loading compiled script /private/var/mobile/Applications/9CA2D3F8-4E63-4C03-AAB7-847CDFB471C4/TGBGame_Debug.app/game/data/levels/DesertLevel.t2d.
t2dSceneObject::mount() - Object '2038' is not in a SceneGraph!
#4
01/20/2009 (12:02 pm)
try using the "common" folder from the "tgb->gameData->T2DProject" directory. Don't forget to run TGBGame again :)
#5
Hey Michael K.
Do you have an email address I can contact you at, having lots of troubles getting iTGB 1.1 working for me.
You seem to have it all up and working, wondering if you could help out :)
Cheers,
Simon
01/20/2009 (9:14 pm)
Hey Michael K.
Do you have an email address I can contact you at, having lots of troubles getting iTGB 1.1 working for me.
You seem to have it all up and working, wondering if you could help out :)
Cheers,
Simon
#6
01/20/2009 (11:47 pm)
-
#7
FuzzYspo0N
01/23/2009 (4:23 am)
yea, while the iphone version cant write to the device ALL dso files will need to be built . using torsion helps with thisFuzzYspo0N
#8
02/02/2009 (2:22 am)
So, Mac side how do you compile scripts? I have TGB and iTGB here and if I open a project that I made in TGB, run, I get dso files. If I use TGB or iTGB to open the shooter project for the phone, I just get the Game Startup Error.
#9
02/02/2009 (3:15 am)
@Wenceslao: run the game using "tgbgame" that comes with itgb - that should get rid of your error.
#10
02/02/2009 (3:34 am)
if present yes. otherwise build it from the xcode project and move it into your projects folder to execute it.
#11
02/03/2009 (12:23 am)
Well I tried to build TGBGame from Xcode and ran into several thousand errors so I'm assuming it isn't set up correctly. I found TGBGame.app finally and then copied it to each of the game directories and then executed it to generate the DSOs. I have the default shooter app running on iPod but it took me a while to figure out what was going on.
#12
02/03/2009 (2:37 am)
As for those errors: see 1.1 feedback thread, postings from Dec 23th
Torque 3D Owner Mat Valadez
Default Studio Name