Thank you so much!
Printable View
This is great! Good job!
I cant see were i can Download this extension on the post am i missing something ?
Click on the first page of this forum post. Just below the images there is a different colored section for Attachments. There is a png and ext attachment. Download the ext file and drop it in your Fantasy Grounds extension folder. Hope that was clear enough.Quote:
For some reason no idea why it wont allow me to interact with that link can you PM me the file?
Alright, after doing some testing on this extension over the weekend, I'm admitting defeat. I do data sets, not procedural languages, so LUA and XML are not my thing. I know what needs to be done pseudo code-wise, but haven't successfully made an update to the extension that fixes the bug.
The extension is failing to clear a checkbox on inventory delete. Alternatively, i added a header for Attunement with a counter to keep track of the total attuned items, which could be manually overwritten to correct the bug, but the counter is not keeping track in my testing. I'm just not calling the variables correctly. My XML skills are normally limited to editing existing code when I have examples.
If anyone wants to take a crack at updating the code to get the onDelete function working properly, I'm happy to integrate it into the extension. I'll keep trying to correct this myself, but I've got other languages that take a priority to learn over XML.
You must be viewing on the Full Site and in the "FG Responsive" theme. Make sure you are not viewing the mobile site and in the bottom left corner set the theme to FG Responsive.Quote:
Never mind. I read two responses up and it explains the problem I am having.
Ok! I have fixed the extension for you. I have added a script reference to the "attuned_label" control in the record_char_inventory.xml file. This script points to the new "campaign/scripts/charsheet_inventory.lua" file that updates the "attunedCount" DB value whenever an inventory item is deleted. I have tested it and this corrects the problem!!!
I have updated the extension to v1.2 so that dmsanctum can easily update the OP.
EDIT: While this version is fixed, it did not work with the coin_weight extension. I have correct this problem too and posted the fix in a later post.
Thank you very much. I wasn't calling all the right items in the code I was testing. I've updated the extension and given you credit on the original post. This extension is not 100% compatible with the Con Weight extension now, having both on at the same time disables the attunemnt delete update portion, even though both extensions are using merge joins.