When I create new platforms, actors ect in Torque x2d and hit run to test game.. The platformer demo shows up instead
by Darrell · in Torque X 2D · 01/21/2010 (2:19 pm) · 16 replies
I tried creating several (20) different projects in Microsoft visual c# 2008.. building then opening in torque x... Ill create a platform then hit play to see it in the new window but instead of the platform showing or whatever content i created.. It shows the playable platformer demo with music and all.. it totally ignores what i created and defaults to the demo.. Ive tried everything..
Im a newbie.. Please help.. Im running xna 3.1 and the cc version of torque x 2d and the platformer x software...
Im a newbie.. Please help.. Im running xna 3.1 and the cc version of torque x 2d and the platformer x software...
About the author
Recent Threads
#2
01/21/2010 (6:14 pm)
how do I do that?
#3
01/21/2010 (6:26 pm)
The best place to start is the Torque X tutorials.
#4
01/21/2010 (6:42 pm)
i know how to create a new scene.. but it doesnt matter to torque x.. because it still shows the demo .. Also when I open the demo I cant see anything inside of torque.. it shows when I run it.. but nothing when im working on the grid inside of torque x
#5
01/21/2010 (6:50 pm)
Look for SceneLoader.Load(xxxxx); that xxxx is the scene that is being loaded, change it to the name of your scene.
#6
Warning 1 Project item 'levels\demo_modified.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 2 Project item 'levels\level_01.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 3 Project item 'levels\tutorial_level_1.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 4 Project item 'levels\tutorial_level_2.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
01/21/2010 (6:56 pm)
I also receive these errors.. are they related to the other issue im having in torque x?Warning 1 Project item 'levels\demo_modified.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 2 Project item 'levels\level_01.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 3 Project item 'levels\tutorial_level_1.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
Warning 4 Project item 'levels\tutorial_level_2.txscene' was not built with the XNA Framework Content Pipeline. Set its Build Action property to Compile to build it.
#7
"Right click on levels\demo_modified.txscene in content under Game and select properties.
Build Action should be set to content
Copy to Output Directory should be set to Copy if newer"
01/21/2010 (6:58 pm)
ive already followed henry's below previous advice.. and everything checked out.. but still the same 4 errors and problems with the torque x and new scenes not loading"Right click on levels\demo_modified.txscene in content under Game and select properties.
Build Action should be set to content
Copy to Output Directory should be set to Copy if newer"
#8
set BuildAction to none
set Copy to Output to Copy if newer
01/21/2010 (8:52 pm)
OK on the right, click Content(data) then levels, then right click your level and select properties.set BuildAction to none
set Copy to Output to Copy if newer
#10
01/21/2010 (10:58 pm)
Did you change the Sceneloader code to load your new scene?
#11
Also will that solve the other issue.. that i cant even see the platformer demo content.. It shows a empty grid and the tilemap.. nothing else..
Im a beginner.... Please help.. Thanks
01/21/2010 (11:11 pm)
How do I change the sceneloader code? where is it located? and what do I replace that code with?Also will that solve the other issue.. that i cant even see the platformer demo content.. It shows a empty grid and the tilemap.. nothing else..
Im a beginner.... Please help.. Thanks
#12
The line you are wanting to edit for it is in Game.cs, look for this line(it's in the method BeginRun()):
01/21/2010 (11:16 pm)
To see the demo content, manually load the level file in the builder.The line you are wanting to edit for it is in Game.cs, look for this line(it's in the method BeginRun()):
SceneLoader.Load(@"data\levels\level_01.txscene");Change it's value to the path to your new level.
#13
01/21/2010 (11:47 pm)
So will I have to do the sceneloader procedure every time i start a new project? and tell it what the name of my new level file is?
#14
and still same problem.. when i go to run or play the scene.. it loads the platformer demo
01/22/2010 (12:49 am)
I changed the sceneloader to level_001 and still same problem.. when i go to run or play the scene.. it loads the platformer demo
#15
Thanks Everyone who helped me.. I really appreciate it
01/22/2010 (1:02 am)
Edit **** i got it.. **** after making the sceneloader change to the new file.. you have to do a new build in C# 2008 ( or whatever other visual program you are using)Thanks Everyone who helped me.. I really appreciate it
#16
Don't take offense, but I dont know if Torque X or it's PSK is right for you right now. Do you have any experience with C#? To make your own game you'll need a lot of C# code as well as the level design. TX builder helps a bit, but it's designed to work along side the code you develop, it does not do it for you. So, just by making a new level, your game wont do it without you coding it to.
01/22/2010 (1:05 am)
What did you save your level as? Also did you build the game after you changed that line?Don't take offense, but I dont know if Torque X or it's PSK is right for you right now. Do you have any experience with C#? To make your own game you'll need a lot of C# code as well as the level design. TX builder helps a bit, but it's designed to work along side the code you develop, it does not do it for you. So, just by making a new level, your game wont do it without you coding it to.
Torque Owner Duncan Colvin