Fantasy Grounds Fridays Pre
View RSS Feed

Minty23185Fresh

  1. A Neophyte Tackles the FG Extension - Reducing Copied Ruleset Script Revisited

    In a previous post I detailed how I reduced duplicated lua script in my fledgling extension. Play testing the extension revealed a design error. The issue: Windows cannot resolve a folder path into a ruleset .pak file. (For background information, the reader might consider reviewing the prior post and in particular the first few comments attached to it.)

    An obvious remedy for the problem is to insert .pak into the path as it is specified in the extension.xml file. I had doubts, but ...
  2. A Neophyte Tackles the FG Extension - Visibility, More Options Please

    Play testing the Effect Visibility Extension indicated more visibility options are required. When effects are only visible to the GM, if a player applies an effect to their character and doesnít see it in the Combat Tracker, they tend to apply it again, and then again. When the GM views the playerís character in the Combat Tracker, the self applied effect could be listed 2, 3 or more times.

    What additional options are needed? Certainly, an option that allows the player to see effects ...

    Updated June 22nd, 2016 at 05:30 by Minty23185Fresh

    Categories
    Uncategorized
  3. A Neophyte Tackles the FG Extension - Reducing Copied Ruleset Script

    This time Iíll look at reducing the size of the manager_effect.lua file in my extension. Recall from last time, I copied that lua file, in its entirety, to my extension then added a single line of code to change the default behavior of an effectís initial visibility. Having nearly 1500 lines of duplicate code troubles me.

    Detour: Why is duplicating code bad practice? For one it bloats the size of your program, and for certain languages that can cause decreased execution speed. ...

    Updated June 16th, 2016 at 00:36 by Minty23185Fresh

    Categories
    Uncategorized
    Attached Thumbnails Attached Files
  4. A Neophyte Tackles the FG Extension - Change Effect Visibility with One Line (Part 3)

    Due to posting limits, I have had to split this session into three posts.
    This is part 3 of 3.


    (continued from part 2)

    To test the extension, I deleted all the effects that were applied to the Orc, saved all my edited files, and reloaded the ruleset. Once FG was up I started a second instance of FG and joined the campaign. In the second instance I loaded Zacchaeusís 20th level Paladin and brought up the Combat Tracker. Then I started a third instance of ...

    Updated June 9th, 2016 at 18:51 by Minty23185Fresh

    Categories
    Uncategorized
  5. A Neophyte Tackles the FG Extension - Change Effect Visibility with One Line (Part 2)

    Due to posting limits, I have had to split this session into three posts.
    This is part 2 of 3.


    (continued from part 1)

    Now to decipher the statement in line 535 (FG v3.1.7). The statement starts with ďDB.setValueĒ. From previous work for this blog series I know DB refers to the DB Package and setValue( ) is a function in that Package described in the XML and Scripting Reference. From the document I see that this statement writes data using the parameters ...
Page 1 of 3 123 Last
Joshua Stream Pre

Log in

Log in