Game Development Community

How to install Torque 2D with visual studio and..

by Panagiotis · in Torque 2D Beginner · 04/21/2013 (3:06 am) · 33 replies

Hello,

I am new here and I am interesting to use Torque 2D to create one rpg game.
I am looking to find some video clip or some complete tutorial series how someone compile Torque 2D engine with visual studio 2010 or 2012 express and complete documentation with functions and how to start.

I took a small tour in the website and the forums, also I search and in youtube too , but there are only Mac video clips.

Also is there any nice book which explains everything from how to compile to complete series of examples and source code. From complete beginners to experts.

And also how someone to find and other plugins and how to compile them too.

I am asking a lot, but there is not a clear way to start or where to start and the most tutorials are for Mac.

Thank you very much. :)

About the author

Recent Threads

Page «Previous 1 2
#1
04/21/2013 (3:33 am)
1)Download Github program
2)Sign In to Github
3)Clone T2D
4)Load VS solution
5)Set to Release, Build
6)Double Click .exe

s24.postimg.org/o0fgpxsup/image.png

s24.postimg.org/xwgjpkymp/image.png

s24.postimg.org/kr11jh4r5/image.png

s24.postimg.org/z8y8rgw29/image.png

s24.postimg.org/5ywbs4ytt/image.png
#2
04/21/2013 (5:51 am)
@Panagiotis - We are keeping our Torque 2D documentation on our wiki: [urlhttps://github.com/GarageGames/Torque2D/wiki/]Torque 2D Wiki[/url]. You can go to the video tutorials page, which has a full getting started video series. We also have a thorough, written guide on getting started
#3
04/21/2013 (5:54 am)
Hello,
Thank you very much for the quick answer.

I downloaded the github setup program and I tried it to run the setup and one window appeared "Download and Install"
It force you to Make helpmefindyour.info and helpmefindyour.info as homepage and default search engine and you click Accept.
If you uncheck one of these options above you can't proceed even if you don't you want to.

So I press Accept and then, nothing was happened.

As I understood this is downloader and installer , but it doesn't seems to download anything and install anything.

I skip this step and I proceed to next.

I register a github account and I logged in first and (I repeat the first step again) I re run the git hub setup and I had the same result.

In the main page of garagegames there is Torque2D-2.0.zip file which you can download. I have downloaded from there.

Is there any tutorial how to setup the libraries with Visual Studio.
Also do only Visual Studio is accepted?, there are and other c++ IDEs like Code:Blocks or Bloodshed Dev-C++.


#4
04/21/2013 (5:58 am)
@Michael Perry - I have already visited the wiki videoclips from youtube, are for Mac. It didn't help.

#5
04/21/2013 (6:08 am)
What about the written guide I linked to, or the clone the repo guide?
#6
04/21/2013 (6:11 am)
A google search for "helpmefindyour.info" displays results for virus removal. Perhaps you should make sure your system is not infected.
#7
04/21/2013 (6:23 am)
I confused now, why so much complexity?
I was expected an easy installation program and everything happen automatically.

@practicing01 - Before make download checks if I have virus? and If have a virus the git downloader stops?

Why forces to make set helpmefindyour.info as home page?
I have windows essentials antivirus and I have scanned my PC and it doesn't seems that I have any virus.

I downloaded another one git installer helpmefindyour.info from the guide which Michael Perry gave and I install something which is Git Bash.
When I load it one Linux like console appears.

I made farther search and I found I need to type:

git clone git@github.com:your_username/Torque2D.git

As username I used my e-mail when I was registered in git hub.

And I received this error:
--------------------------------------------------------------------
Cloning into 'Torque2D'...
The authenticity of host 'github.com (204.232.175.90)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? y
Please type 'yes' or 'no': yes
Warning: Permanently added 'github.com,204.232.175.90' (RSA) to the list of know
n hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
warnet-reception@WAR-RECEPTION ~
--------------------------------------------------------------------

I confused even more now :)

