Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf 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 Nest
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!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
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
General Tabletop Discussion
*TTRPGs General
O.G.R.E: Online Generic Randomizer Engine
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="PaleMage" data-source="post: 6298171" data-attributes="member: 34768"><p><strong>RED ALERT: Code Interpreter Bug Found</strong></p><p></p><p><span style="color: #ff0000"><strong>RED ALERT</strong></span>: Code Interpreter Bug Found</p><p></p><p>I know, I should be probably the ONLY one experimenting this behaviour, due to the arcane tasks I ask O.G.R.E. to perform for me, but try to follow me.</p><p></p><p>If You try to concatenate any $variables of type STRING (TEXT for the less techy), and the resulting word is LONGER than 50 chars, it ends broken at char 51 by a SPACE, then follows from char 52 with the remaining TEXT.</p><p></p><p>I wonder that the 50 char lenght is a limit set by the developer in charge of coding O.G.R.E., but it should have to be extended to the usual 255 chars, at least.</p><p></p><p>I need UNINTERRUPTED output, because I'm coding CODE and TAGS out of O.G.R.E. for PCGen 6.00.0, and I cannot manage random breaks at 50th char, cause PCgen doesn't support any breaks nested to TAGS: this simply breaks the PCgen code.</p><p></p><p>I'll explain my problem with an example:</p><p></p><p>I am randomly generating things out of O.G.R.E. tables, and I get sequences of TAGS, stored in TEXT $variables, used in PGgen to define objects class inclusions.</p><p></p><p>A <strong>Dragon</strong>, to be recognized as itself, has to be TYPE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f600.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":D" title="Big grin :D" data-smilie="8"data-shortname=":D" />ragon.Magic.Breath...</p><p></p><p>A <strong>Weapon</strong>, to be one of its kind, should be (i.e.) TYPE:Bludgeoning.OneHanded.Finessable.Steel.Magic...</p><p></p><p>A <strong>Tome </strong>(MY CASE) could be <span style="color: #0000cd">TYPE:Goods.Literature.Scholar</span>.<span style="color: #ff0000">Advanced.ThePlanes.TransitivePlanes.EtherealPlane</span> (far longer than 50 chars), and may contain a section ALSO about another topic, ending in addition of other TAGS like <span style="color: #008000">Expert.Arcana.Dragons.ChromaticDragons</span></p><p></p><p>The resulting tome HAS to declare ALL the Types it has relations to, then it becomes of <span style="color: #0000ff">TYPE:Goods.Literature.Scholar</span>.<span style="color: #ff0000">Advanced.ThePlanes.TransitivePlanes.EtherealPlane</span>.<span style="color: #006400">Expert.Arcana.Dragons.ChromaticDragons</span></p><p></p><p>All the differently coloured TAGS comes from a different part of my code, and I have no control over the lenght of the TEXT that will describe my object at the end of the processing.</p><p></p><p>I'm sure it will not exceed 255 chars, but for sure goes far over the 50th char BUILT IN limitation set by the developer of O.G.R.E. as a the maximum uninterruptable sequence of chars.</p><p></p><p>What I get currently is:</p><p><strong>TYPE:Goods.Literature.Scholar.Advanced.ThePlanes.T</strong> <u>ransitivePlanes.EtherealPlane.Expert.Arcana.Dragons.ChromaticDragons</u></p><p><u></u></p><p><u></u>where the BOLD part is an UNINTERRUPTED sequence of chars up to the 50th, then a SPACE, followed by the remaining part of the TEXT.</p><p></p><p>HOPE there will be a solution to this, since this was the last part of my project of coding a random Library Generator, by subject, cost and rarity, PRE-CODED (just a Copy-and-Paste-away) to be used by PCgen.</p><p></p><p>I let You see what you can get as a result... for my campaign has been a boost in RPG off-adventure.</p><p></p><p><span style="font-family: 'courier new'"># CVS $Revision: 0001 $ $Author: PaleMage $ -- Sat Oct 10 13:00:00 2013 -- reformated by prettylst.pl v1.38 (build 5869)</span></p><p><span style="font-family: 'courier new'">SOURCELONG:Marvelous Nightingale SOURCESHORT:TRGMN</span></p><p></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (The Touring through Timescape Book) OUTPUTNAME:[NAME] COST:30 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 BONUS:SKILL|Knowledge (The Planes)|0|TYPE=Competence SPROP:Knowledge (The Planes) +0 SPROP:The cover of this slim compilation is burnished with silver. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p><span style="font-family: 'courier new'"></span></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (Daniel Bell the Draconic's Forlorn Palimpsest) OUTPUTNAME:[NAME] COST:50 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|2|TYPE=Competence SPROP:Knowledge (The Planes) +2 SPROP:The pages of this bejewelled folio are lined with lavender octogons. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p><span style="font-family: 'courier new'"></span></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (The Noxious Coinage Guide) OUTPUTNAME:[NAME] COST:20 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 SPROP:This embossed book is Volume 6 of a 12-part set. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p><span style="font-family: 'courier new'"></span></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (An Expedition to The Villainous Sea of Bones by Mirduil the White) OUTPUTNAME:[NAME] COST:20 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 SPROP:Adamantium rivets punctuate the cover of this handwritten violet codex. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p><span style="font-family: 'courier new'"></span></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (The Gargantuan Book of Timescape) OUTPUTNAME:[NAME] COST:6500 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (Plane of Shadow)|5|TYPE=Competence SPROP:Knowledge (Plane of Shadow) +5 SPROP:The title of this bejewelled charcoal compilation is emblazoned in silver. TYPE:Goods.Literature.Scholar.Expert.TransitivePlanes.PlaneofShadow.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p><span style="font-family: 'courier new'"></span></p><p><span style="font-family: 'courier new'">Blue Nymph Bookstore (The </span><span style="font-family: 'courier new'">Pandemonium </span><span style="font-family: 'courier new'">Encyclopedia) OUTPUTNAME:[NAME] COST:500 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (Pandemonium)|1|TYPE=Competence SPROP:Knowledge (Pandemonium) +1 SPROP:The pages of this well-preserved creed are lined with turqoise circles. TYPE:Goods.Literature.Scholar.Advanced.MildlyAligned.Pandemonium.PaleMage.GKL SOURCEPAGE<img src="https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f61b.png" class="smilie smilie--emoji" loading="lazy" width="64" height="64" alt=":P" title="Stick out tongue :P" data-smilie="7"data-shortname=":P" />aleMage_GKL</span></p><p></p><p><strong>EVERYTHING YOU SEE CAME OUT OF O.G.R.E.</strong>... only the post-formatting is hand made, but is matter of an easy Find-Replace procedure.</p><p></p><p>This is only a brief example of what you can get from it... I only need to fix this bug, that appeared only after I tried to concatenate more than 50 chars in a single string.</p><p></p><p><strong>NOTE</strong>: If You can address me directly to the developer I can drive him to test it by itself, having him see the code of the generator, if necessary.</p><p></p><p>TY in advance</p><p></p><p><strong>PaleMage </strong>aka</p><p>Fabio Montanari</p><p>Modena IT</p></blockquote><p></p>
[QUOTE="PaleMage, post: 6298171, member: 34768"] [b]RED ALERT: Code Interpreter Bug Found[/b] [COLOR=#ff0000][B]RED ALERT[/B][/COLOR]: Code Interpreter Bug Found I know, I should be probably the ONLY one experimenting this behaviour, due to the arcane tasks I ask O.G.R.E. to perform for me, but try to follow me. If You try to concatenate any $variables of type STRING (TEXT for the less techy), and the resulting word is LONGER than 50 chars, it ends broken at char 51 by a SPACE, then follows from char 52 with the remaining TEXT. I wonder that the 50 char lenght is a limit set by the developer in charge of coding O.G.R.E., but it should have to be extended to the usual 255 chars, at least. I need UNINTERRUPTED output, because I'm coding CODE and TAGS out of O.G.R.E. for PCGen 6.00.0, and I cannot manage random breaks at 50th char, cause PCgen doesn't support any breaks nested to TAGS: this simply breaks the PCgen code. I'll explain my problem with an example: I am randomly generating things out of O.G.R.E. tables, and I get sequences of TAGS, stored in TEXT $variables, used in PGgen to define objects class inclusions. A [B]Dragon[/B], to be recognized as itself, has to be TYPE:Dragon.Magic.Breath... A [B]Weapon[/B], to be one of its kind, should be (i.e.) TYPE:Bludgeoning.OneHanded.Finessable.Steel.Magic... A [B]Tome [/B](MY CASE) could be [COLOR=#0000cd]TYPE:Goods.Literature.Scholar[/COLOR].[COLOR=#ff0000]Advanced.ThePlanes.TransitivePlanes.EtherealPlane[/COLOR] (far longer than 50 chars), and may contain a section ALSO about another topic, ending in addition of other TAGS like [COLOR=#008000]Expert.Arcana.Dragons.ChromaticDragons[/COLOR] The resulting tome HAS to declare ALL the Types it has relations to, then it becomes of [COLOR=#0000ff]TYPE:Goods.Literature.Scholar[/COLOR].[COLOR=#ff0000]Advanced.ThePlanes.TransitivePlanes.EtherealPlane[/COLOR].[COLOR=#006400]Expert.Arcana.Dragons.ChromaticDragons[/COLOR] All the differently coloured TAGS comes from a different part of my code, and I have no control over the lenght of the TEXT that will describe my object at the end of the processing. I'm sure it will not exceed 255 chars, but for sure goes far over the 50th char BUILT IN limitation set by the developer of O.G.R.E. as a the maximum uninterruptable sequence of chars. What I get currently is: [B]TYPE:Goods.Literature.Scholar.Advanced.ThePlanes.T[/B] [U]ransitivePlanes.EtherealPlane.Expert.Arcana.Dragons.ChromaticDragons [/U]where the BOLD part is an UNINTERRUPTED sequence of chars up to the 50th, then a SPACE, followed by the remaining part of the TEXT. HOPE there will be a solution to this, since this was the last part of my project of coding a random Library Generator, by subject, cost and rarity, PRE-CODED (just a Copy-and-Paste-away) to be used by PCgen. I let You see what you can get as a result... for my campaign has been a boost in RPG off-adventure. [FONT=courier new]# CVS $Revision: 0001 $ $Author: PaleMage $ -- Sat Oct 10 13:00:00 2013 -- reformated by prettylst.pl v1.38 (build 5869)[/FONT] [FONT=courier new]SOURCELONG:Marvelous Nightingale SOURCESHORT:TRGMN[/FONT] [FONT=courier new]Blue Nymph Bookstore (The Touring through Timescape Book) OUTPUTNAME:[NAME] COST:30 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 BONUS:SKILL|Knowledge (The Planes)|0|TYPE=Competence SPROP:Knowledge (The Planes) +0 SPROP:The cover of this slim compilation is burnished with silver. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE:PaleMage_GKL [/FONT] [FONT=courier new]Blue Nymph Bookstore (Daniel Bell the Draconic's Forlorn Palimpsest) OUTPUTNAME:[NAME] COST:50 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|2|TYPE=Competence SPROP:Knowledge (The Planes) +2 SPROP:The pages of this bejewelled folio are lined with lavender octogons. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE:PaleMage_GKL[/FONT] [FONT=courier new] Blue Nymph Bookstore (The Noxious Coinage Guide) OUTPUTNAME:[NAME] COST:20 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 SPROP:This embossed book is Volume 6 of a 12-part set. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE:PaleMage_GKL[/FONT] [FONT=courier new] Blue Nymph Bookstore (An Expedition to The Villainous Sea of Bones by Mirduil the White) OUTPUTNAME:[NAME] COST:20 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (The Planes)|1|TYPE=Competence SPROP:Knowledge (The Planes) +1 SPROP:Adamantium rivets punctuate the cover of this handwritten violet codex. TYPE:Goods.Literature.Scholar.Elementary.ThePlanes.PaleMage.GKL SOURCEPAGE:PaleMage_GKL[/FONT] [FONT=courier new] Blue Nymph Bookstore (The Gargantuan Book of Timescape) OUTPUTNAME:[NAME] COST:6500 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (Plane of Shadow)|5|TYPE=Competence SPROP:Knowledge (Plane of Shadow) +5 SPROP:The title of this bejewelled charcoal compilation is emblazoned in silver. TYPE:Goods.Literature.Scholar.Expert.TransitivePlanes.PlaneofShadow.PaleMage.GKL SOURCEPAGE:PaleMage_GKL[/FONT] [FONT=courier new] Blue Nymph Bookstore (The [/FONT][FONT=courier new]Pandemonium [/FONT][FONT=courier new]Encyclopedia) OUTPUTNAME:[NAME] COST:500 EQMOD:UNREAD_LIT|CHARGES[1] BONUS:SKILL|Knowledge (Pandemonium)|1|TYPE=Competence SPROP:Knowledge (Pandemonium) +1 SPROP:The pages of this well-preserved creed are lined with turqoise circles. TYPE:Goods.Literature.Scholar.Advanced.MildlyAligned.Pandemonium.PaleMage.GKL SOURCEPAGE:PaleMage_GKL[/FONT] [B]EVERYTHING YOU SEE CAME OUT OF O.G.R.E.[/B]... only the post-formatting is hand made, but is matter of an easy Find-Replace procedure. This is only a brief example of what you can get from it... I only need to fix this bug, that appeared only after I tried to concatenate more than 50 chars in a single string. [B]NOTE[/B]: If You can address me directly to the developer I can drive him to test it by itself, having him see the code of the generator, if necessary. TY in advance [B]PaleMage [/B]aka Fabio Montanari Modena IT [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
O.G.R.E: Online Generic Randomizer Engine
Top