Game Development Community

My game no longer works

by Nick-Wright · in iTorque 2D · 01/18/2009 (7:46 am) · 16 replies

I purchased TGB a few months ago and have been working on my game ever since. My project ran perfectly in TGB. Just yesterday I purchased iTGB and was fiddling around with it. I opened the project I made in TGB with the engine that comes with iTGB, that's when things got screwy. The game wouldn't run. I closed iTGB and then opened my game up in TGB. The game looked absolutely normal in the editing window, but when I ran it, TGBgame crashed before the game even opened. I started to get worried here, but luckily I had backed my game up on my external hard drive just the day before. I opened the game from my external hard drive and it too looked fine when editing, but immediately crashes when running!

Please, if this has happened to anyone please help me out! My game keeps on crashing from any copy I open saying "the application TGBgame quit unexpectedly" and that's all it says!

The thing that's most aggravating is that everything is absolutely fine in the editor window, all animations running everything in it's place, but when I run any copy of my project, they all crash!

Please help! and thank you in advance

edit: I also found out it says initialize project function could not be found, does anyone know what this means or how I could fix it?

and if it at all helps, I now get this message when trying to run the behavior shooter:

http://img515.imageshack.us/my.php?image=picture1lu8.jpg

edit: alright it seems like the root of all my problems is "could not find player executable" I do not know what this means, nor do I know how to fix it, if anyone could help it would be incredibly appreciated!!!!!


#1
01/18/2009 (1:06 pm)
When you get problems like this, it is always a good idea to check the console.log to ensure that you don't have any scripting errors in your code. Do that first.

However, this problem usually relates to having a space (" ") somewhere in the pathname to the project folder. Try removing any spaces from your project folder and copying it straight to your hard disk.

Let us know how you get on.
#2
01/18/2009 (3:44 pm)
iTGB has PUAP_SCRIPT_CHANGE set by default, which improves script performance, and changes the DSOs a bit.

When you use old DSOs on an iTGB binary, or new DSOs on an old binary, you'll get some crazy errors. So, try recompiling the DSOs.

And like Philip said, check the console log because you'll definately get a warning about that.
#3
01/19/2009 (2:46 am)
Also try deleting the torque preferences (in c:\users\username\appdata\roaming\garagegames\torquegamebuilder on vista). That should reset the editor back to its original install state.
#4
01/19/2009 (11:13 am)
alright, thank you for your help but I don't understand most of what you all said (I'm really sorry!)
Is there some way I could post up my console log so that you guys can take a look?

I'm comletely new to creating iphone games (if you couldn't tell)
but I'm 100% willing to learn whatever it takes!

for instance, if there was some way I could learn how to recompile DSOs I would be willing to learn

My console log is riddled with errors like so:

t2dAnimationDatablock::calculateAnimation() - Skipping invalid frame #1 for animation (DragonClimbupAnimation) using imageMap (DragonClimbImageMap) which only has frame(s) #0 to #0!
t2dAnimationDatablock::calculateAnimation() - Skipping invalid frame #2 for animation (DragonClimbupAnimation) using imageMap (DragonClimbImageMap) which only has frame(s) #0 to #0!
t2dAnimationDatablock::calculateAnimation() - Skipping invalid frame #3 for animation (DragonClimbupAnimation) using imageMap (DragonClimbImageMap) which only has frame(s) #0 to #0!

also this:

exec: Found an old DSO (/Applications/TorqueGameBuilder/games/PlatformerDemo/game/behaviors/ActorBehavior.cs.dso, ver 42 < 41), ignoring.
Compiling /Applications/TorqueGameBuilder/games/PlatformerDemo/game/behaviors/ActorBehavior.cs...
/Applications/TorqueGameBuilder/games/PlatformerDemo/game/behaviors/ActorBehavior.cs Line: 42 - parse error
>>> Advanced script error report. Line 42.
>>> Some error context, with ## on sides of error halt:

