Game Development Community

I can't run examples or create a new project.

by Joel Bells · in iTorque 2D · 09/15/2010 (9:25 pm) · 6 replies

Whenever I attempt to run an example file, I get the error:

'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 cannon properly function.

I have tried to find a solution to this problem on the forums but none of them seem to have worked for me.

Also, when I try to create a new project, I get the error:

Unable to Open Project.

Please help - right now I can't do anything with this software. (I'm using windows 7, if that makes a difference.)


#1
09/16/2010 (6:10 am)
@Joel - Sounds like you do not have Administrator or write access to the directory iTorque 2D is installed to. Elevate your status for that directory and uncheck "Read Only". I've seen this issue happen a couple of times with Windows 7 and Vista due to the increased security they enforce.
#2
09/16/2010 (6:31 am)
@Michael - Thanks for your reply - I'm up and running now *knocks on wood*.

A number of the files had defaulted to read-only. Also, I had to set iTorques privilege level to always launch with Admin control even though I am the only admin (and only account).

Thanks again.

#3
09/16/2010 (2:43 pm)
@Joel - That will be resolved shortly when we release the 1.4.1 "beta". I do not have my notes in front of me, but there is a setting in Visual Studio that allows you to compile a binary that allows a user to run it without being an administrator. When I get to the office I will locate that and post.
#4
09/16/2010 (5:02 pm)
OK. The info I was looking for pertained to always prompting a user to run as administrator. Previously a build of TGB did not prompt a user. It would just run as normal and not write files, or not run at all. The setting I was looking for can be changed in Visual Studio. Since you have it running as administrator, this is probably not necessary:

1. Open engine/compilers/VisualStudio 200X/T2D SDK.sln

2. Right click on the TorqueGameBuilder project, then click properties

3. Click on Configuration Properties->Linker->Manifest File

4. Set the UAC Execution Level to what you desire. For the next build, we will have it set at highestAvailable.

You can read some more about this setting in the MSDN Articles.
#5
09/16/2010 (5:08 pm)
Sounds good, thanks again Michael.

I'm gonna go ahead and make that change as opposed to the way I have it configured right now since even on the second lowest setting UAC still requires me to confirm every time I launch the program.
#6
09/16/2010 (5:31 pm)
@Joel - Good plan. I'm hoping we can make additional changes that will align better with newer OS standards.