Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Lua Videos posted

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Lua Videos posted Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua Videos posted - 1/21/2019 5:31:11 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
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/

< Message edited by Whicker -- 3/11/2019 5:10:27 AM >
Post #: 1
RE: Lua Videos posted - 1/21/2019 3:30:19 PM   
KnightHawk75

 

Posts: 1403
Joined: 11/15/2018
Status: offline
This is great. I suspect this is going to help a fair amount of people just starting out. Hopefully it demystifies some things for those not familiar with lua or general programming constructs who may have been holding off even trying.

Nice work sir, a definite plus for the games community.

(in reply to Whicker)
Post #: 2
RE: Lua Videos posted - 1/21/2019 4:43:42 PM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
Thanks!
I'm a little disappointed in the video quality - I think that is the first video I have made on my new monitor that is higher resolution than the video was produced at so it is a little fuzzy from getting resized. Just about everything that could have gone wrong did go wrong while making them.

(in reply to KnightHawk75)
Post #: 3
RE: Lua Videos posted - 1/21/2019 5:02:52 PM   
KnightHawk75

 

Posts: 1403
Joined: 11/15/2018
Status: offline
Seemed ok to me at least in 1080p full screen via YT, you live you learn, could maybe increase the font size in the console editor maybe for next time (console view menu zoom-in), may help a little when resizing. Keep it up!

(in reply to Whicker)
Post #: 4
RE: Lua Videos posted - 1/21/2019 7:07:49 PM   
Gunner98

 

Posts: 5459
Joined: 4/29/2005
From: The Great White North!
Status: offline
Great video

I've done quit a bit of Lua but mostly the 'hunt & peck' then call for help variety! This helps a lot.

Cheers

B

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to Whicker)
Post #: 5
RE: Lua Videos posted - 2/7/2019 5:28:16 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
added 2 other videos above - one on a basic function that was from a week or two ago and another one from today on using a function to return a value.

Any other ideas for a lua video? I think there is some basic stuff to get people on track there. Might do a few on creating a scen but just looking for idea for a Lua video at the moment.

(in reply to Gunner98)
Post #: 6
RE: Lua Videos posted - 2/7/2019 8:45:40 AM   
Primarchx


Posts: 3100
Joined: 1/20/2013
Status: offline
These are great because it puts Lua in context with Command. I've been watching a bunch of Lua Tutorials but particularly like yours, Whicker, because it gives game-specific examples. Great job!

(in reply to Whicker)
Post #: 7
RE: Lua Videos posted - 2/8/2019 10:18:18 PM   
KnightHawk75

 

Posts: 1403
Joined: 11/15/2018
Status: offline
Should probably be pinned, or maybe a link added in the resources pinned item.

(in reply to Primarchx)
Post #: 8
RE: Lua Videos posted - 2/9/2019 5:09:32 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
glutton for punishment, vid on tables added to the list above.

(in reply to KnightHawk75)
Post #: 9
RE: Lua Videos posted - 2/9/2019 4:51:29 PM   
Primarchx


Posts: 3100
Joined: 1/20/2013
Status: offline
Good info on the #table function with regard to custom element names vs standard, ordered references!

(in reply to Whicker)
Post #: 10
RE: Lua Videos posted - 2/9/2019 10:44:21 PM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
another one- going over the unit wrapper a little deeper.

(in reply to Primarchx)
Post #: 11
RE: Lua Videos posted - 2/10/2019 6:00:13 AM   
KnightHawk75

 

Posts: 1403
Joined: 11/15/2018
Status: offline
Cool I'll check out the newly added content, thanks.

(in reply to Whicker)
Post #: 12
RE: Lua Videos posted - 3/11/2019 5:11:39 AM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
added 3 more this weekend to the list in the first post - 2 on fixing ship path issues when leaving a port and one on overlays.

(in reply to KnightHawk75)
Post #: 13
RE: Lua Videos posted - 3/13/2019 5:04:11 AM   
KnightHawk75

 

Posts: 1403
Joined: 11/15/2018
Status: offline
Nice I'll check them out tonight, but in advanced - thanks for doing more of these.

(in reply to Whicker)
Post #: 14
RE: Lua Videos posted - 5/25/2019 10:23:54 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
How did I miss these? Thanks a million!

Kevin

_____________________________

“The study of history lies at the foundation of all sound military conclusions and practice.”
― Alfred Thayer Mahan


(in reply to KnightHawk75)
Post #: 15
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Lua Videos posted Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.250