5E Product Walkthrough Playlist
  1. #1
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29

    Paging Items list

    Hi Zacchaeus and Lord Entrails; <--- He really means Moon Wizard (moderator)

    The new Master Index routines need some rework, I think.
    Here are the steps to repeat the problem:

    [using the indicated panels in screenshot 1]
    (1) I started a new 5E Campaign, without any extensions
    (2) I activated the 5E SRD Data module
    (3) I opened the Items recordset and copied the Amulet, then renamed the copy to "Amulet, Mine". Note that it doesn't belong to any Group so it is "Uncategorized".
    Screenshot1.png

    [using indicated panels in screenshot 2]
    (4) Using the recordset Page selector
    (5) I navigated to page 3 of the Items recordset
    (6) using the Group drop down, I selected the "Uncategorized" Group
    (7) In panel 7 of Screenshot 2, note that the Page selector is incorrect. First, there is only one item in the Uncategorized so the Page selector should not be displayed. And second, the Page selector's displayed data is non sensical.
    Screenshot2.png

    (If I click First Page or Previous Page, the Page selector corrects itself and disappears, but it shouldn't be displayed in the first place.)

    Moderator: Move to House of Healing
    Last edited by Zacchaeus; December 26th, 2021 at 18:53.
    Current Projects:
    Always...
    Community Contributions:
    Extensions: Bardic Inspiration, Druid Wild Shapes, Local Dice Tower, Library Field Filters
    Tutorial Blog Series: "A Neophyte Tackles (coding) the FG Extension".

  2. #2
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    20,827
    I can reproduce this.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php

  3. #3
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29
    Quote Originally Posted by Minty23185Fresh View Post
    Hi Zacchaeus and Lord Entrails; <--- He really means Moon Wizard (moderator)
    True enough, but I must show our moderators, the first line of defense, proper respect.

  4. #4
    Thanks. I'll have a fix in the next weekly update.

    Regards,
    JPG

  5. #5
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    Goldstone, CA, USA
    Posts
    1,211
    Blog Entries
    29
    Quote Originally Posted by Moon Wizard View Post
    Thanks. I'll have a fix in the next weekly update.
    Thank you Moon Wizard, the promised fix looks great.

    I'm going to be a bit presumptuous and follow this up...

    In the ruleset script, as of Dec 28th, 2021, there is a construct that appears to me to be something against what might be considered best practice.
    A local variable in a for loop has the same name as a function parameter.

    The function is in file CoreRPG\campaign\scripts\masterindex_window.lua

    The function definition isFilteredRecord(v) is located at line 726.

    The offending for loop is at line 741:
    for _,v in ipairs(vValues) do

    I know that there is nothing wrong with this, lua executes just fine with this peculiarity, but to my mind it's not a particularly great coding practice to follow. (Just my opinion. )

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