Author Topic: A good torque script website/youtuber?  (Read 2855 times)


DL Iban's CRPG mod.
Don't even start with this mod.. This is a terrible way to learn

object oriented programming language
like C or something.

C is not object-oriented. Structs can be considered objects in a way, but they really aren't.

Don't use C

What's wrong with C?

C is not object-oriented. Structs can be considered objects in a way, but they really aren't.

What's wrong with C?
I've never tried it and people say it's hard for beginners, so y'know,

C is not object-oriented. Structs can be considered objects in a way, but they really aren't.

What's wrong with C?
Yeah I knew that. I said OOP and kind of forgot that I was talking about OOP and listed my beginner languages. I meant C++ though.

C can be kind of unforgiving and hard to get set up (if you have Windows you need to install cygwin or mingw32 iirc) so just use Python or Lua or something.


C# is a great language, in my humble opinion. Visual Studio Express is totally free and is a great development tool for it, and also other languages as well.

TorqueScript is really easy. Reverse engineering add-ons can help. "Iban explains it all" is a helpful read at times.

If you want to learn a language besides TorqueScript, learn Lua first, it is a powerful language with minimal types. Python has lots of types which might be confusing to some beginners.

Although Lua is a language for embedding, it has a standalone executable.
C# is a great language, in my humble opinion. Visual Studio Express is totally free and is a great development tool for it, and also other languages as well.
Visual Studio Express 2013 (get the Windows Desktop edition, your apps will be backwards-compatible with Windows 7 and probably further) is a great development tool for C++11, too.
« Last Edit: April 02, 2014, 08:23:50 AM by Axo-Tak »

Why do you guys recommend a different language to learn before learning TS. TS is really easy to pickup and the learning curve is low. Learning a new language then coming to TS is just a waste of my time, not saying that learning multiple languages is bad though.

Why do you guys recommend a different language to learn before learning TS. TS is really easy to pickup and the learning curve is low. Learning a new language then coming to TS is just a waste of my time, not saying that learning multiple languages is bad though.
^This

I started with torquescript and it served as a good enough introduction to other languages.
It's almost exactly like Javascript

The reason people recommend doing other languages first is because they have much more comprehensive guides and larger, more knowledgeable communities to help you in the process of learning the language.

It also keeps you from learning code which won't carry over well to other languages.

Here's just one example:

Code: (TorqueScript) [Select]
for(%i=0;%i<10;%i++)
    %list[-1+%listCount++] = %listCount;

Code: (C++) [Select]
int index = 0;
int array [10] = { };
for(int ind = 0; ind < 10; ind++)
    array[index++] = index;
Alternatively:
int index = 10;
int array [10] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };

Both take an array or an array-like structure and put 1-10 into it, in order. But the same operator does two different things. In Torque %var++ increments the variable before the variable is used in the statement. In every other language I've ever heard about or worked with, var++ increments the variable after the statement is finished, and ++var is what you use to increment the variable before the statement.

I personally find intermediate/advanced Torquescript confusing and strange. There aren't enough guides on it either. Also the benefit of learning some language through command line is faster and clearer results. In order to do basic scripts with Torquescript you need to open Blockland and play a single player game.

I would learn the basics of C# or Java first. Then, once you have a basic understanding of how a language works, move onto TorqueScript and look at some basic mods.

I went like this with my programming.

Java, TorqueScript, C++, C#, and HTML5.

I personally find intermediate/advanced Torquescript confusing and strange. There aren't enough guides on it either.
Define intermediate/advanced.

Define intermediate/advanced.
Beyond simple things like control flow, recursion, and syntax.

I'm not very clear on the object system, mostly.