Author Topic: Mr. Wallet's Blockland Scripting for Dummies  (Read 11551 times)

This topic is about my Blockland TorqueScript lessons that I'll be running online.

I'm leaving this up for reference, but the class is largely out of tutorial mode and is now more of a Q&A where people ask me questions and I show them what I know.
The 6-day course on how to script in general, the part for complete newbies, is over.
However if you want to join up, there's a lot of cool reference texts that could teach you stuff.


WHAT IT IS:
An online activity in which I try to teach TScript to whoever shows up in at least 1 hour a weeknight during July. We're going to start at the ultra-basic that will bore the pants off of intermediate users and try and work our way up.

WHEN IT IS:
Mon-Fri at 8PM pacific standard time (which is GMT -8), or in other words Tue-Sat at 4AM GMT (sorry brits).
For your own GMT+/-? check UTC/GMT at the bottom of this page and compare it to the current time in your region.

WHERE IT IS:
Here.

WHAT YOU NEED:
This could be as short as 1 hour a day, so if you're not set-up and ready to go at the start of "class", I'm going to ignore you.
  • You need to be good with computers. I don't have time to tell you how to make a new folder.
  • Technically you need only to watch the stream. However, this is going to suck for you big-time.
  • In order to get anything done, you'll probably need a working copy of BL. If you're afraid it's kinda messed up from what add-ons you've used, go for a fresh install. In addition to the stream, I'll also be hosting a server with the password ustream .
  • I will not be paying attention to the server most of the time. In order to talk to me and ask me questions, it seems you'll need a ustream account so that you can chat to me over the ustream website.
  • In order to read example code, as well as show me your code so I can fix it, you'll need to give me your e-mail address so I can invite you to share some Google Docs. If you really want to start checking the reference materials immediately, you can try PMing me here on the forums in case I check them (no promises), but otherwise just show up early to class and PM it to me in the ustream chat.
  • Scripting itself can be done in any text editor (in fact we demonstrated this on day 1), but the computer can help you a lot with this, so I recommend you get some kind of script editor. For those using Windows, I recommend, naturally, that you use exactly what I use: Crimson Editor with my custom syntax file (which replaces the C# syntax files - I'm assuming the people taking this class don't program a ton in C#.) You can download Crimson Editor from the official site, then get my syntax files here (just unzip into Program Files/Crimson Editor/spec/).
Finally, watch this video for how it's gonna work: LOL RECORDED VIDEO It talks about moonedit which we were using before google docs, and I'll re-record it later, but you get the idea. Also watch the daily recaps to try and get up to speed.
« Last Edit: July 09, 2009, 03:08:53 AM by Mr. Wallet »

Tentative curriculum outline (not indicative of time spent on each topic):
Quote
the basics
   what is scripting?
   the console
   script files
   a little about the grammar of torquescript
   a little bit about blockland-format add-ons
functions I
   anatomy of a bare-bones function
   on programming conventions (incl. whitespace)
   variables
   servercmd basics
datablocks and objects
   datablocks vs. objects
   how torque handles objects
   dynamic fields
functions II
   function calls and parameters
   server/client communications
   maths, strings, and assignment
   conditionals
   if/else if/else
   switch/switch$
   variables: local vs. global
   returned values
   while loops
   for loops
   arrays
object-oriented programming
   inheritance
   child datablocks
   packages and child functions
   object-oriented functions
self-study and debugging
   tracking information with echo
   the editor
   dumping
   tracing
How to do cool stuff
   weapons and practical applications of object-oriented functions
   area searches and raycasts
   bot basics
   saving and loading information
   GUI basics
   global alternatives: scriptobject and scriptgroup
   (more stuff as requested, maybe a section on TCPObject)
« Last Edit: July 02, 2009, 03:43:39 PM by Mr. Wallet »

Sweet, I'll try to be there every night.


Edit: So wait, are we going to have to go between BL and the Stream?
« Last Edit: June 29, 2009, 04:25:00 AM by Zenthos »

BL is gonna be a more of a "hey check it out on my BL server for what it's supposed to look like". Students can keep their eyes wherever it best suits them, as the primary component of the broadcast is my voice.

It's also where you're encouraged to do most of your student-student or student-volunteer communication, to keep a good signal-to-noise ratio for me in the ustream chat.

How about you record the lessons and upload them somewhere?

I can't watch a live video at any of those times.

How about you record the lessons and upload them somewhere?

I can't watch a live video at any of those times.
This, though you won't be able to personally help it'll still be good.

I'll see what I can do, but I think it only lets me record 10 minutes at a time, and there's very limited space, etc. etc. Also, the visual portion will primarily be over gobby, so if you NEVER show up or miss several in a row, some things might never make sense to you.

Anyway my point is that if you can't make it, you're kind of a red-headed stepchild to me, but I'll see what I can work out.  :cookieMonster:

Well, anything you can manage to put together for the rest of us would be greatly appreciated.

I'll try to be there, but I'm having a weird problem, I downloaded and installed the Crimson Editor then I looked in the program files, no 'Crimson Editor' folder.

Quote
I downloaded and installed the Crimson Editor using the autoinstall program in which I was forced to see a screen devoted to letting me choose the install path, then I looked in the program files, no 'Crimson Editor' folder.
fixed to explain how this constitutes as not "be good with computers". Try right-clicking a shortcut to it and selecting "properties" to see the path. There should be a shortcut in start menu -> [all] programs -> crimson editor.

I don't think I'll be able to be there every night, but from what I understand you're recording the lessons right?

I have a better site that you don't need to download in order to see other people editing code in real time. It's syntax is in Java, but it's online, realtime, has chat, line numbers, and there's no download, here

I might want to come to this, but then again, I'm pretty fluent in torquescript anyway.

But what coding languages does Gobby support? If it supports Torque, then screw Ether pad.
« Last Edit: June 29, 2009, 01:25:14 PM by AGlass0fMilk »

re: upload of old lessons MAYBE some PORTIONS and it DOESN'T INCLUDE THE CRITICAL GOBBY COMPONENT WHERE YOU ACTUALLY SEE WHAT WE'RE WORKING ON

Basically online video repositories don't grow on trees and chopping every show into 10 minute segments to fit on the sites I know, to say nothing of the hard disk use involved... on top of everything else that might just kill my poor machine. and the gobby thing.

etherpad doesn't seem to have support for arbitrarily multiple simultaneous docs in the same app, so it's a no-go.

Well, Ether pad is good for short-term, small group coding. But what Programming languages does Gobby have?

Syntaxes:

None
.desktop
.ini
Ada
Boo
C
C#
C++
C/C++/ObjC Header
CSS
ChangeLog
D
DPatch
DTD
Defaults
Diff
DocBook
Eiffel
Erlang
Forth
Fortran 95
GAP
Graphviz Dot
GtkRC
HTML
Haddock
Haskell
IDL
Java
Javascript
LaTeX
Literate Haskell
Lua
MSIL
Makefile
Nemerle
OCL
Objective Caml
Objective-C
Octave
Pascal
PHP
Perl
Python
R
RPM Spec
Ruby
SQL
Scheme
Tcl
Texinfo
VB.NET
VHDL
Vala
Verilog
XML
Yacc
awk
gettext-translation
gtk-doc
libtool
m4
pkg-config
sh
« Last Edit: June 29, 2009, 01:37:01 PM by Azimuth »