View Full Version : Learning Lua
Morenu
May 1st, 2025, 21:39
I am going to take the plunge and start learning some coding. I sm 54, and I am typically house bound 3-5 weeks out of every 12. I am going to try to start with something that interests me, Fantasy Grounds. I believe I am correct that FGU is Lua 5.1 (there is a 5.1 - 5.1.5) List of LUA versions (https://lua.org/versions.html)
So looking for opinions on what version of LUA I should download and install and why.
Thanks.
[I would like to link a list of sites here for learning, useful links for add-ons examples and so on. feel free to make suggestions]
Moon Wizard
May 1st, 2025, 21:53
That's correct. FG uses v5.1.5 of Lua.
I never really installed any of the standalone engines when I was learning; I just started making small adjustments to existing FG scripts. (as opposed to trying to tackle big projects right away; or trying to design from scratch.)
Regards,
JPG
Morenu
May 1st, 2025, 22:02
i don't suppose there is a master list of anything that is specifically fantasy grounds labels is there? resources specifically for developers (I know there is a wiki and I assume there is a discord or similar)
LordEntrails
May 1st, 2025, 22:37
Developer Guide - Fantasy Grounds Customer Portal - Fantasy Grounds (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644285/Developer+Guide)
And then a Coding channel in Discord: https://discord.gg/Vdsgvbnk
Trenloe
May 1st, 2025, 23:20
The Developer Guide on the Wiki is a good reference. Specifically the API Reference: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996644535/Developer+Guide+-+API+Reference
And the Workshop sub forum for coding questions and discussions: https://www.fantasygrounds.com/forums/forumdisplay.php?42-The-Workshop
Mephisto
May 2nd, 2025, 10:36
ChatGPT is quite good at explaining code. If you copy/paste code to ChatGPT and ask it to explain the code, you usually get a nice, detailed walkthrough. You can also ask specific questions about the lua language such as "explain ipairs() vs pairs()".
Morenu
May 2nd, 2025, 12:40
I am working on that right now. I put in my background that includes BASIC and PASCAL from 35-40 years ago so its more concepts than knowledge at this point. Well chat gpt made a nice table of LUA code and its similar basic/pascal equivalent
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.