Game Development Community

Compile Error (txscene related)

by Alexander Loren · in Torque X 2D · 05/10/2007 (3:25 pm) · 3 replies

Within the past few days, I have switched over from attempting to write my own 2d engine in XNA to TorqueX. Why reinvent the wheel, when there is such a great product to use here; and with my positive experiences from using TGE, it was an easy choice. After playing around with the starter kits, and completing the blaster tutorial to familiarize with framework. Of course it is then that I decide to run into a problem I can't seem to work around myself.

I created a new StarterGame solution and took that down a step further to simplicity and removed all the components and media. I changed the data directory to look like the following:

+ Content
+ + Scenes
+ + - sceneData.txscene
+ + Sprites
+ + - temp.png

After making these changes, for no real reason aside from it being what I am used to in using XNA, I went to recompile and got the following error:

Quote:
Compiler output:
Error 1 Unable to copy file "~\Game\data\Levels\levelData.txscene" to "bin\x86\Debug\data\Levels\levelData.txscene". Could not find file ~\Game\data\Levels\levelData.txscene'.


Before asked if I have updated or have any references to the old directory layout and levelData.txscene, the answer is yes; I have changed to reflect the new paths everywhere I could find, including the xml documents. If anyone would please be able to lend some insight as to this error, I would be very grateful. For any questions on the source or solution setup, it can be downloaded from here - link - if you would like to look it over. If you do not have the time, feel free to reply and I will provide all I can. Thank you all again for the help :)


Edited for grammar

#1
05/10/2007 (3:44 pm)
Thats a common error, I think. Just copy your leveldata file into the level folder in your debug bin... For some reason, you have to do it manually sometimes. But usually only once.. I get that error once every few days, basically it always happens when adding a new txscene file to the project, don't ask me why, but I hear they are working on it.
#2
05/10/2007 (7:50 pm)
Modern1,
Copying over the level data file from the solution directory to the build directory would not have worked; as the file it was looking for during the compile was the default file which got erased as explained above. Though, I was able to work around by re-opening TGBX and saving both the scene and project again; which shouldn't have made a difference, but it did regardless. Not sure if this was just user error or something within TorqueX that was conflicting due to the new directory structure, maybe something worth looking into at some point.

Thank you for your time none the less though.

#3
05/10/2007 (9:04 pm)
TGBX and TorqueX are very simple to use... I am sure you are just misusing it somehow. Retrace your steps, and take out each element of the project one piece at a time... Thats the best advice I can give you.