Txscene error
by Temasek Polytechnic (#0001) · in Torque X 2D · 03/03/2008 (9:57 pm) · 1 replies
Hi All,
I got this error
I have read the online help from here
Any help for this because i already check against the problem solving from the website, but it seems like nothing wrong with my solution at all.
I got this error
The file 'data\levels\GameData.txscene' could not be added to the project. A file with the same path already exists in the project.
I have read the online help from here
A file that has been read from the .vbproj or .csproj file cannot be added to the project. Reasons include: Invalid file name. File within a path. For example, if you have a project-relative path of File1\File2.txt, but there is also a folder with relative path File1\File2.txt. Item already exists. This occurs when a file is listed twice in the project file. Link already exists. The Visual Basic and Visual C# project system has a limitation in that there can only be one link with the same name per project. This means, for example, that you cannot have a link to file.vb in both folder A and folder B of the project. This error is most likely caused by editing the project file by hand. Any file for which this diagnostic is displayed will not be added to the project.
Any help for this because i already check against the problem solving from the website, but it seems like nothing wrong with my solution at all.
Associate John Kanalakis
EnvyGames
1. Confirm that the file exists within your project's folder. Using Explorer, browse to your Game\data\levels folder and verify the file is there.
2. Open Visual C# Express and click on your project's solution. At the top of the "Solution Explorer", click the "Show All Files" mini-toolbar button. This will expose ALL the files on your file system. The one with a solid icon are already part of the project. Those with a translucent icon are not included.
3. You should see your GameData.txscene file. If it has a solid icon, it's already part of the project. If not, right click it and select "Include in Project". That's should do it.
4. After adding the GameData.txscene file, remember to keep it selected and then go to the Properties Tab. Set it to Build Action = "Content" and Copy to Output Directory = "Copy if newer".
5. If you want to load this level in your game, remember to change the Game.cs code, so the BeginRun() method will load your GameData.txscene file instead of the default LevelData.txscene file.
Good Luck,
John K.