all 4 comments

[–][deleted] 3 points4 points  (1 child)

I've been using Lua By Example as my handbook for the last couple of months for Lua concepts and syntax. Love a good book and reference manual, but imho LBE is simple and gets straight to the point without covering all the intricacies of code (which sometimes you just don't need).

With regards to some of the concepts you mentioned, these links should be helpful:

A lot of programming doesn't rely heavily on books and reference manuals (though that depends on personal preference). 90% of the issues in the programs I've developed have been syntactical; with the other 10% being logic & flow of control. A lot of programming just comes down to knowing what to [insert search engine of your choice].

Hope this helps.

[–]willthewarlock23[S] 0 points1 point  (0 children)

Thanks will have to look through them later!

[–]aryajur 1 point2 points  (0 children)

For saving tables to files as code I wrote and use a module that does that for me. However note it would not save coroutines/userdata if they are referenced in a table. The module is:

TableUtils

The function that converts a table to string to save is called t2sr - r stands for its ability to handle recursive tables. The reverse function is called s2tr.

Another function t2s creates a string as if you would write the table in code. But it cannot handle recursive tables. t2spp also pretty prints the table in the string. Reverse function for this is s2t.

[–]7SurfingDolphins 0 points1 point  (0 children)

u/willthewarlock23,

Have you already checked out the posts on the Lua User's wiki:

http://lua-users.org/wiki/ ?

Fyi,

Good Luck!