Trouble with Simulator and xCode
by StandardFace · in iTorque 2D · 07/28/2009 (5:08 pm) · 1 replies
Hi all,
Just recently purchased iTGB, and I am having trouble getting anything to run consistently on the simulator and need some help. I realize there are a lot of posts asking specific questions about the simulator, but mine wasn't answered or at least I can't understand/find.
Ok, I follow the tutorial that comes with iTGB 1.2 (The official documentation) (The TGB project.) I am familiar with TGB, so I know there is no problem there. Then I move on to the "Compiling to the simulator" Tutorial. It goes well and I follow it word for word. The only things I change are as follows:
*In "Adding Your Game References" There is no option in 'Add to Targets' as TGBGame, so I use the iTGB option.
*In "Compiling and Running" I select 'iPhone Simulator 3.0' Active Target 'iTGB' and 'Active Executable' is set to 'iTGB - iPhone Simulator (3.0)'
With this I have been able to get the tutorial to work only when creating it from scratch each time. And this is even inconsistant.
-If I open xCode and add in the 'common' folder, game.cs and 'main' folder and build the project, it has worked once. If I try to run it again in the simulator (using the 'home' button and then selecting the torque icon) it does not work and sometimes crashes.
-If somehow I managed to run the simulator successfully once, and close it out and then click 'Build and Go' again in xCode, it does not work. The default.png just hangs and occasionally I will have something happen in xCode in one of the windows and it opens a file called 'platformMemory.cc' I don't know what this is and if it is a memory error, should it be happening when the only thing going on in my game (tutorial) is 2 static images?
-Is there something I need to do between testing in xCode? I have seen a post about Build->Clean All Targets and that doesn't seem to do anything. I understand that you have to run all levels of your game in iTGB editor first in order to create .dso files for xCode, do I need to do this in between attempts in xCode?
-Do I need to reset the iPhone simulator every time I try to run my game from xCode?
-Can someone please give me the low-down on how to get this working, and is there anyway someone can point me to a tutorial other than the one in the documents? I need to know all the above information. If anyone can offer me a few minutes of their time and walk me through the process I am willing and eager to learn.
I am not afraid to get my hands dirty and learn some code etc...but I don't know what to do at all. Any help is appreciated.
-StandardFace
Just recently purchased iTGB, and I am having trouble getting anything to run consistently on the simulator and need some help. I realize there are a lot of posts asking specific questions about the simulator, but mine wasn't answered or at least I can't understand/find.
Ok, I follow the tutorial that comes with iTGB 1.2 (The official documentation) (The TGB project.) I am familiar with TGB, so I know there is no problem there. Then I move on to the "Compiling to the simulator" Tutorial. It goes well and I follow it word for word. The only things I change are as follows:
*In "Adding Your Game References" There is no option in 'Add to Targets' as TGBGame, so I use the iTGB option.
*In "Compiling and Running" I select 'iPhone Simulator 3.0' Active Target 'iTGB' and 'Active Executable' is set to 'iTGB - iPhone Simulator (3.0)'
With this I have been able to get the tutorial to work only when creating it from scratch each time. And this is even inconsistant.
-If I open xCode and add in the 'common' folder, game.cs and 'main' folder and build the project, it has worked once. If I try to run it again in the simulator (using the 'home' button and then selecting the torque icon) it does not work and sometimes crashes.
-If somehow I managed to run the simulator successfully once, and close it out and then click 'Build and Go' again in xCode, it does not work. The default.png just hangs and occasionally I will have something happen in xCode in one of the windows and it opens a file called 'platformMemory.cc' I don't know what this is and if it is a memory error, should it be happening when the only thing going on in my game (tutorial) is 2 static images?
-Is there something I need to do between testing in xCode? I have seen a post about Build->Clean All Targets and that doesn't seem to do anything. I understand that you have to run all levels of your game in iTGB editor first in order to create .dso files for xCode, do I need to do this in between attempts in xCode?
-Do I need to reset the iPhone simulator every time I try to run my game from xCode?
-Can someone please give me the low-down on how to get this working, and is there anyway someone can point me to a tutorial other than the one in the documents? I need to know all the above information. If anyone can offer me a few minutes of their time and walk me through the process I am willing and eager to learn.
I am not afraid to get my hands dirty and learn some code etc...but I don't know what to do at all. Any help is appreciated.
-StandardFace
About the author
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
hanging at default screen likely is related to not having it run in it in TGBGame or you use a script optimization iTGB build without having the corresponding flags enabled in the mac build too (the script change one)
No need to run the iTGB editor if you only change stuff in source code in XCode. if you change script you must
personally I skip the simulator as it is of no use due to no accelerometer and no multitouch. also the performance is not the same as on the device.
if I want to test the gameplay I do it in TGBGame and if I want to test the input and performance, then the itouch / iphone.