STAR TREK 2d20
  1. #1

    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

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,273
    Blog Entries
    9
    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.

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    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!

  4. #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.dll
    Last edited by JustinFreitas; November 5th, 2023 at 14:05.

  5. #5
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,273
    Blog Entries
    9
    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.

  6. #6
    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

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,411
    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-Changes
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in