Game Development Community

Update Questions

by Nick-Wright · in TGB Platformer Kit · 04/12/2009 (5:30 am) · 6 replies

I'm having a lot of trouble getting the new update working correctly, this is mostly due to my lack of understanding in terms of scripts and codes etc. To my knowledge, the new platformer kit does not install itself 100% like it did before. I have the platformer starter kit folder in my Tgb folder and have the platformer demo game so everything is set up there. But when I try and run the level I get the same results as others, the player just hangs there and you can't move zero lives etc. I am sure this is because you have to change some files manually before it works correctly. I checked the readme and this is where I get confused.

It asks to "add the following files to your VS/XCode project" and then it lists a few stips of script.

This is the first thing it tells you to change. What is my vs/Xcode project? where is it located? I don't even know what it is. Right now i'm just trying to get the platformer demo working correctly so is it the platformer demo main.cs. I have no clue. If I knew the location of the "VS/XCode project I could enter those lines of text, but I have no clue what that is. Is there a specific spot I need to insert that text in the file? I'm very confused...

I have done the other two things after that that it asks you to fix, those were easy.

How do you recompile the engine?

Thanks!!!!

Edit:

So I guess the two main questions I'm asking are:

1) What is the VS/XCode project?

2) How do you recompile?

#1
04/12/2009 (10:41 am)
The VS/Xcode project is the actual engine files, whether you use VS or Xcode depends on if you are working on a PC or a mac.

If you are on a PC you will need Visual Studio (VS). I think Visual Studio 2008 C++ can be obtained for free but I am not certain, I know for sure if you are a student you can get a lot of Visual Studio stuff for free.

If you already have Visual Studio, or after you get it, go into the engine folder and open the project file in the visual studio folder. From there you should see a tree of files that make up your project, this is where you will want to add the PSK engine files.

I don't have a PC in front of me and I don't remember if you can add entire folders or not, to add new files you right click on where you want to add them and choose add existing files. If it lets you add folders then you should be able to add the PSK folder to the source folder, otherwise you will need to create a PSK folder and add the files into that.

After you have your files added, make the other necessary changes as listed in the readme.

Once that is done, at the top of visual studio up where file, edit, etc are there is one called build, inside there you should see the option to build your project. You should also go through the build options and make sure you are doing a release version of the build not a debug version.

Once the build is done your engine is recompiled! From here you need to find the exe file it output, I believe it puts it in the tgb folder but I could be remembering wrong. The method I use to make sure I have the right file is I check the date and time it was last modified, if it is the time when recompiled then you have the right exe file.

If any of that was unclear let me know, I am not particularly good at explaining things but I will try my best.
#2
04/12/2009 (11:20 am)
Thank you for the reply!

I'm still a bit confused though... I'm using a mac and it looks as though your reply was pc specific.
I'm downloading xcode now and I've had a bit off experience with it before.

I assume the xcode project is the project.pbxproj file, am I correct?

the only thing I don't understand is when you said

I don't have a PC in front of me and I don't remember if you can add entire folders or not, to add new files you right click on where you want to add them and choose add existing files. If it lets you add folders then you should be able to add the PSK folder to the source folder, otherwise you will need to create a PSK folder and add the files into that.

What is the source folder? And which psk folder should I copy?

Thanks again!!!
#3
04/12/2009 (11:41 am)
Wherever you installed TGB inside the TorqueGameBuilder folder there should be a folder called engine, inside that there should be a folder called compilers. You want the one called xcode, the project file is inside that it is called Torque2D.xcodeproj

The PSK folder you need to copy is, from wherever you put the PSK stuff after you downloaded it, there should be an engine folder inside of that, and then a source folder, and then one called PSK that has a bunch of engine files in it.

For the xcode version, once you have found the PSK folder full of engine files, open your xcode project. There should be an area full of folders and they should all be under the project file Torque2D. Right click on the Torque2D and then go to add > existing files. Add the PSK folder, it will pop up a new window at this point. Make sure you check to copy items to destination group's folder, and then select Recursively create groups for any added folders. Also under Add To Targets check all four of the Torque/TGB related options.

Also, when you build in xcode you need to choose your build settings in the upper left, it will only rebuild the app files for what your have selected as your active target and active executable.
#4
04/12/2009 (12:08 pm)
Alright I 100% follow you! I am up to the point where I am adding the existing files the only problem is, I don't think I have the psk folder with engine files in it. The only psk folder I can find is called "PlatformerStarterKit" and has the uninstall and binaries in it. I installed the psk folder right into my TorqueGameBuilder folder as is normal, yet I cannot find this PSK folder with the engine files in it...
#5
04/12/2009 (2:04 pm)
Did you purchase PSK Pro? Are you sure that you downloaded PSK Pro?
#6
04/22/2009 (11:40 am)
I noticed that the read for psk pro comes with the regular version of the psk. It confused me as well for a second.