SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
83 stars 17 forks source link

NPC Text Animation "animated talking" doesn't parse some rich text #4428

Closed MoltonMontro closed 1 week ago

MoltonMontro commented 1 month ago

Crosspost of the "[Bug] NPC Rich Text Modifiers Half Working" forum topic.

The "animated talking" setting doesn't work with dialogue using rich text as expected. Some properties seem to be parsed (e.g., <color> and <size>) but aren't always removed from the text. Other properties like <align> aren't parsed at all.

Example: <align=center><size=150%><color=blue>Ah, welcome, welcome</color></size></align=center> (closing tags optional).

image

SDGNelson commented 4 weeks ago

Oops I saw that post and meant to double-check, thanks. I think we currently have a few hardcoded tags supported. :S

SDGNelson commented 3 weeks ago

Thankfully this turned out to be a relatively straightforward issue! It didn't properly remove the opening tags if the first character of the message was '<'.