Somethings not right!!!
by Aaron Klaser · in Torque X Platformer Kit · 12/05/2010 (2:47 am) · 7 replies
Maybe Im missing something. I am having a number of frustrating issues. I purchased Torque X and the PSK to speed up progress on a simple game. My first problem started with the psk demo where if I try to load a create a new scene with new art but nothing loads into visual studio, so I load it manually. Then I when I rebuild solution and run the code I get the an error telling me that it can't find my level. And after playing around with it I got it to tell me that I can locate the importer. So after wasting a day on that I figured I would just start a platformer starter kit with out the demo content cause I don't need it all anyways. I figured I could just build my own class off the demo content as needed. But now I have quickly realized that somethings missing. I can not get the screen to scroll I want it to scroll JUST like the PSK Demo but I can not figure out how the demo is doing it. I also can figure out how to add in components. I'm not sure where to look and my eyes hurt from read throughout lines of code for hours and hours. I just want to make some kind of progress. I'm not the greatest programmer in the world but can hold my own. Have 1 year exp with java and about 1 month straight of C# / XNA. Please help.
About the author
#2
TorqueX will probably be essential if you only have a years experience, so I'd sit there and play with VS more, and try to get it to load your stuff properly. Theres some very precise instructions in the TX documentation, especially pertaining to downloading the proper stuff, and installing it in the proper order. I believe it goes VS 2008, XNA 3.1, TX 3.15, then PSK. So you might try starting from scratch. Many people get this wrong right off the bat, so don't be surprised if you find yourself going in circles trying to get the whole thing started.
Your other option is to jump to VS 2010, XNA 4.0, and TX 4.0 CEV, for this you'll want to contact pino, you can see he posts often around here, and has a featured blog which talks about the CEV.
12/05/2010 (3:43 am)
Well, the background scrolls because there is a T2DSceneCamera, which is mounted to the player, and a parallax automatically scrolls scrollers with the parallax background component in the background. I'm not sure how you will get all of the PSK to work without the editor. TorqueX will probably be essential if you only have a years experience, so I'd sit there and play with VS more, and try to get it to load your stuff properly. Theres some very precise instructions in the TX documentation, especially pertaining to downloading the proper stuff, and installing it in the proper order. I believe it goes VS 2008, XNA 3.1, TX 3.15, then PSK. So you might try starting from scratch. Many people get this wrong right off the bat, so don't be surprised if you find yourself going in circles trying to get the whole thing started.
Your other option is to jump to VS 2010, XNA 4.0, and TX 4.0 CEV, for this you'll want to contact pino, you can see he posts often around here, and has a featured blog which talks about the CEV.
#3
12/05/2010 (5:41 am)
Thanks Will, I got it to work. Turns out I was just missing the _preUpdate function. I would really like to get in to XNA 4.0 but will the psk work with TX 4.0? Also I'm having one other problem that I forgot about. When I load in my own images the show in all folder and in the editor but they show up as white blocks when I run the game. The collision still works. And the really wierd thing is when I droped a background it works perfectly fine. Let me know and thanks again.
#4
12/05/2010 (6:08 am)
Lol never mind. I forgot to rebuild my solution.
#5
12/05/2010 (7:54 pm)
Some people have already ported the PSK over to 4.0, it does require some minor changes, but even if you can't figure it out, someone will likely help you make the changes. I had the psk compiling in 4.0 a month ago, so yeah, it works.
#6
01/06/2011 (5:39 am)
Im getting the exact same problems with the white blocks... The torque Logo shows up fine in the game, just when i use my own PNG file... It comes out as a white blocks and i been searching loads of sites for the problem... Cant find anything... need urgent help...
#7
01/06/2011 (5:55 am)
If it's coming out as white block you need to clear you solution in Visual Studio check to insure that you image is inthe correct location. Rebuild your solution and try running it for VS instead of Torque. I find that Images can be fickle. Some times the load in okay but most of the time they don't you. I do it like this. I add the image into VS and rebuild the solution. Then I add the image in to torque from the data/images folder. The I save program and all works well.
Aaron Klaser
Six Three Six Studios, LLC