Thread: Lua Version for FG
-
November 5th, 2023, 01:11 #1
- Join Date
- Aug 2023
- Location
- Central Florida
- Posts
- 43
Lua Version for FG
What version of Lua does Fantasy Grounds use? (The latest version of Lua is 5.4.6) Is there a recommended IDE for developing Lua apps for FG?
FredrikVladimir
Primarily looking for Mongoose Travellers 2e
Central Florida, USA
-
November 5th, 2023, 02:44 #2
For some reason I want to say 3.1 But it should be mentioned in the Developer Guide: https://fantasygroundsunity.atlassia...eveloper+Guide
Can't really speak to an IDE, but their is the RulesetWizard: Ruleset Wizard – The ruleset development environment for Fantasy Grounds
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
November 5th, 2023, 10:30 #3
I can't find where it's documented, but I think it's LUA 5.1 - certainly that was the last version that the devs said they were using.
There's not an IDE to debug FG LUA code - they only way to do so is to run FG and make use of Debug commands in your code: https://fantasygroundsunity.atlassia...96644597/Debug
You can use multiple FG variables in the Debug commands - which will output "nil" if they variable isn't valid. This is very handy in checking on errors with nil variable. For example:
Code:Debug.console ("Checking LUA table my LUA tables.", tMyLUATable1, tMyLUATable2, tMyLUATable3);
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
November 5th, 2023, 13:47 #4
5.1… I saw it somewhere in a log file entry.
Edit: Yeah, it was in FGUpdaterEngine.log, here's the entry.
i: C:\Program Files\SmiteWorks\Fantasy Grounds\FantasyGrounds_Data/Plugins/x86_64/lua5.1.dllLast edited by JustinFreitas; November 5th, 2023 at 14:05.
-
November 5th, 2023, 16:35 #5
I got the .1 right. Do I get credit for that?
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
November 6th, 2023, 00:07 #6
- Join Date
- Aug 2023
- Location
- Central Florida
- Posts
- 43
The good news is that I found a used copy of the 5.1 Manual for less than $10, delivered. So I don't have to shell out the $40 for the 5.4 manual.
FredrikVladimir
Primarily looking for Mongoose Travellers 2e
Central Florida, USA
-
November 6th, 2023, 09:23 #7
There's plenty of LUA resources online.
Specific to LUA 5.1: https://www.lua.org/manual/5.1/
But keep in mind that not everything is implemented. Some info here: https://fantasygroundsunity.atlassia...ic-Lua-ChangesPrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks