Game Development Community

Blank Screen in Simulator

by Zilla · in iTorque 2D · 06/19/2009 (2:35 am) · 14 replies

I was trying to follow the first tutorial ("Compiling to Simulator") but after the GG splash screen, there is just a white screen in the simulator instead of the moving and draggable graphics.
The example runs fine when I press the "Play Scene" button in iTGB.


www.gymprojects.ch/zilla/images/Bild-1.jpg

#1
06/19/2009 (8:39 am)
I am having the exact same issue as Zilla. Today is the first time I have tried using iTGB.
#2
06/19/2009 (8:57 am)
make sure your camera and desktop settings are both set to 320 x 480 or 480 x 320 depending on whether you are using normal or landscape mode for your game respectively.
#3
06/19/2009 (9:32 am)
This might sound like a stupid question, but what's the difference between playing the game directly from the editor versus playing it on the Simulator?

What does the Simulator offer? Can it play MP3s where the editor can't?
#4
06/19/2009 (11:02 am)
The resolution in the game is set to 480x320,
Quote:desktop settings are both set to 320 x 480 or 480 x 320
but what do you mean with setting the desktop of the mac to this size?
#5
06/19/2009 (11:05 am)
I mean the 2 different places you can set the game resolution in iTGB.

I wouldn't set the mac desktop to that size no :)
#6
06/19/2009 (11:18 am)
Quote:what's the difference between playing the game directly from the editor versus playing it on the Simulator?
I don't know either... ;) I was just following the tutorial ;) and because I am an iTGB novice and don't have an iPhone yet(!), I wanted to check the app in the Simulator/Xcode environment.
#7
06/20/2009 (12:55 am)
You should get an iPod touch and see if you get the same problem on the device. The simulator doesn't have exactly the same results as a device, since it's just x86 code running against a similar API to the device.

I've had problems like this, and it usually boils down to some scripts not having been recompiled, or choosing a wrong optimisation setting. 1.2.1 will reduce the number of targets, meaning it's harder to screw up (and boy do we mere mortals screw up a lot when compiling iTGB ;).
#8
06/20/2009 (1:53 am)
Quote:I've had problems like this, and it usually boils down to some scripts not having been recompiled
Nevertheless I was very surprised that even the first, simple GG tutorial app did not work...
#9
06/20/2009 (5:24 am)
David wrote:"I am having the exact same issue as Zilla."

David, please let me know when you find a specific solution to this problem. Any help would be appreciated :)
#10
06/22/2009 (10:30 am)
Quote:David, please let me know when you find a specific solution to this problem. Any help would be appreciated :)

Unfortunately I am still having this problem -- I haven't had any time to debug it yet.
#12
06/23/2009 (1:37 am)
Coming closer... :)
But I still have The White Stripes on the simulator though I think that I switched everything to 480x320


www.gymprojects.ch/zilla/images/TheWhiteStripes.png

Click here to see the BIG picture.
#13
06/23/2009 (2:49 am)
I finally found a partial solution to my problem:
A portrait sized (320x480) app will work in the simulator if I mark commonConfig.xml as read-only because iTGB always changes the resolution to 480x320.


www.gymprojects.ch/zilla/images/NoMoreWhiteStripes.png

Click here to see the whole picture.

But what about landscape?
#14
01/18/2010 (2:45 pm)
I've found that if I have Interface Builder open, the first time I try to check my project by launching the iPhone Simulator, I will get a blank screen in the iPhone Simulator. If this occurs, try quitting out of Interface Builder first and then do a Build and Go to launch the iPhone Simulator. Not sure why but this works every time for me. Once it works the first time you don't have to keep doing it while you're working on it.