-
November 1st, 2023, 15:46 #71
What is the format of the images? Are they JPG, PNG, or webp?
-
November 1st, 2023, 15:52 #72
I tried in jpg, jpeg as of now. Sorry for the Italian but i put some image to make it easy to understand.
Show.jpgAcquisisci schermata Web_1-11-2023_155340_.jpegShow.jpgLast edited by JohnFintch; November 1st, 2023 at 20:39.
-
November 3rd, 2023, 21:33 #73
Hey John,
It's nothing you are doing wrong. I think the format changed since this was originally written and the paths no longer line up to pull the image records. The output HTML does not appear to link to the image at all. I looked at this for a while yesterday and wasn't able to resolve it yet. I will see if I can get it working and post an update if I do. In the meantime, you should still have access to all your images from your campaign image folder and you can manually insert them in using a simple HTML editor.
Both brackets and notepad++ are great text editors with syntax highlighting for HTML files. I would recommend any of those.
The image records would look like this:
<img src="FILENAME WITH PATH" style="width: 100%;" />
-
November 3rd, 2023, 21:43 #74
Thanks for looking at this Doug. I was just coming here to get up to speed to start learning how this works. I've got my Ultimate Undermountain I need to get ready to export.
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.
-
November 4th, 2023, 01:02 #75
-
June 12th, 2024, 01:51 #76
Some notes for anyone else who might be trying to use this currently;
- there are 2 executables in the linked Google Drive. It appears that "FG Character Tool.exe" is the most current and better version (more recent date and has better selection window)
- local .webp images are not included (other image formats not tested) in the html
- Story, NPCs, Items entries are not alphabetized. They appear to be created in the order in which they were created in the db.
- .webp images used for custom tokens not used (default letter tokens assigned). .png images for tokens work as expected.
- Campaign spells not exported.
- Quests not exported
I'll be working on seeing what if any of this I can resolve in the XSL and other style 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.
-
June 13th, 2024, 21:22 #77
With this new XSL I've added Quests and Spells to the 5E campaign. I'll be working next on adding more information for Items. Existing XSL only exports a small amount of the related item fields.
Issues that still exists with the core program:
- Image links not populated (see post #73)
- Local tokens using .webp image are replaced with letter tokens
- Records are not alphabetized
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.
-
June 15th, 2024, 00:34 #78
EDIT: Doh! Solved...
<xsl:if test="properties != ''"> <div class="label">Properties</div> <div class="stat"><xsl:value-of select="properties" /></div>
</xsl:if>
ORIG:
I've run into an issue I can't resolve with items. Using the default campaign_5E.xsl file the following behavior with items happens.
If the item has no category (i.e. group) it gets exported with the value of all elements in the item tag, but they are unformatted.
If the item has a category, it gets exported but only with the Name, Type, Description, and Weight elements, and they take on the formatting defined int eh XSL.
It appears that the issue is that the XSL is trying to ignore XML elements that have no value, but the evaluation is only working if the element is a number and not when it is a string. From what I can find online, the XSL is correct...
Anyone able to help or point me in the right direction? I'm just going to be hacking to see if I can get something to work.
The relevant XSL is as follows:Code:<xsl:template match="//item/category"> <div class="itemlist"> <xsl:for-each select="*"> <a> <xsl:attribute name="name"><xsl:text>item_</xsl:text><xsl:value-of select="name()" /></xsl:attribute> </a> <div class="item"> <div class="itemname"><xsl:value-of select="name" /></div> <div class="npctype"><xsl:value-of select="type" /> <xsl:if test="subtype > ''"> (<xsl:value-of select="subtype" />)</xsl:if><xsl:if test="rarity > ''">, <xsl:value-of select="rarity" /></xsl:if></div> <xsl:apply-templates select="description" /> <xsl:if test="weight > 0"> <div class="label">Weight</div> <div class="stat"><xsl:value-of select="weight" /></div> </xsl:if> <xsl:if test="cost > 0"> <div class="label">Cost</div> <div class="stat"><xsl:value-of select="cost" /></div> </xsl:if> <xsl:if test="damage > ''"> <div class="label">Damage</div> <div class="stat"><xsl:value-of select="damage" /></div> </xsl:if> <xsl:if test="properties > ''"> <div class="label">Properties</div> <div class="stat"><xsl:value-of select="properties" /></div> </xsl:if> </div> </xsl:for-each> </div> </xsl:template>
Last edited by LordEntrails; June 15th, 2024 at 00:46.
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.
-
June 15th, 2024, 01:32 #79
Attached XSL is for 5E campaigns and it includes Quests and Spells and the default Items are now working with additional elements added and reformatted. Note that objects not in groups/categories may not work. I have not tested that since it's not my use case. Advanced Stories untested. Tables are not included, working on them now.
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.
-
June 24th, 2024, 19:21 #80
I have been unable to resolve Advanced Stories. This is because each story entry is made of of multiple <block> elements and I don't know enough to get the for-select command to work.
My latest effort is this:
Code:<xsl:template match="//reference/refmanualdata/category"> <div class="page"> <xsl:for-each select="./*"> <div class="story"> <a> <xsl:attribute name="name"> <xsl:value-of select="name()" /> </xsl:attribute> </a> <h1><xsl:value-of select="./name" /></h1> <xsl:for-each select="./blocks/*"> <xsl:apply-templates select="text" /> </xsl:for-each> </div> </xsl:for-each> </div> </xsl:template>
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.
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks