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

Process color coding of game output. #5

Open
mfreidel opened this issue Oct 25, 2021 · 3 comments
Open

Process color coding of game output. #5

mfreidel opened this issue Oct 25, 2021 · 3 comments
Assignees
Labels
roadmap A planned feature

Comments

@mfreidel
Copy link
Contributor

Process Evennia's color coding system for output to the RichTextLabel node with bbcode tags.

@mfreidel mfreidel added the roadmap A planned feature label Oct 25, 2021
@mfreidel mfreidel added this to the 0.1.x milestone Oct 25, 2021
@mfreidel mfreidel self-assigned this Oct 26, 2021
@mfreidel
Copy link
Contributor Author

Current idea is to split the message data by the |n color code and essentially assume it's always used as a closing tag. Then, each array element of the split string should have (theoretically) one color tag to change via some pattern matching and string manipulation.

Potential issue is that Evennia supports many different "Text Tags" in its output, including some color options I wasn't aware of. More information on that is avaliable here

@mfreidel
Copy link
Contributor Author

The more I research this, the more I think it's something that should be in the 0.2.x release. Evennias color system is much more complex than I initially thought, and I just learned about TextTags a few days ago. This is going to be a ton of regex and playing around. Enabling "screenreader" mode upon connecting will remove all of the text tags (plus plenty of other formatting) from the game output. It doesn't look pretty, but these are the initial stages.

@mfreidel mfreidel modified the milestones: 0.1.x, 0.2.x Oct 27, 2021
@mfreidel
Copy link
Contributor Author

mfreidel commented Nov 7, 2021

This is turning out to seem more like a feature that will be handled at the server until some of Evennia's bugs are fixed. I've been doing a lot of research in order to potentially contribute with some of the fixes, but I'm not sure how helpful I can be at the moment. I may have to just retool its current HTML translation code to write in BBCode (or using a contrib module). That will probably also help me get more familiarized with its inner workings.

@mfreidel mfreidel removed this from the 0.2.x milestone Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap A planned feature
Projects
None yet
Development

No branches or pull requests

1 participant