Using TBE with T2D
by Philip Mansfield · in Torque Game Builder · 06/15/2005 (2:11 am) · 3 replies
I've started this as a seperate thread, rather than adding to the Tutorial thread, as it might make the info a bit easier to find in the future if people search search for it.
This guide is pieced together from the TBE installation instructions, and some threads on this forum.
Are you sitting comfortably? Then we'll begin...
This assumes you have installed T2D to the default location, if you haven't just change the appropriate directories.
Ensure you are running a recent Java Runtime ( v1.4 or newer).
Install TBE: demos.garagegames.com/tbe/TorqueBuildEnvironment-v0.6.0.exe
Reboot PC - not sure how needed it is, but the TBE instructions say so...
The mk files supplied with T2D are out of date, so they need replacing.
Download: torque.feylab.com/downloads/T2D4TBE.zip (thanks LabRat).
Extract with directories to your T2D directory overwriting the existng files
Start Eclipse
Right click the "Torque" project and choose delete. If you don't have TGE, then you might as well delete the files as well.
Select File -> Import
Select "Existing Project into Workspace"
Browse to c:\Torque2D\SDK and click Finish
Eclipse will whir away indexing the files. This may take a couple of minutes.
Open mk\conf.GCC3.WIN32.mk
Around line 34, find the lines:
To compile, right click the "Torque 2D" project in the left hand window and choose "Rebuild Project".
You will see a few errors/warnings go up, but these shouldn't be anything to worry about. If all goes well, after a few minutes you should see the following line appear in the console window: --> Linking out.GCC3.RELEASE/T2D.exe
That's it! Job's a good'un :)
Finally, seek out a copy of UPX and run it against your new T2D.exe. This will compress the file and make it approximately half the size. It's a speed/size tradeoff though, so your game may take longer to start up once you've UPX'd it.
I'm crossing fingers that it works for you. I'm a beginner at C++ and compiling stuff as well, so although I can follow instructions to get TBE working, I don't really know 'how' it works.
If you run into problems, stick up a post and hopefully someone will be able to help you out.
This guide is pieced together from the TBE installation instructions, and some threads on this forum.
Are you sitting comfortably? Then we'll begin...
This assumes you have installed T2D to the default location, if you haven't just change the appropriate directories.
Ensure you are running a recent Java Runtime ( v1.4 or newer).
Install TBE: demos.garagegames.com/tbe/TorqueBuildEnvironment-v0.6.0.exe
Reboot PC - not sure how needed it is, but the TBE instructions say so...
The mk files supplied with T2D are out of date, so they need replacing.
Download: torque.feylab.com/downloads/T2D4TBE.zip (thanks LabRat).
Extract with directories to your T2D directory overwriting the existng files
Start Eclipse
Right click the "Torque" project and choose delete. If you don't have TGE, then you might as well delete the files as well.
Select File -> Import
Select "Existing Project into Workspace"
Browse to c:\Torque2D\SDK and click Finish
Eclipse will whir away indexing the files. This may take a couple of minutes.
Open mk\conf.GCC3.WIN32.mk
Around line 34, find the lines:
LFLAGS.GENERAL = -m i386pe LFLAGS.RELEASE =Change to:
LFLAGS.GENERAL = -m i386pe -mwindows LFLAGS.RELEASE = -mwindowsThis stops the DOS window from appearing when you run your newly compiled T2D.
To compile, right click the "Torque 2D" project in the left hand window and choose "Rebuild Project".
You will see a few errors/warnings go up, but these shouldn't be anything to worry about. If all goes well, after a few minutes you should see the following line appear in the console window: --> Linking out.GCC3.RELEASE/T2D.exe
That's it! Job's a good'un :)
Finally, seek out a copy of UPX and run it against your new T2D.exe. This will compress the file and make it approximately half the size. It's a speed/size tradeoff though, so your game may take longer to start up once you've UPX'd it.
I'm crossing fingers that it works for you. I'm a beginner at C++ and compiling stuff as well, so although I can follow instructions to get TBE working, I don't really know 'how' it works.
If you run into problems, stick up a post and hopefully someone will be able to help you out.
#2
After following all these directions (including the ones from the other thread) I don't seem to have any compiling going on. I right click on the T2D project and pick "Rebuild All", then something with a progress bar comes up and goes away so fast I can't read it. No executable is generated, but nothing appears in the "Problems" window. Keep in mind I don't use Eclipse normally (and actually I don't care for it), I only have it from the TBE. Is there something else I was supposed to configure, or is Eclipse set up to go right out of the box?
Edit: Here's exactly what I did for all the pundits :)
* Deleted all my Torque directories and reinstalled the T2D SDK.
* Downloaded and installed the TBE from the link provided in this thread.
* Downloaded and extracted the makefiles from the LabRat link.
* Started Eclipse and deleted the project that was there already.
* Imported the project in the T2D SDK directory.
* Changed the make files as directed in this thread and the referenced LabRat thread.
* Right clicked on the T2D project and picked "Rebuild All"... the executable does not build and I do not get an error report.
08/13/2005 (4:38 pm)
Feel free to snicker at this one!After following all these directions (including the ones from the other thread) I don't seem to have any compiling going on. I right click on the T2D project and pick "Rebuild All", then something with a progress bar comes up and goes away so fast I can't read it. No executable is generated, but nothing appears in the "Problems" window. Keep in mind I don't use Eclipse normally (and actually I don't care for it), I only have it from the TBE. Is there something else I was supposed to configure, or is Eclipse set up to go right out of the box?
Edit: Here's exactly what I did for all the pundits :)
* Deleted all my Torque directories and reinstalled the T2D SDK.
* Downloaded and installed the TBE from the link provided in this thread.
* Downloaded and extracted the makefiles from the LabRat link.
* Started Eclipse and deleted the project that was there already.
* Imported the project in the T2D SDK directory.
* Changed the make files as directed in this thread and the referenced LabRat thread.
* Right clicked on the T2D project and picked "Rebuild All"... the executable does not build and I do not get an error report.
#3
About UPX... it seems good. Files become smaller. But when you zip them, they're somehow larger than the zipped version of a non-UPXed copy of that same PE. I don't use UPX because it actually increases distribution size, it can make the game start slower, and it uses the same amount of memory once the PE is decompressed. The only thing it may be good for is faster installation of many PE files, but I don't feel even that is worth the tradeoffs.
08/13/2005 (10:27 pm)
I got TBE up and running myself, I guess I should've taken notes on what I did to help newbies...! About UPX... it seems good. Files become smaller. But when you zip them, they're somehow larger than the zipped version of a non-UPXed copy of that same PE. I don't use UPX because it actually increases distribution size, it can make the game start slower, and it uses the same amount of memory once the PE is decompressed. The only thing it may be good for is faster installation of many PE files, but I don't feel even that is worth the tradeoffs.
Torque 3D Owner Tom Perry