DICE PACKS BUNDLE
Page 10 of 10 First ... 8 9 10
  1. #91
    I was able to cobble some frankenstein solution together that served my need. but it is not robust, and I'd be hesitant to unleash it on the universe. However, if someone is trying to print an advanced story instead of a simple story with a single block in it, then this works. Essentially you replace all instances of 'encounter' with 'refmanualdata', then find this block and replace <xsl:apply-templates select="text" /> with <xsl:apply-templates select="./blocks/*/text" />.


    Code:
      <xsl:template match="//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:apply-templates select="./blocks/*/text" />
                    </div> 
                </xsl:for-each>				
            </div>    
        </xsl:template>

  2. #92
    Would love to see this as a Linux usable program as well

  3. #93
    Quote Originally Posted by LordEntrails View Post
    See the xml files I have uploaded to earlier in this thread to see what improvements I've made.
    &

    Quote Originally Posted by lousilver View Post
    I was able to cobble some frankenstein solution together that served my need. but it is not robust, and I'd be hesitant to unleash it on the universe. However, if someone is trying to print an advanced story instead of a simple story with a single block in it, then this works.
    Feedback on the printed material: I used the latest 5e LE file from LordEntrails and edited it as per lousilver's code. Here's the result.

    * Almost all the text is there.
    * There's no pics, links, header block and the text in it, or the text in frames.
    * The arrangement of the titles in printed material is not the same as the source material. This may be due to Pages created in different time (i.e: 02. Index is created way after 059. Blah blah)
    * If there is coding characters such as "<>" in the text, print tool doesn't show them.

    * It prints beautiful tables, even with alternating colors
    * Chat bubble is nice white frame (no links created if there is a link to web)

    My module consists only in text & tables, I don't know about character sheets & feats / spells, etc.
    Hope this helps.
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  4. #94
    Quote Originally Posted by Tempered7 View Post
    * The arrangement of the titles in printed material is not the same as the source material. This may be due to Pages created in different time (i.e: 02. Index is created way after 059. Blah blah)
    It's by record id, not index id. Each time you create a new advanced story it gets record id + 1. but if it was actually inserted between indexed page 1 & 3, it will get printed after them, not in between as desired. This may also apply to the blocks within the story itself.

    You could change this by redirecting the for loop over the index rather than the record id, but then you'd have to "look up" the record id from the index, rather than iterate over the records directly. Or you could do what i did, and create each story in index order. Also keep in mind that advanced stories are found in the story tab, if you don't save them to a group, the sit unassigned. and if you delete it from the index, it is NOT deleted from the story records. So you will have orphaned story records, unless you delete them directly.

  5. #95
    I understood only some parts of what you wrote but failed at creating that loop even though I tried for 2 days. Coding is hard.
    Thanks for explaining though. From now on, I'll write the text to player notes and then everything is finished I'll pass them to index.
    Your edit on Lord's xsl file still printed everything so I can recreate the module in another ruleset and add the text easily.

    Thank you all who worked on this app
    I scribble Solo RPG methods and reviews for Resources in my All Things Solo blog.
    Now with Solo Builds for DnD 5E. And All Solo Modules for FGU WIP.
    LIST OF ALL FREE FGU STUFF
    //Design with Systems, not Custom Solutions!

  6. #96
    Hi all, forgive me if this has been mentioned before.
    I've created a Legacy 5e campaign and would like to print the character sheets.
    Using the tool from this thread (2022 version) I can get a basic sheet but there is no spell information for my spellcasters and the fonts are all over the place - giant text in some fields, etc.
    I've tried each of the 5E XML sheet options supplied with the tool and get similar results.

  7. #97
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,971
    Blog Entries
    9
    Starting to work on this again. Working on getting Advanced Stories/Ref Manual/Campaign Books to print. If anyone has made any improvements since the last updates and is up to sharing, would appreciate it

    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. #98
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,971
    Blog Entries
    9
    Significant improvements have been made for campaign export of D&D 5E, both Legacy and 2024 formats. The following objects are supported: Encounters, Random Encounters, Images (in Advanced Stories), Items, NPCs, Parcels, Tables, Vehicles, Locations, Quests, Basic Stories, Advanced Stories, Spells. The following is not supported, but I plan to figure this out: Story Templates. The following are not exported and I don't have plans to add them; Backgrounds, Classes, Feats, Skills, and Species.

    Requirements/Restrictions
    • All items have to be local to the campaign, including images and tokens
      • except NPC tokens from an encounter that is linked in a story, for now. See below.

    • For images to render in the html output they need to be placed in folders relative to the html file
      • /tokens
      • /campaign/images or /images (not sure which one this xslt is using...)

    • Two columns in advanced stories are not exported in two columns, they are converted sequentially, left then right. This meets my needs but others may desire to change this behavior.
    • NPC stat blocks will include Portraits, then Tokens, then 3D Flat images if they exist


    Known Issues
    • Story Templates are untested, I have not done anything with them so...
    • Random Encounters are untested, but the code accounts for it and should work.
    • I've tried to remove the token images from the Encounter links embedded in Stories but have failed. No idea where they are coming from.
    • Links in stories to Spells and other Stories don't work, the hyperlink is always wrong.
    • Formatting of Locations is minimal.
    • Objects are exported according to there db ID, which is based on the prder they are created, not the order they appear in the campaign book.


    I've included both the .xsl file and a sample db.xml file I've been testing with. I did not include images so you will need to replace those.

    Edit: sorting alphabetical was easier than I expected. Have not updated the xslt here, but it's just having to fully define the sort for stories and advanced stories. The code is:
    Code:
    <xsl:template match="//encounter/category">
        <div class="page">
            <xsl:for-each select="./*">
                <xsl:sort select="name" order="ascending" data-type="text" />
    <div class="story">
    ...
    and
    Code:
    <xsl:template match="//reference/refmanualdata/category | //reference/refmanualdata[not(category)]">
        <div class="page">
            <xsl:for-each select="./*">
                <xsl:sort select="name" order="ascending" data-type="text" />
    ...
    Attached Files Attached Files
    Last edited by LordEntrails; March 30th, 2026 at 04:57.

    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. #99
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,971
    Blog Entries
    9
    Quote Originally Posted by QuothDRaven191 View Post
    Hi all, forgive me if this has been mentioned before.
    I've created a Legacy 5e campaign and would like to print the character sheets.
    Using the tool from this thread (2022 version) I can get a basic sheet but there is no spell information for my spellcasters and the fonts are all over the place - giant text in some fields, etc.
    I've tried each of the 5E XML sheet options supplied with the tool and get similar results.
    This is probably because the spells are not contained in the campaign, they are referenced from modules that you have loaded. This tool can only export from campaign content, not loaded modules.

    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.

  10. #100
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,686
    Quote Originally Posted by LordEntrails View Post
    This is probably because the spells are not contained in the campaign, they are referenced from modules that you have loaded. This tool can only export from campaign content, not loaded modules.
    Spell data is copied to the character sheet when spells are added to the character sheet by drag/drop. The data should be there in the exported character sheet XML.
    FG Wiki: How to Compile the FG Logs

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Page 10 of 10 First ... 8 9 10

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
  •  
Fantasy Grounds Merchandise

Log in

Log in