-
February 14th, 2025, 02:36 #91Templar
- Join Date
- Oct 2020
- Posts
- 109
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>
-
February 14th, 2025, 12:52 #92Crusader
- Join Date
- Jan 2020
- Posts
- 16
Would love to see this as a Linux usable program as well
-
March 5th, 2025, 00:45 #93
&
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!
-
March 5th, 2025, 22:49 #94Templar
- Join Date
- Oct 2020
- Posts
- 109
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.
-
March 11th, 2025, 04:52 #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!
-
July 4th, 2025, 04:12 #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.
-
March 29th, 2026, 03:20 #97
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.
-
March 30th, 2026, 02:01 #98
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:
andCode:<xsl:template match="//encounter/category"> <div class="page"> <xsl:for-each select="./*"> <xsl:sort select="name" order="ascending" data-type="text" /> <div class="story"> ...
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" /> ...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.
- All items have to be local to the campaign, including images and tokens
-
March 30th, 2026, 03:45 #99
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.
-
March 30th, 2026, 13:45 #100FG 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!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)

Reply With Quote


Bookmarks