vorple / inform7

Inform 7 extensions and templates
Other
9 stars 4 forks source link

Vorple Screen Effects: Texts of over 1026 characters with "Vorple style" spans crash the game #27

Open rcveeder opened 3 months ago

rcveeder commented 3 months ago

Demonstrated here. (Source in the attached .txt might be slightly different since I messed around with a couple things while writing this.) When a text of 1027 or more characters includes any [somesuch style]...[end style] styling, attempting to display this text causes the game to become unresponsive.

In this example, "borked" is defined as a Vorple style, but it isn't assigned any CSS properties. (Describing the style in CSS doesn't affect the problem.)

The "grimoire" in the linked example shows that this happens even if only one of the characters is styled. It even happens if the text contains 1027 unstyled characters and one empty [somesuch style][end style] span (although this is not demonstrated in the example).

Texts of 1026 or fewer characters don't have this problem.

Several workarounds exist; the most elegant one I've found might be this:

The description of the long handwritten letter is "[handwritten style]These 1026 characters don't provide enough space for me to express all my handwritten thoughts...[end style]"

After examining the long handwritten letter, say "[handwritten style]...but I can finish what I was saying here, in what is technically a separate text.[end style]"