Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rcveeder opened this issue Jun 4, 2024 · 0 comments

Comments

@rcveeder
Copy link

rcveeder commented Jun 4, 2024

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]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant