PDA

View Full Version : Modifying a Theme for Pathfinder Second Edition



AlaskanFalcon
February 20th, 2021, 05:15
Hello everyone!

I am attempting to modify an existing theme to support Pathfinder Second Edition better. I am having a hard time determining where specific assets are being stored/pulled from in the extension/ruleset and was hoping some of the gurus here could help me out.
I've attached an image that shows the two outlying issues better, but the the assets I can't seem to find/overwrite are here:

Combat Tracker - Effect DC box
Character Sheet - Weapon Multi-Attack Boxes


43985

Anyone taken the time to modify a theme for PF2e that knows where I can either a) discover the assets and locations to overwrite or b) let me know the name of the assets so I can duplicate an existing one with the proper name?
I've been combing through the extension files and cross referencing with other themes in notepad++ to try and identify what I'm missing, but thought I'd ask the community for assistance before I lose my sanity!

AlaskanFalcon
February 20th, 2021, 06:10
The thought to open up the ruleset and review the code there didn't even occur to me... /facepalm

I was able to get the asset for the Combat Tracker figured out. The PF2e ruleset uses an asset named ct_effectdc.png for the image there with a custom rectangle rather than the native CT effects entries (I'd love to know why it was done different, perhaps Trenloe would be able to shed some light on this?). I'm still digging into the character sheet options, but for those of you who are interested in custom themes, here is the framedef record that needs to be added to graphics_frames.xml in your extension:



<framedef name="ct_effectdc">
<bitmap file="path_to_graphics_folder/ct_effectdc.png" />
<topleft rect="0,0,12,12" />
<top rect="12,0,200,12" />
<topright rect="212,0,12,12" />
<left rect="0,12,12,187" />
<middle rect="12,12,200,187" />
<right rect="212,12,12,187" />
<bottomleft rect="0,199,12,12" />
<bottom rect="12,199,200,12" />
<bottomright rect="212,199,12,12" />
</framedef>


And the resultant change (yes, I know I didn't do a great job on the "DC" text - it's a WIP):
43990

I hate finding forum posts that simply say "Never mind, I figured it out" so I'll keep everyone appraised here as I make progress so others can hopefully learn from my mistakes. If anyone has any insights into themeing, extension development, or general insight into the things I've done (correctly or incorrectly!) please let me know!
- Falcon

AlaskanFalcon
February 20th, 2021, 06:44
Aha! Victory!

The PF2e ruleset uses the slotted modifier or slotted bonus asset for the buttons on the Character Sheet for multiple attacks.
Adding the following code to the graphics_frames.xml allowed for the custom asset to be applied:


<framedef name="groupbox2">
<bitmap file="path_to_graphics/groupbox2.png" />
<offset>15,15,16,16</offset>
</framedef>
<framedef name="slottedmodifier">
<bitmap file="path_to_graphics/slottedmodifier.png" />
<topleft rect="0,0,37,12" />
<top rect="37,0,160,12" />
<topright rect="212,0,12,12" />
<left rect="0,12,37,187" />
<middle rect="37,12,160,187" />
<right rect="212,12,12,187" />
<bottomleft rect="0,199,37,12" />
<bottom rect="37,199,160,12" />
<bottomright rect="212,199,12,12" />
</framedef>
<framedef name="slottedbonus">
<bitmap file="path_to_graphics/slottedbonus.png" />
<topleft rect="0,0,68,12" />
<top rect="68,0,128,12" />
<topright rect="212,0,12,12" />
<left rect="0,12,68,187" />
<middle rect="68,12,128,187" />
<right rect="212,12,12,187" />
<bottomleft rect="0,199,68,12" />
<bottom rect="68,199,128,12" />
<bottomright rect="212,199,12,12" />
</framedef>


43991

Trenloe
February 20th, 2021, 10:40
The PF2e ruleset uses an asset named ct_effectdc.png for the image there with a custom rectangle rather than the native CT effects entries (I'd love to know why it was done different, perhaps Trenloe would be able to shed some light on this?).
It's a custom frame, to display a "DC" label at the top of the field. Creating custom graphics for rulesets, where it's something specific to that ruleset, is standard practice.

phillgamboa
February 28th, 2021, 23:53
Nice work, i love this theme.

phillgamboa
March 1st, 2021, 00:00
I have some errors adding this code line.

Any chance to post the file edited?

AlaskanFalcon
March 2nd, 2021, 02:23
Unfortunately, this theme is not mine and I currently don't have permission from the original author to redistribute his work.
I didn't make it super clear in my post, but I created new art assets based off the original work for use in my edits.

I'd be happy to attempt to troubleshoot with you though. I'm by no means an expert, but happy to help!

SirMotte
May 14th, 2021, 22:36
Hey there, Theme Author here :).

You may use and modify this as you wish, but not for commercial purposes. Even better would be, if you fork it from my GitHub so I could incorporate changes you make into mine.
The Walpurgisnacht Edition you're using is very very outdated by now but will come back at some point this year. I've made a lot of progress in the recent months and have Hearth Edition almost ready to branch out again.

That being said, I will add in the graphics you are referring to into the theme by default, so no need to break a leg there.
Btw: AWESOME! for providing the xml details, this makes it very easy to implement.

Cheers Sir Motte.

Edit:
Alright, I've collected all graphics that need to be added to be PFRPG2 complete...it's 102 .pngs. Luckily most are large Frames, that are pretty easy to make. I get a little bit of a headache if I see the amount of Icons that need to be done though, those take a lot of time.

46681