STAR TREK 2d20
Page 1 of 2 12 Last
  1. #1

    Coding Help: Make new tab in inventory area

    Hello everyone,

    I was wondering if anyone knew how (or the code) to add a new tab in the inventory section (much like the Sci-Fi companion & Rippers do). I know you can make a tab for the whole character but I'm trying to add it to inventory because it is well inventory based. All else fail I could use "Cyber ware" but it's really not that. All else fail I can dive into the Sci fi companion and try to figure it out
    but any help would be appreciated.
    Last edited by Leperchan5; January 18th, 2018 at 16:12. Reason: title typo

  2. #2
    You'll need to write an extension.

    Just to satisfy my curiosity, do you mean another tab after Mundane, Weapons, Armor, Vehicles and Notes?


    Dave
    No signature needed, please leave parcel on the porch.

  3. #3
    I am well aware that I would have to make an extension, but a little confused on where to start. To answer your second question, yes. I want to add another tab after weapons, armor, ect. When you add the Sci-fi companion or the Ripper's setting they add Cyber-ware or Ripper Tech in a tab. This akin to what I want to do.

  4. #4
    Well, how about we start you off on the right path then? Are you game?


    Dave
    No signature needed, please leave parcel on the porch.

  5. #5
    I am 100% down for that. I am so ready to game, I rolled Initiative (or in this case, drew a card)

  6. #6
    A good place to start:
    https://www.fantasygrounds.com/wiki/...eveloper_Guide

    1. Create a directory in your extensions directory, we're going to call it leperchan5.
    2. Create a directory inside leperchan5 called charsheet.
    3. Inside leperchan5, create a file called extension.xml
    4. Copy/paste the following into extension.xml

    <?xml version="1.0" encoding="iso-8859-1"?>
    <root version="3.3" release="1">
    <announcement text="Add a tab to Inventory" font="emotefont" icon="rulesetlogo_CoreRPG" />
    <properties>
    <name>Adding tab to Inventory</name>
    <version>1</version>
    <author>Your Name</author>
    <description>Add tab to Inventory for Savage Worlds</description>
    <ruleset><name>SavageWorlds</name></ruleset>
    </properties>
    <base>
    </base>
    </root>

    5. Start up Fantasy Grounds
    6. Create a new campaign, select Savage Worlds.
    7. Hopefully you'll now see an Extension called 'Adding tab to Inventory'

    Of course, it won't do anything at the moment, as we haven't made any modifications.

    (to be continued, I'm doing this as I type this)


    Dave
    No signature needed, please leave parcel on the porch.

  7. #7
    Next, we're going to have to take a look at how all this crazy stuff is put together.

    Inside the ruleset directory, you'll see a file called SavageWorlds.pak. Copy (DO NOT MOVE) to your desktop, and change the filename to SavageWorlds.zip

    Create a folder on your desktop, name it something you're remember, and move the file you just copied to the desktop into this folder.

    Next, unzip that file into this new folder, so you don't clutter up your precious desktop.


    Dave
    No signature needed, please leave parcel on the porch.

  8. #8
    All this looks good so far. I have a few things I need to do, but I'll be diving into the Savage World Pak code once i'm done

    Thank you for getting me started on the right track.

  9. #9
    Now we're rolling...

    Open up extension.xml, and put the following between <base> and </base>.


    <includefile source="charsheet/charsheet_inventory.xml" />
    <includefile source="charsheet/charsheet_inventory_leperchan5.xml" />
    <includefile source="strings/strings_common.xml" />

    Next, find those files and replicate the path just like the unzipped SavageWorlds.pak.

    You won't have a charsheet_inventory_leperchan5.xml, just copy charsheet_inventory_notes.xml and replace _notes with _leperchan5.

    Next time, we're going to modify those three files so that a tab appears in the inventory.
    (Yup, that's all there is to adding a tab, quite simple)


    Dave
    No signature needed, please leave parcel on the porch.

  10. #10
    Your directory structure should look like this:

    leperchan5
    ├── charsheet
    │** ├── charsheet_inventory.xml
    │** └── charsheet_inventory_leperchan5.xml
    ├── extension.xml
    └── strings
    ** └── strings_common.xml


    Dave
    No signature needed, please leave parcel on the porch.

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