Problems trying to Build Project in TGB
by Zachariah MacKay · in Technical Issues · 03/25/2012 (2:36 am) · 6 replies
So I'm trying to make a test build of a game I'm making just to demonstrate some of its features, but I'm getting this error when I try to run it:
'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
and here is the error line from the console:
main.cs (0): Unable to find function initializeProject
When I build the project, I export it into a new Folder in My Documents and when I look inside the gamedata, it appears as if nothing has been copied over except for the image files. There are all the empty folders there but no files. This is the same even if I check the 'include script files' option when I export it.
I'm not sure if it is supposed to be empty or what. But yeah, this is what's happening and I've scoured the forums to no avail.
Any tips?
'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
and here is the error line from the console:
main.cs (0): Unable to find function initializeProject
When I build the project, I export it into a new Folder in My Documents and when I look inside the gamedata, it appears as if nothing has been copied over except for the image files. There are all the empty folders there but no files. This is the same even if I check the 'include script files' option when I export it.
I'm not sure if it is supposed to be empty or what. But yeah, this is what's happening and I've scoured the forums to no avail.
Any tips?
About the author
Recent Threads
#3
04/09/2012 (2:59 pm)
I just ran through this process with no problems. What operating system? Have you tried reinstalling T2D? It should build and then open the folder so you can run the game.
#4
Are you on a PC with Mac as your target platform, or vice versa? Currently you need to be on working on the platform that is your target (on a PC and targeting PC or on a Mac and targeting Mac).
04/09/2012 (3:11 pm)
@ZachariahAre you on a PC with Mac as your target platform, or vice versa? Currently you need to be on working on the platform that is your target (on a PC and targeting PC or on a Mac and targeting Mac).
#5
-=-=-=-=-=-=-=-=
I only began development in Torque with 1.7.6 and I'm still using the Trial but it appears that this issue is still prevalent. I've uploaded a sample project (of a very bad game, heh) if you'd like to test it out and see for yourself what's going wrong: dl.dropbox.com/u/2249618/MISSING_DSO_TEST_PROJ.zip
And just to clarify, regardless of how or where the project is built the resulting compiled version will be missing a good number of .dso files. Most commonly the ones that are missing are:
/common/main.cs
/common/preferences/defaultPrefs.cs
/common/gui/[about half of the files in here]
Building with Include Script Source doesn't seem to fix this at all and it's not a Win vs Mac problem as I'm having the issue on both OSX and Windows 7. I also don't have any spaces in my path names as some people pointed out in other posts.
If you could please let me know if you're able to replicate this and hopefully it helps you to track down the cause.
05/09/2012 (8:45 am)
I just posted this in another thread that I found regarding this issue before locating this one but here's my findings in both Windows 7 and OSX:-=-=-=-=-=-=-=-=
I only began development in Torque with 1.7.6 and I'm still using the Trial but it appears that this issue is still prevalent. I've uploaded a sample project (of a very bad game, heh) if you'd like to test it out and see for yourself what's going wrong: dl.dropbox.com/u/2249618/MISSING_DSO_TEST_PROJ.zip
And just to clarify, regardless of how or where the project is built the resulting compiled version will be missing a good number of .dso files. Most commonly the ones that are missing are:
/common/main.cs
/common/preferences/defaultPrefs.cs
/common/gui/[about half of the files in here]
Building with Include Script Source doesn't seem to fix this at all and it's not a Win vs Mac problem as I'm having the issue on both OSX and Windows 7. I also don't have any spaces in my path names as some people pointed out in other posts.
If you could please let me know if you're able to replicate this and hopefully it helps you to track down the cause.
#6
1.7.6 -> Build Project -> The exported Project is farked-o-rama.
- I get a duplicated folder system:
Inside of the "game" folder (sometimes inside of the "common" folder..at random.)is another folder using the "project name" that houses another entire folder system; a duplicate of the folders from within the "game" or "common" folder respectively. Then there's the files that don't get copied..ugh.
//Edit: it turns out that the folder system is not always "duplicated" but sometimes where the needed files are stored. This means they need to be cut out of the extra folder or the extra folder within the extra folder(repeat if necessary) and pasted into the root folder of that DIR path: AKA-> into: common or game.
Does that make sense ? I hope so, because this has more issues and I don't even want to start to explain them.
@GG look into that "build project" window.
06/13/2012 (3:14 am)
I'm getting a similar issue..1.7.6 -> Build Project -> The exported Project is farked-o-rama.
- I get a duplicated folder system:
Inside of the "game" folder (sometimes inside of the "common" folder..at random.)is another folder using the "project name" that houses another entire folder system; a duplicate of the folders from within the "game" or "common" folder respectively. Then there's the files that don't get copied..ugh.
//Edit: it turns out that the folder system is not always "duplicated" but sometimes where the needed files are stored. This means they need to be cut out of the extra folder or the extra folder within the extra folder(repeat if necessary) and pasted into the root folder of that DIR path: AKA-> into: common or game.
Does that make sense ? I hope so, because this has more issues and I don't even want to start to explain them.
@GG look into that "build project" window.
Employee Michael Perry
ZombieShortbus