Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Next
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
Twitch
YouTube
Facebook (EN Publishing)
Facebook (EN World)
Twitter
Instagram
TikTok
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
Playing the Game
Play by Post
Living Worlds
Living Pathfinder [closed]
General Discussion
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Satin Knights" data-source="post: 5739264" data-attributes="member: 6666968"><p>I have made progress on making the static <a href="http://livingpf.wikia.com/wiki/Roll_Call" target="_blank">Roll Call</a> page dynamically built from the characters sheets. The dynamic page is called <a href="http://livingpf.wikia.com/wiki/Adventures" target="_blank">Adventures</a>. It processes in the following order.</p><p></p><p>Reads 00_The_Dunn_Wright_Inn for field values.</p><p>Reads all characters in the "The Dunn Wright Inn" category.</p><p>Then processes the subcategories of "Games" in alphabetical order, reading first the 00_game_name page, then the characters in the category. </p><p></p><p>The same dynamic page processor handles both "game description pages" that contain:</p><p>{{Char_Info_DIV</p><p>|Game_Name=Crypt of the Everflame</p><p>|Game_URL=http://www.enworld.org/forum/playing-game/299447-lpf-crypt-everflame-01-a.html</p><p>|Game_GM=Mowgli</p><p>|Game_Judge=GlassEye<span style="color: Black">................</span>If empty, label not printed</p><p>|Game_Start=in the past<span style="color: Black">...............</span>Field ignored at the moment</p><p>|Game_Active=yes<span style="color: Black">.......................</span>If not "yes", the page is ignored</p><p>|Game_Description=A town for generations has used a cursed crypt as a rites of passage test for its teenagers. Now, someone has awoken that curse and the advance party setting up the tests and traps has disappeared. Our brave adventurers have been hired to save the advance party...</p><p>}}</p><p></p><p>and then the characters that have a block of:</p><p></p><p><!-- The next block is used to build dynamic pages of where the character is. --></p><p><!-- If the class and level field is kept up to date, one only needs to change --></p><p><!-- the category which contains their game name to move from one game to --></p><p><!-- another, or the Dunn Wright Inn. Try to keep the names and class lines to --></p><p><!-- 20 characters wide or less. Complicated strings like class 1<br>class 2 --></p><p><!-- can be used to do multiline class displays. --></p><p>{{Char_Info_DIV</p><p>|Picture_filename=Kalgor.jpg<span style="color: Black"> .............</span>Defaults to Placeholder_other.png</p><p>|Friendly_Name=Kalgor <span style="color: Black">....................</span>Defaults to PageName before the (</p><p>|Player=Satin Knights <span style="color: Black">.......................</span>Defaults to PageName inside ()</p><p>|class_and_level=Mutt 4 <span style="color: Black">....................</span>Defaults to "unknown level"</p><p>}}</p><p></p><p>I have been appending that block to the Basic Information block so it is easy to keep the class_and_level field updated. After the initial setup, the class_and_level is the only field that should be changing as a character levels.</p><p></p><p>The character is then added to a category of "Game Name". In my case the category is "Crypt of the Everflame". If the character sheet block doesn't exist, most of the fields are guessed and defaulted.</p><p></p><p>Each of the named game categories have to be a sub category of the Games category. (Yep, this is part of the convoluted one time setup stuff.) And the new category names are not showing in the ajax popups for selecting. That may just be a caching issue.</p><p></p><p>After all that, the page builds dynamically. It is taking 9-10 preprocessor calls per character to run. Considering that the limit is 1 million calls before the script stalls, we are being very good regarding cpu load on the server.</p><p></p><p>Several fields are defaulted if they don't exist, but there are still several ways to get "weird and funky" results for the page. Wiki code is the ugliest mess I have ever tried to code in. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick out tongue :p" loading="lazy" data-shortname=":p" /></p><p></p><p>So, before I go edit 50 some characters, is there anything else that people want the Adventures page to display?</p></blockquote><p></p>
[QUOTE="Satin Knights, post: 5739264, member: 6666968"] I have made progress on making the static [URL="http://livingpf.wikia.com/wiki/Roll_Call"]Roll Call[/URL] page dynamically built from the characters sheets. The dynamic page is called [URL="http://livingpf.wikia.com/wiki/Adventures"]Adventures[/URL]. It processes in the following order. Reads 00_The_Dunn_Wright_Inn for field values. Reads all characters in the "The Dunn Wright Inn" category. Then processes the subcategories of "Games" in alphabetical order, reading first the 00_game_name page, then the characters in the category. The same dynamic page processor handles both "game description pages" that contain: {{Char_Info_DIV |Game_Name=Crypt of the Everflame |Game_URL=http://www.enworld.org/forum/playing-game/299447-lpf-crypt-everflame-01-a.html |Game_GM=Mowgli |Game_Judge=GlassEye[COLOR=Black]................[/COLOR]If empty, label not printed |Game_Start=in the past[COLOR=Black]...............[/COLOR]Field ignored at the moment |Game_Active=yes[COLOR=Black].......................[/COLOR]If not "yes", the page is ignored |Game_Description=A town for generations has used a cursed crypt as a rites of passage test for its teenagers. Now, someone has awoken that curse and the advance party setting up the tests and traps has disappeared. Our brave adventurers have been hired to save the advance party... }} and then the characters that have a block of: <!-- The next block is used to build dynamic pages of where the character is. --> <!-- If the class and level field is kept up to date, one only needs to change --> <!-- the category which contains their game name to move from one game to --> <!-- another, or the Dunn Wright Inn. Try to keep the names and class lines to --> <!-- 20 characters wide or less. Complicated strings like class 1<br>class 2 --> <!-- can be used to do multiline class displays. --> {{Char_Info_DIV |Picture_filename=Kalgor.jpg[COLOR=Black] .............[/COLOR]Defaults to Placeholder_other.png |Friendly_Name=Kalgor [COLOR=Black]....................[/COLOR]Defaults to PageName before the ( |Player=Satin Knights [COLOR=Black].......................[/COLOR]Defaults to PageName inside () |class_and_level=Mutt 4 [COLOR=Black]....................[/COLOR]Defaults to "unknown level" }} I have been appending that block to the Basic Information block so it is easy to keep the class_and_level field updated. After the initial setup, the class_and_level is the only field that should be changing as a character levels. The character is then added to a category of "Game Name". In my case the category is "Crypt of the Everflame". If the character sheet block doesn't exist, most of the fields are guessed and defaulted. Each of the named game categories have to be a sub category of the Games category. (Yep, this is part of the convoluted one time setup stuff.) And the new category names are not showing in the ajax popups for selecting. That may just be a caching issue. After all that, the page builds dynamically. It is taking 9-10 preprocessor calls per character to run. Considering that the limit is 1 million calls before the script stalls, we are being very good regarding cpu load on the server. Several fields are defaulted if they don't exist, but there are still several ways to get "weird and funky" results for the page. Wiki code is the ugliest mess I have ever tried to code in. :p So, before I go edit 50 some characters, is there anything else that people want the Adventures page to display? [/QUOTE]
Insert quotes…
Verification
Post reply
Community
Playing the Game
Play by Post
Living Worlds
Living Pathfinder [closed]
General Discussion
Top