#8
04/21/2013 (6:28 am)
If you want to skip the git process completely, you could just download the precompiled version. This download is found here. This is based on the stable, master branch. This provides all the source, scripts, art, and the executables already compiled. It still has the Visual Studio projects, in case you want to recompile.

I still encourage you to read through the cloning guide I posted. Alternatively, you could pick up a copy of SmartGit. It makes managing, cloning, and pushing git repos so much easier.
#9
04/21/2013 (6:32 am)
Interesting...
Are there instructions where to put the libraries and include files?
Or everything will happen automatically?

Does the Torque 2D or 3D can be compiled and with other IDEs except Visual Studio?
I have also and Code:Blocks (Code:Blocks) is a very nice free C++ compiler and IDE.

I will post if I have problem.

I have already downloaded the "Torque2D-2.0.zip" from the beginning.
But I didn't know where to put the libraries and include files.
Are there ready projects or (Solutions) which explains where the files will be put and how to use the functions?
#10
04/21/2013 (6:34 am)
If you think cloning from github is complex, you're not going to be programming an rpg any time soon. What does the line "I downloaded another one git installer helpmefindyour.info from the guide" mean? Sounds like a spam bot... http://www.youtube.com/watch?v=qc10rAz5Syg
#11
04/21/2013 (6:42 am)
Yes, When I am opening my web browser (Firefox) this web search page appears when I am opening a new tab. Hmmmm it seems this windows essentials antivirus doesn't removed this.
I will try to remove it (Thank you very very much) I will find a way to remove this (Because the machine I use here) seems to have a virus or adwere or Trojan.

I will report if the adwere will be removed :)
#12
04/21/2013 (6:48 am)
@Panagiotis - Once you download the engine, all the libraries, files, and Visual Studio projects are already set up. You do not have to modify anything to compile the stock engine. When you want to add new source files or libraries, extend the projects we provide.

Also, if you are familiar with SVN, you can also use that to check out the repository. You do not get all the benefits of git, but at least you would have source control of some kind. This would also give you access to the development branch, which is less stable but contains the latest changes.

Again, check out SmartGit. It's what I use on both Windows and OS X. As for different IDEs, we currently only have Xcode, Visual Studio 2010, and Visual Studio 2012. I've been learning how to use Eclipse, so I might take a stab at creating an Eclipse project in the near future. No support for Code:Blocks, yet.

Hopefully in the near future we will be adding a project generator, which can create all the IDE projects for you.
#13
04/21/2013 (6:52 am)
I will try the ready made Torque2D zip file.
But I would like to learn how to install it and how to compile it from Git too.

What extra benefits do I will have when I compile from GitHub?

I will try and SmartGit, but first I will remove this virus I just discovered :P
#14
04/21/2013 (7:20 am)
1. Using GitHub allows you to fork directly from the official Torque 2D repositories, so you know you are getting the latest on the first clone.

2. With git, you can pick which branch you wish to work with. The master repository is the latest stable, but the development branch gets early features. In other words, you get more choice

3. Using git, you can pull changes from our repositories into your's with minimal effort. If we fix a critical bug, you do not have to download the engine again or merge manually. You can just pull from the fixed repository.

4. Source control is your friend. If you end up making a change that breaks everything, you can always revert back to previous commit. This will be the solution to your unnecessary frustrations.
#15
04/21/2013 (9:39 am)
I think I was clear the virus.
I installed the smartgit I pass some not understanding dialog boxes and I arrived in one dialog box which ask for Git or SVN repository URL.

Or local Git repository.

What URL it needs?

#16
04/21/2013 (10:06 am)
I downloaded and the Torque2D version 2 and I load the Solution in Visual Studio.
Do I need to create an extra main source file to start playing?
#17
04/21/2013 (11:05 am)
@Practicing01 Yes I don't see to create any RPG with Torque in generic soon.
#18
04/21/2013 (11:54 am)
@Panagiotis - The URL is https://github.com/GarageGames/Torque2D. You do not have to create any extra source files to get started. Just run the executable. That will launch our Sandbox module, which has a lot of small demos that show what the engine is capable of. The main entry point for a game is the main.cs file in the root directory, next to the executable (Torque2D.exe).

