Lua Videos posted
Posted: Mon Jan 21, 2019 3:31 am
I decided to make a video on some basics of using Lua... well, it went a little long. 59 minutes of pure gold. Well, maybe not gold, but for a total beginner it may be helpful. If you already know the basics of Lua/coding there may not be much in there for you.
Also went over a way to do scoring with a lua event. At the end went into the deep end of the Unit Wrapper. Also a bit on the luahistory file and snaketail log viewer. Not sure what the other 45 minutes are about. Should have broken them out into separate vids but so it goes.
https://youtu.be/eDlgkYDTbUQ
looping thru units in Lua - to change their mission or loadout. I learned a bit about this while making it, and it looks like checking for nil values (from units destroyed) may not be necessary any more due to better error handling in the game? I had been a bit confused about this before.
https://youtu.be/lLiykXLExBc
making a function in Lua
https://www.youtube.com/watch?v=je6rl0YFQ_I
Functions and Returning Values
https://youtu.be/CbX6OmIzsoA
Lua Tables
https://youtu.be/F3grnsGdD7A
Unit Wrapper in Depth
https://youtu.be/F5eVMhro9kY
Using lua to set a ship's path when leaving a semi landlocked port
https://youtu.be/rvxnZJio7ac
Using lua to change the waypoints of a course - addon to one above about ships leaving port
https://youtu.be/rC0fObbhNro
Using overlays
https://www.youtube.com/watch?v=Zjhm6eX9_gw
Hopefully they are of some use to some people out there! I highly recommend playing around with Lua, it can be fun/easy to work with (sometimes).
I also created a Videos page on CommandOps to keep them together:
https://commandops.github.io/videos/
Also went over a way to do scoring with a lua event. At the end went into the deep end of the Unit Wrapper. Also a bit on the luahistory file and snaketail log viewer. Not sure what the other 45 minutes are about. Should have broken them out into separate vids but so it goes.
https://youtu.be/eDlgkYDTbUQ
looping thru units in Lua - to change their mission or loadout. I learned a bit about this while making it, and it looks like checking for nil values (from units destroyed) may not be necessary any more due to better error handling in the game? I had been a bit confused about this before.
https://youtu.be/lLiykXLExBc
making a function in Lua
https://www.youtube.com/watch?v=je6rl0YFQ_I
Functions and Returning Values
https://youtu.be/CbX6OmIzsoA
Lua Tables
https://youtu.be/F3grnsGdD7A
Unit Wrapper in Depth
https://youtu.be/F5eVMhro9kY
Using lua to set a ship's path when leaving a semi landlocked port
https://youtu.be/rvxnZJio7ac
Using lua to change the waypoints of a course - addon to one above about ships leaving port
https://youtu.be/rC0fObbhNro
Using overlays
https://www.youtube.com/watch?v=Zjhm6eX9_gw
Hopefully they are of some use to some people out there! I highly recommend playing around with Lua, it can be fun/easy to work with (sometimes).
I also created a Videos page on CommandOps to keep them together:
https://commandops.github.io/videos/
