It means this global variable (that's what $ means) is being set to 1. So that console, the intimidating looking thing that was only ever used to type in $testCheats=1 is actually meaningful. When you close the game, you can see everything the console wrote, in console.log in the main directory. There's only devecho() which only shows the message when you toggle Debug in the console. Yes it's the print equivalent in Python or whatever. You can also look at the status of current variables with the echo() command, which displays the value to the console. (RandomityGuy says: there is a function called dump() that can list properties of objects and stuff, but it is disabled in vanilla PQ, you have to patch it to be usable in /platinum/core/ui/ConsoleDlg.gui.) Unfortunately Torque's console is bad, so you can't copy a massive amount of code and put it in the console, you can only do one line at a time, but it still works for debugging. Every line of code, can also be put in the console. It can be accessed by pressing the ~ button at the top left of the keyboard. You should understand or learn every term that I wrote there, because they are involved in almost everything, as well as having some sort of knowledge of code visualization (like, if you coded something involving a 2D array, be able to visualize what it's doing). If condition, else condition, for loop, while loop, string, number, object, variable, boolean, function, function arguments (I call arguments 'parameters' in this topic), return, break, the fact that indexes start at 0, working with arrays/strings (especially getting the length). Now, cause it's a dead language, searching is not going to be as useful since people won't have made a solution to copypaste. The version of TorqueScript in PQ is not exactly the same as the documentation online, and there are some hacked functions the devteam made that won't appear in documentation (such as "getFieldValue"), but it's accurate enough. Look up documentation and constantly search for things. Ctrl+X: Cut (copy and also delete the selection). Ctrl+Shift+F: Filesystem Search.Ĭtrl+C: Copy. It's when you hold one of the special keys in the bottom of your keyboard (Ctrl, Shift, or Alt) and then push another key.Ĭtrl+F: Find (search for text in the current file). It has syntax highlighting (that means code coloring), tabs, a much better find feature, and most importantly, filesystem search. Or Notepad++ which have about as many features. , which is a very good free editor, although it nags you to pay. Download a better text editor than Notepad. Basically, most people are lacking critical knowledge or critical tools that no one ever mentioned. So it's like ten years later now, here's my programming "guide". Well I don't know how people expected anything other than noob mods to come with that. had no programming experience and was not going to be considered for knowing private things, got nervous about sending private messages to people, and And really, if you were like me, who at the time: Despite that, I hope it can be helpful.įor a long long time, I thought programmers were hiding sacred knowledge, with the locked source files and everything. That means some parts that I'm unsure about could be wrong, and since I wrote this sentence after writing everything, I'm suddenly a lot less confident about this post. I know enough to make a lot of changes, but not enough to know the extreme details of TorqueScript. Hi, so I've been working with PQ's open source for a month now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |