Game Development Community

Having problems running a project

by Ricky Hopper · in iTorque 2D · 04/26/2009 (8:35 am) · 18 replies

So I just got iTGB, and I'm excited about it. I've spent a little time learning regular TGB and it worked great. However, I'm following the first iTGB tutorial and when I attempt to run the game, 2 screens show up, one normal-sized, and one that is much smaller. Neither one shows the images I have put into the level. Does anyone know what might be going on?

#1
04/27/2009 (10:31 am)
Check the "console.log" or even better, if you are running from XCode, look at the GDB output window, it will probably show a few errors that'll point you in the right direction.
#2
04/27/2009 (12:10 pm)
Ignore the smaller window. That's a placeholder window for levelbuilder when the startGame() function is called.
#3
04/27/2009 (12:38 pm)
I'm just running straight from TGB. It's also kind of weird... if this helps at all, I think it automatically loads some other project and even after I open the right one, it still wants me to save in the other one.

How would I check the console.log? Is that in TGB or just in the computer's library or something?
#4
04/27/2009 (2:31 pm)
It's in your project's root directory, along with /common, /game, main.cs and your .proj file. Open it with any text editor. Not sure what platform you're running, but with OS X Leopard, TGB settings bleed into iTGB, so you can't have both TGB and iTGB on the same OS or virtual machine. Just another dot in GG's laundry list of stuff to fix in iTorque.
#5
04/27/2009 (2:48 pm)
I am running OSX Leopard, and just discovered that my project does not have console.log or /resources. How would I get it to work? I'm more concerned with using iTGB than regular TGB, so if I had to choose one, it would be iTGB.
#6
04/30/2009 (6:35 pm)
...Does anyone have a solution/need more info so they can help? This is a major roadblock to starting development.
#7
04/30/2009 (7:52 pm)
You can't use TGB and iTGB on the same machine. You need to remove TGB and iTGB and then reinstall iTGB.
#8
05/01/2009 (5:54 am)
Always have AppTrap installed. When you remove any TGB binary, it will ask you if you also want to remove preferences files. Say yes to that, and iTGB shouldn't be so confused about TGB settings.
#9
05/02/2009 (8:08 am)
I did what Bret said, but the problem has not fixed itself. What is going on? Did I install it wrong or what?
#10
05/02/2009 (11:33 am)
Check to make sure you put your images inside the camera's bounding box. The two light squares in iTGB are the camera's viewpoint.
#11
05/02/2009 (1:52 pm)
They are. I've used TGB before, I'm just new to iTGB. I also made sure they were visible.
#12
05/02/2009 (5:37 pm)
New update on the situation:

After trying to figure out more about the problem, I decided to look at some of the sample games given by iTGB to see if those worked. Nothing. I'd open the project, and I don't think it even opened... it seems to open the tutorial WackaMole project from regular TGB every time. Why this one? It was the last thing I was working on in TGB, and upon installing iTGB, I made a new project (again following a tutorial, this time called TouchGame) and it opened with all the WackaMole resources, which I removed. Now I think it will only open the WackaMole project without resources, showing nothing.

Does this help anyone understand my problem at all?
#13
05/02/2009 (5:45 pm)
When you say you open a project, are you doubleclicking the project? You need to open iTGB manually and choose open from there. The very fact you have used TGB before is why this is acting weird. TGB and iTGB editors both have the same ID in the system, so they're racing for the preferences.
#14
05/02/2009 (5:50 pm)
I have deleted TGB from my system, now it's just iTGB. I open it up, then select "open project" from the file menu. It always goes to the WackaMole project folder for everything (the opening the project thing, opening/saving levels, etc).
#15
05/03/2009 (8:04 am)
You mean the file dialog goes to that project? I have something like that happening, too. It doesn't remember my previous path at all, but defaults to some random test project I made.
#16
05/03/2009 (3:53 pm)
Alright, this is weird. Another new update.

I opened up iTGB, selected "open project", and selected my project (TouchGame). Then I opened the level in that project to make sure I was in the right project. I've noticed that my projects with a resources folder have "console.log", while the ones that don't have that folder don't have "console.log". So I imported the starterArt resource as a test. Still no resources folder in the TouchGame folder. Then I check WackaMole: the starterArt resource is in there now. Everything I do seems to be defaulting to WackaMole... how do I fix this?
#17
05/03/2009 (3:57 pm)
Problem fixed. I deleted WackaMole, and now it works. I don't know what happened there, but it should be gone now. Thanks for all the help, everyone!
#18
05/03/2009 (3:58 pm)
You can't use resources in iTGB. You're getting there Ricky. Just a few more roadblocks to go, hang in there.

P.S. There's a titanium wall at the end.