5E Character Create Playlist
Page 8 of 8 First ... 678
  1. #71
    ddavison's Avatar
    Join Date
    Sep 2008
    Posts
    6,169
    Blog Entries
    21
    What is the format of the images? Are they JPG, PNG, or webp?

  2. #72
    Quote Originally Posted by ddavison View Post
    What is the format of the images? Are they JPG, PNG, or webp?
    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.jpg
    Last edited by JohnFintch; November 1st, 2023 at 20:39.

  3. #73
    ddavison's Avatar
    Join Date
    Sep 2008
    Posts
    6,169
    Blog Entries
    21
    Quote Originally Posted by JohnFintch View Post
    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.jpg
    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%;" />

  4. #74
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,443
    Blog Entries
    9
    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.

  5. #75
    Quote Originally Posted by ddavison View Post
    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%;" />
    Thank you 😊 very much for the time you spend on this amazing work you have done I really appreciate your work around to give me a solution. I'll keep look for update meanwhile I'll do what you suggest. 😉 Have nice day.

  6. #76
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,443
    Blog Entries
    9
    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.

  7. #77
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,443
    Blog Entries
    9
    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
    Attached Files Attached 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.

  8. #78
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,443
    Blog Entries
    9
    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 &gt; ''"> (<xsl:value-of select="subtype" />)</xsl:if><xsl:if test="rarity &gt; ''">, <xsl:value-of select="rarity" /></xsl:if></div>
                   <xsl:apply-templates select="description" />
                   <xsl:if test="weight &gt; 0">
                       <div class="label">Weight</div> <div class="stat"><xsl:value-of select="weight" /></div>
                   </xsl:if>
                   <xsl:if test="cost &gt; 0">
                       <div class="label">Cost</div> <div class="stat"><xsl:value-of select="cost" /></div>
                   </xsl:if>
                   <xsl:if test="damage &gt; ''">
                       <div class="label">Damage</div> <div class="stat"><xsl:value-of select="damage" /></div>
                   </xsl:if>
                   <xsl:if test="properties &gt; ''">
                       <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; Yesterday 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.

  9. #79
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    17,443
    Blog Entries
    9
    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.
    Attached Files Attached 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.

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
  •  
Starfinder Playlist

Log in

Log in