-
January 18th, 2018, 16:11 #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
-
January 18th, 2018, 17:49 #2
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
You'll need to write an extension.
Just to satisfy my curiosity, do you mean another tab after Mundane, Weapons, Armor, Vehicles and Notes?
DaveNo signature needed, please leave parcel on the porch.
-
January 18th, 2018, 19:18 #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.
-
January 18th, 2018, 19:40 #4
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
Well, how about we start you off on the right path then? Are you game?
DaveNo signature needed, please leave parcel on the porch.
-
January 18th, 2018, 19:50 #5
I am 100% down for that. I am so ready to game, I rolled Initiative (or in this case, drew a card)
-
January 18th, 2018, 19:55 #6
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
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)
DaveNo signature needed, please leave parcel on the porch.
-
January 18th, 2018, 20:00 #7
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
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.
DaveNo signature needed, please leave parcel on the porch.
-
January 18th, 2018, 20:22 #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.
-
January 18th, 2018, 20:54 #9
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
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)
DaveNo signature needed, please leave parcel on the porch.
-
January 18th, 2018, 20:56 #10
- Join Date
- Apr 2012
- Location
- Prosper, TX
- Posts
- 727
Your directory structure should look like this:
leperchan5
├── charsheet
│** ├── charsheet_inventory.xml
│** └── charsheet_inventory_leperchan5.xml
├── extension.xml
└── strings
** └── strings_common.xml
DaveNo 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