Loading...
  OR  Zero-K Name:    Password:   

Starting guide to Spring Lua scripting

14 posts, 1165 views
Post comment
Filter:    Player:  
sort
I made a "tutorial" on scripting in Spring, based around the questions that I had myself when starting.

Targeted at people already bit familiar with programming but new to Spring's Lua.
Since it is a starter tutorial it does purposely not go too much into details, instead focusing on things relevant to make the first steps.

If someone is interessted:
http://springrts.com/wiki/Lua:Tutorial_GettingStarted
To improve it, feedback would be helpful:
What you feel is missing, what was too much, what was confusing etc.

part II
http://springrts.com/wiki/User:Knorke/Sandbox2

part III
http://springrts.com/wiki/User:Knorke/Sandbox3
+13 / -0

10 years ago
That is an excelent one.
I request the second part, though. Gadget example and sync<==>unsync code communication.
+0 / -0
10 years ago
sweet! I had been hoping for a basic LUA widget tutorial and here it is :)
+0 / -0


10 years ago
Please excise the knorkerisms such as "wupget". You want to teach, not confuse.
+2 / -0


10 years ago
Under "finding errors" discuss both errors-on-load and errors-during-runtime and highlight the difference between them.

"UnitFinished(...) is a callin function" - Say instead that widget:UnitFinished(...) is a callin function.

Add a pointer to where the budding widget author can find a list of Spring.SomeInterestingFunctions .

It's very nice. Very good to see something like this!
+0 / -0

10 years ago
you use wupdget and wupget. stay with one of those. and maybe explain that it is a joke for widget so also the noobs get the joke?
+0 / -0


10 years ago
If you have to explain the joke it's not a joke.
+1 / -0
10 years ago
Where do I find the chilli widgets?
+0 / -0

10 years ago
USrankFealthas - there's a subfolder of the widgets folder that includes the Chilli infrastructure. It's handy to be able to peek at the Chilli code to find out what exactly things like invalidating the widget will get you.
+0 / -0
10 years ago
Part II
http://springrts.com/wiki/User:Knorke/Sandbox2
(first draft, bit unfinished)

It is about gadgets.
Before one can make a gadget one needs to create a place where to put it.
Sadly that can be bigger obstacle than the scripting itself.

It also explains a bit the general process of making a Lua...or something?!
+3 / -0
10 years ago
Another text, it mostly babbles about spawning map features, so can either be read from mapping perspective or as continuation of spring Lua tutorial.
http://springrts.com/wiki/User:Knorke/Sandbox3

(the "sandbox" page names are WIP)
+1 / -0
10 years ago
USrankCrazyEddie Congratulations! You've created a googlewhackblat for the word "knorkerisms".
+0 / -0
4 years ago
the pages have been hijacked
+0 / -0

4 years ago
More likely repurposed by Knorke himself. He did not leave the Spring or ZK communities on good terms.
+0 / -0