Loading...
Home
Home
Unlocks
Commanders
Map Bans
Polls
Play
Download Zero-K
Download the game, it's free! :)
Maps
Thousands of maps to pick
Replays
All your past victories, stored here!
Mods
Special game modes
Media
Screenshots
Videos
Presskit
Wiki
Index
Newbie guide
Don't know where to begin? Click here.
Video tutorials
Demonstrating both basic and advanced features
Units
Economy
Terraforming
Let's go play in the dirt!
FAQ
Frequently Asked Questions
PlanetWars
PlanetWars
Multiplayer online campaign
Ladder
Factions
The mighty factions controlling huge sectors of galaxy
Community
Forum
Discuss, ask for help, have fun!
Clans
Play with your friends or make friends while playing :)
Ladders
Statistics
Code of Conduct
Be nice, have fun!
Develop
Make the game with us
Privacy Policy
Contact
Contact the Zero-K team
Credits
Makers of Zero-K
Donate
Help cover the server costs!
OR
Zero-K Name:
Password:
Login
Forum index
>
General discussion
>
Development
>
Starting guide to Spring Lua scripting
14 posts, 1186 views
Filter:
Player:
Post comment
sort
[2up]knorke
10 years ago
(edited 10 years ago)
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
ivand
10 years ago
That is an excelent one.
I request the second part, though. Gadget example and sync<==>unsync code communication.
+0
/
-0
PowerGuy
10 years ago
sweet! I had been hoping for a basic LUA widget tutorial and here it is :)
+0
/
-0
CrazyEddie
10 years ago
Please excise the knorkerisms such as "wupget". You want to teach, not confuse.
+2
/
-0
CrazyEddie
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
mojjj
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
CrazyEddie
10 years ago
If you have to explain the joke it's not a joke.
+1
/
-0
Fealthas
10 years ago
Where do I find the chilli widgets?
+0
/
-0
Pxtl
10 years ago
Fealthas
- 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
[2up]knorke
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
[2up]knorke
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
CovertMagic
10 years ago
CrazyEddie
Congratulations! You've created a googlewhackblat for the word "knorkerisms".
+0
/
-0
Thomas1
4 years ago
the pages have been hijacked
+0
/
-0
Aquanim
4 years ago
More likely repurposed by Knorke himself. He did not leave the Spring or ZK communities on good terms.
+0
/
-0
Post comment