That creates the managers, then loads the AppCore module, which is the bare minimum needed to run a Torque 2D application. From there, the AppCore loads the Sandbox, which in turn loads all the demos. When you are ready to create a fresh game, you will create a new module that is loaded instead of Sandbox.
#19
04/21/2013 (12:48 pm)
@Michael Perry - It seems I am very stupid for now, I have seen one file with name main.cs which is not associated with any application in my computer so it seems something like not yet being installed here.

I am making guesses here and I discover a GUI version of git and I tried to clone what? I put this URL in the clone field:

https://github.com/GarageGames/Torque2D.git

What I an trying to clone here? clone means download Torque2D?
Also In the link you gave me I am downloading one file with name: Torque2D-master.zip

Does this contains the tutorials or example files I need?

So far I am downloading and cloning...

By the way, thank you very much and I have bother you a lot.
Is the first time I use this game development engine and the way it installs is little strange for me usually there is a single install file.

Also to be frank and honest, the website here need a lots of changes what have to do about tutorials and video clips.

If some newbie or some people arrive here for the first time, is impossible to find any way how to install the game engine and all tutorials are complete incompatible for PC versions, only for Mac and as I see, the Torque engine was commercial in the past now is free.

I have seen many sites that you are logging in to your account (After you have purchase the engine) now there is nothing about that.
Also there was Torque Pro now is Torque 2D version 2. According to some scattered websites I found randomly with google.

If anyone manage to create something with this Game Development engine, does he/she have any rights to sell his/her creation?

Also I have seen something like about MIT License what this License allows?
I read the License but there is not clear description if you allow to sell something in the future (Suppose to learn how to install this first, then learn how to program with this and after a long time if you manage to create anything or finish anything) you are trying to sell.

.cs files load with C# I don't have installed C# yet only c++

The Torque2D-master.zip was downloaded and contains similar files as
Torque2D-2.0.zip

The clone completed and seems downloaded similar files like the Torque2D-2.0.zip

The size of data are not the same.

Also after the cloning 2 errors was appeared in 2 files which I missed :P something like animation but I was missed it.

Still confused. I think C# is missing here.


#20
04/21/2013 (3:34 pm)
@Panagiotis : If you are just getting started with the engine, you should first focus on torquescript : this is how you will create games, without even having to modify the C++ source files.

Take a look at our scripting tutorial to get started :

github.com/GarageGames/Torque2D/wiki/Scripting-Tutorial

Compiling

In this example, let's assume that your Torque2D engine is located in c:/Torque2D/.

Navigate to Torque2d/engine/compilers/VisualStudio 2012/ where you will find a file called TORQUE 2D.sln. Open it up; it should launch Visual studio 2012.

In Visual Studio, find the drop-down menu which says debug and set it to Release. Under the menu 'Build', choose 'Build Solution'.

Now, if you look in your /Torque2D/ folder, you should see Torque2D.exe. Double-click it and you should see the sandbox, containing many many examples of Torque2D's power.

MIT

The MIT license means that you can do pretty much anything you want with the software and sell it. You do not need permission from GarageGames to do that.

.CS files

.cs files are for scripting, open them with notepad or notepad++.
While this is also the default extension for C# files, assign them to open with Notepad and you will be able to start scripting.

The best way to work with these files is to use Torsion, a tool made specifically for Torque script projects.

Again, take a look at the scripting tutorial and our various getting started guides :

github.com/GarageGames/Torque2D/wiki/Scripting-Tutorial
github.com/GarageGames/Torque2D/wiki

Take it one step at a time and keep asking questions!
Page «Previous 1 2