space-wizards / space-station-14

A multiplayer game about paranoia and chaos on a space station. Remake of the cult-classic Space Station 13.
https://spacestation14.io
MIT License
2.34k stars 2.94k forks source link

Guidebook XML Parser is a mess of robust rich text and XML #28882

Open Just-a-Unity-Dev opened 1 month ago

Just-a-Unity-Dev commented 1 month ago

Description

Title. We should either do one or the other. Here are some examples of what I'm trying to say:

Guess how you can add headers in XML? You use #. You can also use [head=X] since that works. I don't think there's a <Header> tag.

Want to make this text bold? It's gotta be an XML tag, maybe <Strong> or <Bold>? Nope, you use a rich text tag, [b].

How can we add a newline? Is it <Br> or <NewLine>? It's \n. It doesn't even use a rich text tag or an XML element. It's just \n.

dffdff2423 commented 1 month ago

The fact that it is not a complete XML parser has thrown me off so many times because I try to do something that is valid XML but not valid guidebook. In addition, there is no way write a comment.

Just-a-Unity-Dev commented 1 month ago

It makes no absolute sense that the guidebook uses 3 different parsers just to get funny little guides working

deltanedas commented 1 month ago

add c++ templates support too for good measure so 4 languages :trollface: