Talk:Enchanting potion

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

For consideration, two different methods of displaying formulas.

The first, not sensitive to screen size / viewing area assigned (it's a graphic and it shows as a graphic (presently) without resizing / scaling capabilities). This is the current method.

The second, sensitive to viewing area assigned (it's HTML text output and will honor margins and size limits).

Modifiers = MIUBonus + LOGBonus + INTBonus + trunc

  



AURbonus + WISbonus/2  

+ Potionbonus - Item Enchantbonus - Encumbrancepenalty   Armorpenalty

To see the difference most visually demonstrated, grab the side of your browser window and move it in (reduce the viewable space in your browser.)

You might also note that option two shows up faster than option one. That's because option one actually goes to a third-party system to render the graphic, while the second option builds the string as part of the page presentation. Benefit: we're not tied to whether the third party system is available.

CON: Very complex mathematical formulas (of which we have few, I believe - please correct if wrong) are a pain in the kiester to get well represented outside of a very graphical depiction. So this might not work for all of our game formulas. Just most of them.

Happy to hear thoughts on this. DOUG (talk) 12:46, 12 October 2017 (CDT)

Doug, I can't see the first one at all, I get a very long undecipherable thing which I will paste here in hopes you can see it too:
Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle \mathrm{Modifiers} = \mathrm{MIU_{Bonus}} + \mathrm{LOG_{Bonus}} + \mathrm{INT_{Bonus}} + \Big\lfloor \frac{\mathrm{AUR_{Bonus} + WIS_{Bonus}}}{2} \Big\rfloor + \mathrm{Potion_{Bonus}} - \mathrm{ItemEnchant_{Bonus}} - \mathrm{Encumbrance_{Penalty}} - \mathrm{Armor_{Penalty}}}
I see this kind of red-lettered error/code string in a lot of places across the gswiki, and when it occurs, there is never any graphical representation of math or any formula shown. I had thought maybe it was a browser issue, however, I have checked it from Firefox, Chrome, Internet Explorer, and Edge browsers now, and all of them return a "Failed to parse" long string like the above for your Option 1. Your Option 2 displays on all my browsers, except that I see a weird bit of code, "" just before the opening square bracket. I'm assuming that would be easily fixable. Otherwise, your Option 2 looks great. Anyone with an idea why a viewer would see only the error string in text for Doug's Option 1? I hope this helps. -Soliere FIRENSIA (talk) 08:59, 16 October 2019 (CDT)