Game Development Community

Port to iPhone problem

by Techfront · in iTorque 2D · 10/09/2009 (3:13 pm) · 3 replies

Hi All

As somebody know, I'm porting one game to iPhone, this game was using a old version of torque 2D.
Finally I have the game running on iTGB using windows or mac, but when I try to run it on iPhone Simulator I see a white screen.

I searched here on forum and most of people have this problem because didn't set the correct resolution on commonConfig.xml inside the common folder, the problem is I don't have this xml, because my game are using the old structure of torque, but as I told on window and mac the game are working well.

So I need of some help :)

On resource folder to iphone project on X-Code I need put cs files, dso files or couple?
Need there is a commonConfig.xml inside the common folder? I'm not using the TGB to create my levels etc, as the original game using cs to load all content.

Do you have any idea about the white screen?

If somebody need more information please let me know.

Thanks
Eros

#1
10/09/2009 (4:24 pm)
I've had the white screen pop up on me when I had old or no .dso files. Try deleting the .dso files, run the game in iTGB, and then recompile in XCode.
#2
10/09/2009 (5:46 pm)
Hi Joe,

Thanks, but I did it and the game isn't running.

If I run the game on mac using XCode (Torque2D.xcodeproj) the game is running right.

To try run it on iPhone Simulator I did:

1) open the project (Xcode_iPhone/Torque2D.xcodeproj)
2) remove resources (common folder, game folder, and main.cs) I keep the files (Default.png, mainwondow.xib, tgb_icon.png).
3) Put my new files (game folder, common folder, and main.cs)
4) Remove app file
5) build and debug
6) I see the white screen :)

Remenber that I using one old directory structure, without commonConfig.xml file.

Should the game run on Simulator, if this is running on Windows and Mac?

Thanks in Advance
Eros
#3
10/10/2009 (5:20 pm)
http://www.garagegames.com/community/forums/viewthread/103469

I replied to this thread as well, Try not to post the same thing all over the place ;)