Blockland Forums > Modification Help
where did you learn torque
otto-san:
--- Quote from: Treynolds416 on April 05, 2012, 08:39:43 PM ---Anyway torquescript is based on C#, not C or C++
--- End quote ---
technically i guess it'd be 'based off' C++ since it's created in C++
Port:
--- Quote from: otto-san on April 05, 2012, 08:44:48 PM ---technically i guess it'd be 'based off' C++ since it's created in C++
--- End quote ---
That does not mean it is based of C++, just that it is interpreted using C++.
Kaphonaits:
--- Quote from: Treynolds416 on April 05, 2012, 08:39:43 PM ---That's a horrible place to start.
Anyway torquescript is based on C#, not C or C++
--- End quote ---
Saying TorqueScript is based off something like C# is misleading considering the fact that it's an entirely broken language anyway that makes no sense.
For example, %client.player.setVelocity() takes a string even though it should take three ints or a vector3.
Multiline comments (/**/) are broken and don't even work.
Arrays are fake and are just as redundant as doing: $var_0, $var_1 etc.
You use different operators to compare strings than other variables even though TorqueScript tried to make everything a string.
It's all silly.
Treynolds416:
--- Quote from: Kaphonaits on April 07, 2012, 05:19:00 PM ---For example, %client.player.setVelocity() takes a string even though it should take three ints or a vector3.
--- End quote ---
It does take three values, they're just in a string. There's nothing wrong with that.
--- Quote from: Kaphonaits on April 07, 2012, 05:19:00 PM ---Multiline comments (/**/) are broken and don't even work..
--- End quote ---
It's only a minor inconvenience, nothing more
--- Quote from: Kaphonaits on April 07, 2012, 05:19:00 PM ---Arrays are fake and are just as redundant as doing: $var_0, $var_1 etc.
--- End quote ---
Yes, but I don't see a problem with that. It's helpful for inserting variables into variables
--- Quote from: Kaphonaits on April 07, 2012, 05:19:00 PM ---You use different operators to compare strings than other variables even though TorqueScript tried to make everything a string.
--- End quote ---
There is == for values and $= for strings, it's not difficult.
Kaphonaits:
--- Quote from: Treynolds416 on April 07, 2012, 09:46:30 PM ---It does take three values, they're just in a string. There's nothing wrong with that.
--- End quote ---
There's everything wrong with that. Why do you think in low-level languages like C++ and even in higher level ones like C# there are different types of variables, ie: int x = 5; or char y = 'f';? Better yet, there's a reason they exist. It's so you can store that type of value. Strings are meant to be strings of characters, words basically. What if someone were to rewrite SetVelocity, and I were to do %client.player.setVelocity("ephialtes");?
If it took three ints, this wouldn't be an issue.
--- Quote from: Treynolds416 on April 07, 2012, 09:46:30 PM ---It's only a minor inconvenience, nothing more
--- End quote ---
Saying it's an inconvenience doesn't excuse the fact that one of the most basic features is broken.
--- Quote from: Treynolds416 on April 07, 2012, 09:46:30 PM ---Yes, but I don't see a problem with that. It's helpful for inserting variables into variables
--- End quote ---
I don't even understand what you're trying to say here. Do you even know what an array is and the point of it?
From what I've interpreted from that, you're saying it's helpful to not have arrays to use them for what arrays are used for.
What.
--- Quote from: Treynolds416 on April 07, 2012, 09:46:30 PM ---There is == for values and $= for strings, it's not difficult.
--- End quote ---
Yes but it shouldn't be there at all.