DICE PACKS BUNDLE
  1. #1

    Available Lua Standard Libraries

    The current documention related to FG Scripting says: "math", "string" and "table" are the standard libraries available.
    The combat timer extension is using the "os" library.

    So my question is. Is the wiki outdated? Are there other libraries/functionalities I can use as a dev?

    Thank you!

  2. #2
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Quote Originally Posted by st4lk3r87 View Post
    The current documention related to FG Scripting says: "math", "string" and "table" are the standard libraries available.
    The combat timer extension is using the "os" library.

    So my question is. Is the wiki outdated? Are there other libraries/functionalities I can use as a dev?

    Thank you!
    Primarily the listed ones are the ones that are available.
    The author of the Combat Timer found a specific function in os that was used elsewhere and exploited.
    Im sure there may well be a couple of others but the ones listed in the wiki were the ones that were deliberately exposed to the rest of us.

  3. #3
    Quote Originally Posted by damned View Post
    Primarily the listed ones are the ones that are available.
    The author of the Combat Timer found a specific function in os that was used elsewhere and exploited.
    Im sure there may well be a couple of others but the ones listed in the wiki were the ones that were deliberately exposed to the rest of us.
    Thank you damned. So, can I say: "It's not safe to use those exploited functions cause they may change without breaking-changes advice" ?

  4. #4
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,685
    Blog Entries
    1
    Quote Originally Posted by st4lk3r87 View Post
    Thank you damned. So, can I say: "It's not safe to use those exploited functions cause they may change without breaking-changes advice" ?
    The reason (or at least a reason) not all libraries are exposed is to prevent (or at least minimise) anyone doing anything malicious with a ruleset or extension.
    If you found a routine or function used in one of the official rulesets you can probably safely reuse it.

  5. #5
    Quote Originally Posted by damned View Post
    The reason (or at least a reason) not all libraries are exposed is to prevent (or at least minimise) anyone doing anything malicious with a ruleset or extension.
    If you found a routine or function used in one of the official rulesets you can probably safely reuse it.
    Yes, I'm aware of it. I think it's a wise decision.
    Less freedom for "lawful good" developer unfortunately

  6. #6
    Try this more updated developer guide page:

    https://www.fantasygrounds.com/wiki/...ic_Lua_Changes

    Cheers,
    JPG

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
  •  
5E Character Create Playlist

Log in

Log in