DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    Help with Bag of Holding Extension (development)

    (For use with 5E Ruleset)

    So, I might have bitten off a bit more than I can chew with this one.

    It's a simple concept, but the implementation is causing me some difficulty.

    I do not have a lot of experience with FG, so don't even know if this is possible.

    I know some basic LUA and have a reasonable understanding of XML, but I know where to find the resources to help if i get stuck.

    What I am attempting to do, is firstly find where (which file) the encumbrance "current" is calculated, and if that can be modified so that if an item has a (in this example) "Bag of Holding" location tag, have its weight deducted from that "current", which then can be added to the Bag of Holdings "current" weight.

    If someone can point me in the right direction, to find the script that handles encumbrance "current" weight, or let me know if this is not even possible..

    I have attached a screen shot below to show what it looks like on the players inventory tab so far

    BoHScreenshot.png
    Last edited by BloatedNikNak; August 13th, 2020 at 15:55.

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,234
    Blog Entries
    9
    I don't know, but I can tell you this;
    That looks like 5E. 5E is layered on top of CoreRPG, so you'll have to unpack CoreRPG and look in those files as well as the 5E ones. Note that rulesets (.pak) files are just renamed zip files, so you can extract them. I suggest renaming or moving the extracted files because FG will look to unpacked files before using zipped files and it may throw you off when you go to play if you have been modifying ruleset files.

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    Quote Originally Posted by LordEntrails View Post
    I don't know, but I can tell you this;
    That looks like 5E. 5E is layered on top of CoreRPG, so you'll have to unpack CoreRPG and look in those files as well as the 5E ones. Note that rulesets (.pak) files are just renamed zip files, so you can extract them. I suggest renaming or moving the extracted files because FG will look to unpacked files before using zipped files and it may throw you off when you go to play if you have been modifying ruleset files.
    Yeah. I've had a look in both 5E and CoreRPG, I must be missing something, I will go though it again. Thank You

  4. #4
    From a search through 5E's files, there are three files that factoring encumbrance is mentioned:
    record_char_inventory.xml - where it sits on the character sheet and given the look to display it.
    char_invlist.lua - function onEncumbranceChange() - How it affects the character in terms of game mechanics
    manager_char.lua - function updateEncumbrance - When to check and possibly change the Encumbrance.

    You may still have to keep pulling threads, but this should help get you started.
    Dominic Morta
    Ruleset Developer
    Smiteworks

    How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it

    How to provide an Unity Connection issue?-Connection Issues and What to Provide

    Unity Updater issue?-Updater Issues

    Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained

    Comcast or Cox ISP User?-Comcast XFinity and Cox Users

    Have a suggestion?-Feature Request

  5. #5
    Out of curiosity, do you really want to develop an extension? Or would a work-around be sufficient?

    You could create a Bag of Holding as a Character and have a player take control of it. It's what a number of us do. That way you can easily drag items to it and know they're in the bag. It also calculates how much it is holding in terms of burden.

    Just a suggestion.
    Fantasy Grounds Unity Lives! Good job, Smiteworks!

  6. #6
    For my characters, I set the location of the item to the bag, and set the "Equipped/Carried/Empty" toggle to "Empty" to zero the weight. If I need to see how much is in actually the bag, I have to change the toggle of the bag, which in turn changes everything underneath it, and then click everything off again, but I don't have to do that often.

  7. #7
    Quote Originally Posted by superteddy57 View Post
    From a search through 5E's files, there are three files that factoring encumbrance is mentioned:
    record_char_inventory.xml - where it sits on the character sheet and given the look to display it.
    char_invlist.lua - function onEncumbranceChange() - How it affects the character in terms of game mechanics
    manager_char.lua - function updateEncumbrance - When to check and possibly change the Encumbrance.

    You may still have to keep pulling threads, but this should help get you started.
    Thank you, I will take a look at this today

  8. #8
    Quote Originally Posted by Three of Swords View Post
    Out of curiosity, do you really want to develop an extension? Or would a work-around be sufficient?

    You could create a Bag of Holding as a Character and have a player take control of it. It's what a number of us do. That way you can easily drag items to it and know they're in the bag. It also calculates how much it is holding in terms of burden.

    Just a suggestion.
    It's more to do with me wanting to learn the process, and make an extension. But being new to it, needed a little guidance.
    But your suggestion is a good way to handle it.

  9. #9
    Quote Originally Posted by The High Druid View Post
    For my characters, I set the location of the item to the bag, and set the "Equipped/Carried/Empty" toggle to "Empty" to zero the weight. If I need to see how much is in actually the bag, I have to change the toggle of the bag, which in turn changes everything underneath it, and then click everything off again, but I don't have to do that often.
    Thats what my DM is doing at the moment, and is fine with that. I just figured I would try giving it a go.
    And if it works, I'm more than happy to share.

  10. #10
    UPDATE:

    I have managed to get a working prototype..

    I have attached a screen shot below for an example.

    If the item has "Bag of Holding" in location, and is "Not Carried" the weight of that item is added to the Bag of Holding, and removed from Current Encumbrance .

    Items can be easily removed from the Bag of Holding by either having them marked as "Carried" / "Equipped" - the weight is then removed from the Bag of Holding and added back to Encumbrance Current.

    This negates the need to delete "Bag of Holding" from the location column and re typing each time an Item is removed, and then later placed back.

    I still want to work on a few things, before I offer it up, namely figuring out how to get it working without having edited the 5E Ruleset directly. (Was done as a quick way to see if it works) - Any pointers on that would be appreciated.
    Screenshot.png

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
  •  
FG Spreadshirt Swag

Log in

Log in