Any help would be appreciated thank you so much!
#5
01/19/2009 (12:43 pm)
Those first few you posted aren't too big of a deal, the last ones however, are, they're the cause of all your problems.

To delete DSO, if you have Torsion, just click "Project-> Delete DSOs"

Otherwise, do a search for *.DSO in your game directory and delete them all manually.
#6
01/19/2009 (1:34 pm)
Alright, I have removed all the .dso's but still, nothing is working
darn it, I really think that the root of all this is this message:

"could not find player executable"

this message appears when I try and run my level, it doesn't even open TGBgame it just shows that message

does anyone know what this means? I really have no clue...
#7
01/19/2009 (1:40 pm)
Alright I figured it out, that message meant I was missing the TGBgame app in the game data folder the game now runs without giving me error messages, but it is very weird, the player does not move, there is no life and no health, I guess i'll have to look into this
#8
01/19/2009 (2:15 pm)
NO!! now it won't run again arrgh!!!
This is so aggravating because it looks perfectly fine in editor it just won't run!!!!
#9
01/19/2009 (3:11 pm)
If nothing is behaving right, check the console log, you will almost certainly have a number of errors telling you exactly what's wrong.
#10
01/19/2009 (3:22 pm)
I understand that it will show me what's going wrong, I just don't understand most of it. Is it possible for me to post my console log here on the forum so that anyone could take a look?
#11
01/19/2009 (3:23 pm)
Yeah, posting some of the errors you get would help us point you in the right direction
#12
01/19/2009 (3:27 pm)
oooh this looks like t could be the problem I get this error in console log:

main.cs (0): Unable to find function initializeProject
creating path /Users/kit/Library/Application Support/Independent/UntitledGame/common/commonConfig.xml

and then it closes everything
any idea what this means?

I believe it has something to do with a missing function in main.cs

I don't know how to fix that though
#13
01/19/2009 (3:32 pm)
initliazeProject() is the first function called, if it can't findit, most likely none of your scripts are compiled and the iTGB can't find any of them.

I should have clarified earlier, iTGB needs to read DSOs, compiled scripts, on the device/simulator it does not read .cs files.

If you are using old DSOs you need to delete them and then recompile new ones using your game's .app binary to make sure they are compatible.
#14
01/19/2009 (3:52 pm)
thank you for all your help
I have deleted all my old DSO's and I know I sound like a fool but I have no clue how to recompile new ones using my game's .app binary to make sure they are compatible.

I kind of jumped into iTGB and I expected it to be hard, but I have almost no base knowledge here.
However I would very much like to learn the steps required to port my game.
Right now, things like recompiling new DSOs make no sense to me
Is there some way I can learn what this means and how I can do it?
I'm very confused as to how people learn iTGB, I've seen the two small tutorials that are included with it
but that doesn't help with anything really.
The problem I'm having right now is not running my game on the iphone simulator, it is simply running my game in ITGBgame.

Thank you for your help so far, I really don't want to ask too much of anyone, I just don't know how I'm suppose to begin with iTGB.

I suppose learning how to recompile new DSOs using my game's .app binary to make sure they are compatible would be a start, but how can I learn how to do this?

honestly I feel as if there is something I'm not getting with iTGB
Like a document filled with information that I don't have
haha oh well, any help is appreciated, thank you
#15
01/19/2009 (4:01 pm)
Executing your game from the editor should do the trick(click the "play" icon to start yout game from within the editor).

Also, here are some good places to start learning the TGB workflow process

http://docs.garagegames.com/tgb/
http://tdn.garagegames.com/wiki/Torque_Game_Builder

They're not iTGB specific, but it's all the same stuff, though iTGB has a few more things to look out for, but this should get you started. I think Micheal Perry may have posted an intro of sorts at some point, but I don't recall exactly. You might check his posts/blog for more info.
#16
01/19/2009 (4:18 pm)
Alright, I got my game back and working, (it was an error in my behaviors)

And thank you for the material, I'll read up