Game Development Community

InitializeProject' function could not be found.

by Tyler Slabinski · in Torque Game Builder · 02/07/2008 (1:38 pm) · 12 replies

"'initializeProject' function could not be found."
"This could indicate a bad or corrupt common directory for your game." 
"The Game will now shutdown because it cannot properly function"

I don't understand why this is happening! My game is in the right directory and I get this error even when I try to load any of the games that come with TGB.

The only place I found initializeProject(); was in the main.cs file for each game. Any help?

#1
02/07/2008 (4:18 pm)
I need this because I can't test out my game.
#2
02/07/2008 (5:09 pm)
I think you have the exe in the wrong directory. It should be in the same folder that has "common", "game", and "resources" folders in it.
#3
02/07/2008 (5:23 pm)
Or you have a space in your project name somwhere.
#4
02/07/2008 (6:44 pm)
... Well, to think that this was all because of a space...
#5
02/10/2008 (2:28 pm)
Hey guys!

This same error is happening to one of my friends when he plays my games. I've built two games on 1.1.3 and the game doesn't start at all on his computer, then in my latest game, built on 1.7, he gets the same exact error as Tyler. This is particularly strange because the two built on 1.1.3 are confirmed to work on other computers. (I have no such confirmation for my latest game.) They all definitely work on my computer.

Thoughts?

Thanks,
Kevin
#6
02/13/2008 (2:27 pm)
Turns out my friend's extraction software was causing the problem. Ultimate Zip not recommended.
#7
03/01/2009 (8:04 pm)
Edit:
Ok, i feel like a jack@$$... This solved everything... Sigh i need a nap.

www.garagegames.com/community/forums/viewthread/78199

Bump...

I'm getting the same problem, with every project I have, including new ones made specifically for troubleshooting this problem... There are no spaces and everything is where it should be... No matter what I try, it just continues to give me this very same error; after a few very frustrating days wasted trying to figure this out instead of working on my game, i'm tired of it...

[rant]

This didn't happen until I upgraded to 1.7.4... I'm starting to feel like TGB is the misfit in the Torque family with so much attention being given to T3D and Torque X and Diet Torque and Torque Classic... I just want to worry about making my game, not worry about getting Torque to work properly.

Torque is supposed to help us make our games, not hinder us...

[/rant]

Anyway, does anyone have any clue as to what this may be caused by? Monkies? Space Ninjas? Lava Pirates!?
#8
05/09/2009 (7:25 am)
@Tom: So you're getting this error when you test levels from within TGB? I'm getting it when I run a game that I built without including the script sources. If I build the game and include the script sources, it'll run. But I don't want to distribute my source codes all of the time just to get the games to run.

It's been a couple of months since you posted this problem; do you have a solution? Mine doesn't appear to be space either.
#9
05/11/2009 (7:07 am)
@Tom: I've narrowed it down to the TGBGame.app that comes with the Platformer Starter Kit (Basic). At least for me. If I have that file in my "TGB/gameData/T2DProject" folder instead of the one that comes with TGB (as I'd read in the forums I needed to do in order to use the PSK properly, and in fact do need for the PlatformerDemo to run right), I can't build a game without the script source that doesn't error out when run. If I replace that file with the one that was installed originally, all is golden. I have no idea why.
#10
12/29/2010 (6:03 pm)
@Collin -
Does the PSK cause the problem even if you're not using the PSK?
I'm getting this error when I follow the Fish Demo tutorial. I have the PSK on my hard drive but am obviously not using it in this project, so I'm not sure how it'd make a difference.
#11
12/29/2010 (9:36 pm)
Wow, that was from quite some time ago. I haven't touched Torque2D in about a year, and I was hoping for the new version of Torque2D to be released. Not looking so good now though.

I believe the only way I found around it was to replace the new executable with the original when I wasn't using the kit, and swap it back when I wanted to use the kit. But it has been awhile.
#12
12/31/2010 (10:30 am)
Okay, I couldn't figure out how to simply replace the executable or just remove the PSK, so I just uninstalled everything then reinstaleld TGB by itself. Opened the project that I'd created while PSK was still installed, built without making any changes, and it works.

So, based on this experience and the info from this thread, the Platformer Starter Kit is causing this error, regardless of wether it's being used in the project or not.