[BUG] - [PF2e] - No Columns Sort By Values

by ADMIN 43 views

BUG: No Columns Sort by Values in PF2e Item Piles

Introduction In the Pathfinder Second Edition (PF2e) version of Item Piles, a bug has been identified where columns do not sort correctly, except for the "Type" column, which categorizes items into their respective sections. This issue affects the functionality of the Item Piles module, making it difficult for users to manage and organize their items. In this article, we will delve into the details of the bug, provide steps to reproduce it, and discuss the expected behavior.

Bug Description The bug is characterized by the inability of columns to sort correctly, except for the "Type" column. This means that users cannot sort items by price, level, or any other attribute, except for the type of item. This limitation makes it challenging for users to manage and organize their items effectively.

To Reproduce the Bug To reproduce the bug, follow these steps:

  1. Create a new Loot Actor: Create a new Loot Actor named 'test shop' to serve as the container for the items.
  2. Configure Item Piles: Enable Item Piles under Main Settings and set the Item Pile Type to "Merchant" under Other Settings.
  3. Drag items from the Compendium: Drag items from the Compendium, such as Full Plate, Magic Wand, and Dagger, into the Loot Actor.
  4. Attempt to sort by price: Attempt to sort the items by price to observe the bug.

Expected Behavior The expected behavior is that the columns should sort correctly, allowing users to manage and organize their items effectively. In this case, the "Type" column should sort items into their respective sections, and other columns, such as price, level, and others, should also sort correctly.

Screenshots To better understand the issue, the following screenshots are provided:

Image Image Image

Setup The following setup is used to reproduce the bug:

  • Foundry Version: 12.331
  • System Version: Pathfinder Second Edition 6.11.1
  • Item Piles Version: 3.2.6
  • Browser & version: Tested within Foundry

Active Modules The following modules are active:

  • Item Piles 3.2.6
  • libwrapper 1.13.2.0
  • socketlib 1.1.2

Additional Context Outside of this simple example, no other configured columns sort properly. For instance, if a 'Level' column is added with the property path 'system.level.value', it also does not sort correctly.

Conclusion The bug in PF2e Item Piles, where columns do not sort correctly, except for the "Type" column, is a significant issue that affects the functionality of the module. By reproducing the bug and understanding the expected behavior, users can better appreciate the importance of resolving this issue. We that this article has provided valuable insights into the bug and its implications, and we look forward to seeing the resolution of this issue in future updates of the Item Piles module.

Troubleshooting Steps To troubleshoot this issue, users can try the following steps:

  1. Clear cache: Clear the cache by pressing Ctrl / Cmd + F5 to ensure that the issue is not caused by a cached version of the module.
  2. Check console for errors: Check the console for errors by pressing F12 to open the developer tools and navigating to the Console tab.
  3. Reset Item Piles' system settings: Reset Item Piles' system settings to their default values to see if the issue is resolved.
  4. Reproduce the bug with only Item Piles & its dependency modules enabled: Reproduce the bug with only Item Piles and its dependency modules enabled to isolate the issue.

By following these troubleshooting steps, users can help identify the root cause of the issue and provide valuable feedback to the developers to resolve the bug.
Q&A: Resolving the No Columns Sort by Values Bug in PF2e Item Piles

Introduction In our previous article, we discussed the bug in PF2e Item Piles where columns do not sort correctly, except for the "Type" column. In this article, we will provide a Q&A section to address common questions and concerns related to this issue.

Q: What is the cause of the bug? A: The cause of the bug is not yet fully understood, but it is believed to be related to a compatibility issue between Item Piles and the PF2e system. Further investigation is needed to determine the root cause of the issue.

Q: How can I reproduce the bug? A: To reproduce the bug, follow the steps outlined in our previous article:

  1. Create a new Loot Actor named 'test shop'
  2. Configure and check "Enabled" for Item Piles under Main Settings, "Merchant" for Item Pile Type under Other Settings.
  3. Drag items from a Compendium - in this case: Full Plate, Magic Wand, and Dagger
  4. Attempt to sort by price

Q: What is the expected behavior? A: The expected behavior is that the columns should sort correctly, allowing users to manage and organize their items effectively. In this case, the "Type" column should sort items into their respective sections, and other columns, such as price, level, and others, should also sort correctly.

Q: What are the system requirements for Item Piles? A: The system requirements for Item Piles are:

  • Foundry Version: 12.331
  • System Version: Pathfinder Second Edition 6.11.1
  • Item Piles Version: 3.2.6
  • Browser & version: Tested within Foundry

Q: What modules are required for Item Piles to function correctly? A: The following modules are required for Item Piles to function correctly:

  • Item Piles 3.2.6
  • libwrapper 1.13.2.0
  • socketlib 1.1.2

Q: Can I sort items by other attributes, such as level or name? A: Unfortunately, no. The bug affects all columns, except for the "Type" column, making it impossible to sort items by other attributes.

Q: How can I troubleshoot this issue? A: To troubleshoot this issue, try the following steps:

  1. Clear cache: Clear the cache by pressing Ctrl / Cmd + F5 to ensure that the issue is not caused by a cached version of the module.
  2. Check console for errors: Check the console for errors by pressing F12 to open the developer tools and navigating to the Console tab.
  3. Reset Item Piles' system settings: Reset Item Piles' system settings to their default values to see if the issue is resolved.
  4. Reproduce the bug with only Item Piles & its dependency modules enabled: Reproduce the bug with only Item Piles and its dependency modules enabled to isolate the issue.

Q: What is the current status of the bug? A: The bug is currently being investigated by the developers, and a fix is expected to be released in a future update of the Item Piles module.

Q: How can I stay updated on the status of the bug? A: To stay updated on the of the bug, follow the Item Piles module on the Foundry VTT forums or check the module's GitHub page for updates.

By following these troubleshooting steps and staying informed about the status of the bug, users can help resolve this issue and ensure that their Item Piles module functions correctly.