Game Development Community

Txscene file not moved to debug directory

by Pauliver · in Torque X 3D · 12/02/2006 (8:06 am) · 5 replies

I couldn't help but notice (it gave me an exception) that while all my images were moved (and renamed .xnb) and my .xml files were moved, the .txscene files were not moved to the debug directory.

am i doing something wrong?

#1
12/02/2006 (9:57 am)
In my case, the .txscene and levelData.xml file are successfully copied (along with all the imagess) during the build process. Which template are you starting from? Also, did this happen with a clean template, or after being modified by the TGBX editor?
#2
12/02/2006 (10:53 am)
It did it with the default template (neithor of the games).
this is after i imported all my stuff via TGBX


*EDIT* my bad, brain fart. i forgot you had to right click on the files -> properties -> copy to output directory

after i had my coffee i had no trouble with this
#3
12/02/2006 (11:43 am)
Strange that you have to manually set the copy property. I tried to reproduce your steps and all the files are still copied automatically by default.

1. Create a new Game from the "StarterGame" template
2. Save all project files
3. Start TGBX Editor and select "Create New Project"
4. Browse to the new starter game's test .csproj file
5. Select "Import TGB Project" and browse to TGB's Scroller Demo
6. Select "Import TGB Level"and browse to TGB's Scroller Demo
7. Save all the files
8. Back in Visual Studio, point the BeginRun() method to load the "Level1.txscene" file
9. Compile & Run the game

All the content files (including the .txscene) are automatically moved to the output debug folder. I'm still working on getting the scroller demo to work with the TorqueX code.
#4
12/02/2006 (12:40 pm)
TGBX should be automatically updating the GSE project file whenever a level is saved, which it sounds like it is doing for John.

But, I just tried to save a level on my home computer, and this didn't work.

Running the directory processor utility manually works just fine (TorqueX install directory/TGBX/tools/bin/ContentNodeGenerator.exe - pass it the .csproj file for your game), so apparently TGBX is not able to run it in some cases.

I'll look into this and let you know if there's an easy fix. Thanks for the report Pauliver.
#5
12/02/2006 (2:39 pm)
Ok, TGBX is not passing the project filename with quotes around it, so project filenames with spaces are not being processed correctly. This will be fixed in the final version, but for now, you will have to add the files by hand if your GSE project filename has spaces in its path.