Joshua Stream 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 - 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
Fantasy Grounds Fridays Pre

Log in

Log in