Game Development Community

T2D iphone 1.3 - run game problem - very basic??

by Michael French · in iTorque 2D · 02/16/2010 (7:16 pm) · 3 replies

--- I originally posted this in "technical issues" under torquepowered.com, then realized that might have been the wrong place - sorry for the repost; still hoping to find some help - thank you ---

I'm trying the most basic test, and the resulting error suggests to me that I'm making the most basic mistake, but I'm just doing what I've already done in earlier versions of iTGB and TGB (I know things have changed, but I didn't notice that anything would have changed on this most basic level):

1. I start T2D iphone and click create a new project, gets saved by default to "MyProjects" folder

2. I create a new static sprite by importing a small bitmap

3. I drag the bitmap onto the scene

4. I save, then hit "run game" - and I get this error every time:

-----

SCENE BUILDER
Could not find player executable:
/Applications/T2D_iPhone_1_3/tgb/../MyProjects/
test3/projectFiles/TGBGame.app/Contents/MacOS/TGBGame

-----

This error doesn't happen when I run the example project delivered with T2D iphone - because that one actually contains an instance of TGBGame where it's supposed to be. How is TGBGame generated in T2D iphone? Do I need to first do a build in xcode or something?

Thanks very much for your help.

#1
02/17/2010 (12:22 am)
You are right about this error happening because you don't have TGBGame in your project directory.

You could use the one that comes with the default project. You can also use the one in "iT2D_1.3.1/tgb/gameData/T2DProject/". I think they are both the same but I haven't checked though.

If you want to or need to build your .app (that you want to work on the mac) then you will want to look in "iT2D_1.3.1/engine/compiler/Xcode". You will be able to build for both TGB and TGBGame. When you build them the default output location is "iT2D_1.3.1/tgb/" and "iT2D_1.3.1/tgb/gameData/T2DProject/".

I would like it if when you created a new project it would also create the XCode project and not just the Xcode_iPhone version. It looks like it does it for the Visual Studios. I am looking into this right now, but it will be awhile, before I can really work on this.
#2
02/17/2010 (2:22 am)
I personally don't see a reason in the VS / Xcode project being present at all (aside of the xcode_iphone thats required for the optimization and provision - entitlement setups). As they are not per project anyway (the underlying sources are globally shared for all project) they misslead their purpose seriously.
It would be easier and more userfriendly if the tgbgame exe and app as well as their debug pendants were copied over to the project and thats it.

The paths where it can be found are mentioned above, alternatively you can just copy them from an existing project. as long as you work with scripting they are equal for all projects anyway
#3
02/17/2010 (4:36 am)
It should be copying it from the templates folder, Could be something silly. Ill post back if i see anything.