Page 1 of 1
LUA code libraries.
Posted: Tue Sep 12, 2017 4:45 pm
by tjhkkr
Have anyone thought about...
or
is anyone interested in putting a LUA code section in the forums... we put our lua code out there.
I have found snippets of code here and there I never thought about but are GREAT ideas?
Anyone else interested?
RE: LUA code libraries.
Posted: Tue Sep 12, 2017 5:26 pm
by stilesw
tjhkkr,
Kevinkin and I started something like this some time back. We created a DropBox reference library for Lua code samples and other reference material. We've not done a whole lot with the Lua part but I'll be happy to give you access to the library if you PM me with your email address.
Thanks for the interest/ideas,
-Wayne Stiles
RE: LUA code libraries.
Posted: Tue Sep 12, 2017 11:26 pm
by tjhkkr
Thank yoU!
RE: LUA code libraries.
Posted: Mon Sep 18, 2017 3:36 pm
by fortyporkpies
Always have thought that that would be a great addition to the forums...
RE: LUA code libraries.
Posted: Tue Sep 19, 2017 1:08 pm
by thewood1
That is a great doc. I am going to add it to the document pdf zip I built, unless there are any objections.
RE: LUA code libraries.
Posted: Tue Sep 19, 2017 2:22 pm
by Randomizer
@Fortyporkpies, An excellent resource, many thanks for compiling and uploading it.
-C
RE: LUA code libraries.
Posted: Tue Sep 19, 2017 3:41 pm
by fortyporkpies
Awesome!!
Yes, please upload! It's for everyone. And I'd love to see that zip when you get a chance!
Cheers
Nick G
RE: LUA code libraries.
Posted: Tue Sep 19, 2017 8:34 pm
by thewood1
Added and uploaded...
RE: LUA code libraries.
Posted: Tue Sep 19, 2017 9:43 pm
by fortyporkpies
Those pdfs are a goldmine. Thanks, guys.
RE: LUA code libraries.
Posted: Wed Sep 20, 2017 12:17 am
by tjhkkr
ORIGINAL: thewood1
Added and uploaded...
Thank you for these .pdfs
RE: LUA code libraries.
Posted: Fri Sep 29, 2017 8:56 pm
by angster
Generic Helper Functions
RE: LUA code libraries.
Posted: Fri Sep 29, 2017 10:34 pm
by fortyporkpies
@angster - Thank you for posting these. The group manipulation functions are especially helpful!
RE: LUA code libraries.
Posted: Sat Sep 30, 2017 10:33 am
by stilesw
angster,
Thanks for the code examples. I've included them in the unofficial CMANO Lua sample library. This is a companion repository to the unofficial Dropbox general CMANO reference library.
Anyone who would like access to the Lua reference or general reference libraries please PM me with your email address and I will add you to the access lists.
Also, anyone who has Lua code samples or other reference material of interest to the CMANO community, let me know and I can include them in the Dropbox files.
Thanks,
-Wayne Stiles
RE: LUA code libraries.
Posted: Thu Oct 05, 2017 12:42 pm
by Halsey1945
Not sure if this is the place to put this, but I made a program to create ScenEdit_AddUnits in Python. I was wondering if there are any special requirements or suggestions anyone can think of. Also, if I should try and make it in other languages. Here is what I have so far:
A command prompt program that asks for unit type, decides what info is needed, asks for it, sends it to the right function (air, facility, ship, submarine), and prints the results.
A program that takes an input file, creates a list by line of the input, takes the first input as unit type, decides needed info, sends to the right function, adds it to a result list, continues until there is no more list elements, and prints the results to a output file. This one is the most troublesome one. Also, right now you have to edit in the file names.
my programming skills are rudimentary at best, but I am a quick and dedicated learned. And, I am hoping to help others.
RE: LUA code libraries.
Posted: Thu Oct 05, 2017 12:55 pm
by stilesw
Halsey1945,
Well, I've never done anything in Python (old FORTRAN, COBOL, Pascal, C/C+, and Basic guy). I have done Lua within CMANO. I'd be happy to check out what you have created but the CMANO Lua expert is michaelm.
I also informally maintain the unofficial CMANO DropBox Reference and Lua Code sample library - happy to give you access if you PM me with your email address.
-Wayne Stiles
RE: LUA code libraries.
Posted: Thu Oct 05, 2017 7:11 pm
by Halsey1945
Here is what I have so far.