Game Development Community

Stuck on splash screen...

by Alebrije Estudios · in iTorque 2D · 09/21/2009 (8:39 pm) · 14 replies

Hello, we're trying to build our game for T2D for iPhone, and it seems to work in the iPhone simulator but when I install it on a device it gets stuck on the "powered by iTGB" screen and wont enter the actual game.

Any thoughts about what's going on?

About the author

Alebrije Estudios is a Mex. independent vid game studio. We have 3 main lines of business: in-house developments w/ projects published in the iTunes St., FB, & looking 4 Publisher; advergames; & outsourcing of creative processes. @mike_alebrije


#1
09/21/2009 (8:50 pm)
Does it return to the home page after 15 seconds or just hang permanently at the iTGB splash screen? If it's the first case, you almost certainly have the problem that everyone else does when first starting out of having your game take too long to load. If your game takes too long to load, the iphone OS will kill it, something that the simulator and iTGB do not do. Reducing your loading time is how you solve the issue and there are lots of resources here on how to do that.

#2
09/21/2009 (8:53 pm)
On the device it hangs permanently on the splash screen... Without returning to the menu
On the simulator it works ok...

I've had the game open for 10 mins and wont do anything beyond that point.
#3
09/21/2009 (9:42 pm)
Hey,

This had me stumped for ages when I first got the engine on Sunday.

In my case it was as follows: The stock build does not come with compiled DSOs. To get it to work you need to run the game you want on your desktop using TGBGame - this will generate the requisite DSOs - make sure they're all there in /gamescripts/ (NB there won't be one at root level - main.cs does not compile into a DSO).

Then jump into xCode and go to the resources folder. Remove the current references to /game/ & /common/. Right click resources, click "add exiting files" then navigate to where your game is. Select /game/ and /common/, and be SURE to click the lower of two check boxes mentioning creating recursive folders.

The files should drop into the resources folder and be blue; when expanded they should contain your DSO's (along with CS's). If you build now, (delete the relevant .app in /engine/compilers/xcode_iphone/build/ to be sure, you should get the game up and going. When the game is running on the simulator or device, click into X-Code and use Shift, command and R to pull up the console. In here you can keep tabs on what the game is doing.

*phew*

I wish there were docs for all this, but I'm hoping this helps keep you from a few hours of tearing your hair out!
#4
09/22/2009 (5:46 am)
This is a common issue. We need a DSO extractor-type thing, a tool which takes one directory hierarchy of scripts and makes a matching hierarchy with compiled scripts. Would be useful as a compilation step in Xcode.
#5
09/22/2009 (3:40 pm)
check out the main.cs code
you will find a small nothing thats commented out at the top. uncomment it and you will get a full set of dso at run

thats code that was already posted months ago on the board too.
#6
09/23/2009 (2:00 pm)
I dont understand what you mean, Marc. this is what i find in the main.cs:

I dont see what is there to uncomment...
#7
09/24/2009 (2:18 pm)
Ok, so I managed to change something, now im NOT stuck on the splash screen, im stuck on a WHITE screen that appears AFTER the iTGB Splash Screen...

Sometimes, when i open the app, it goes right to the white screen without going through the splash.

I did what Rob told me and re added the files, but i got confused because the option mentioning recursivity is NOT the bottom of two choices, but anyway, I tried both ways:

Blue folders -> The app still hangs indifinetly at splash screen
Yellow folders -> The app goes through the splash screen but hangs in a white screen.

Im trying this with both a complex game and a new project with only one animated sprite... So i can guess that this has nothing to do with game optimization... I just cant manage to get anything up and running in the device.

:(

Joe Alanís - Alebrije Estudios
#8
09/24/2009 (2:20 pm)
Check what the app's file hierarchy looks like after building with either method of linking folders. Right-click the app, show package contents, and see if you have common/game folders at all inside.
#9
09/24/2009 (3:52 pm)
Yes its not much fun when your trying everything to get it working Joe :(.

Ive spent 4 days, going back and forth. I recommend not trying anything to complex, just try a single screen. Ive had problems getting even the provided examples working with the software too. So you wont know whats causing the problem, your programming, configuration or the software. Somethings to check:

1. Make sure you compile (DSO) in TGB before importing into Xcode.
2. Make sure you amend the screen size in the commonconfig.xml file in the resources\common folder in xcode.
3. Make sure you have set the size of the frame in itgb (iphone version).

Hope that is of some help :)

Jason
#10
09/24/2009 (4:05 pm)
2. Is not needed. just set it in the preferences and then go to edit the scene graph to use the right one there, it will be correct then.
#11
09/25/2009 (1:26 pm)
Yeah! its working now, I don't know what I did hahaha... I think it has something to do with deleting the old .app before doing a new build as Rob mentions in his post.

But anyway, thanks for all the help! i really appreciate it ;)
#12
12/18/2009 (2:17 pm)
I have the same problem. I've confirmed there are DSOs in the package. When loading the app it just hangs at the splash screen forever.

I've also confirmed my scripts are in the package so the code is all there.

Any ideas folks?
#14
02/12/2010 (9:43 pm)
Hola Alebrije,

Qué clase de juegos estás haciendo? Yo también estoy en México. He vendido Smart Drop.

Saludos