Topic: #1853 Implement protocols for client components such as chat, gui and

#1853 Issue: Implement protocols for client components such as chat, gui and scoreboard for better modding support.

Ryozuki opened issue at 2018-12-13 08:21:

For the scoreboard, server should be able to tell the client what stats to render, how to order them, how many players, etc. This one shouldn't be hard.

As for the chat, a custom color system + popovers such as (but on the chat):


A UI protocol to draw specific mod GUIs and so on.

I know you want to keep things simple, and you can do so in your admired vanilla gametypes, but modding is more complex, more complex ideas which would look more awesome with more customization support. These are just ideas.

Sorry if i explain myself not clear, but i guess you can see what i pretend here.

I also saw that broadcast colors are disabled by default, which is a sad thing but huh, expected from teewords. (like when standard gametypes filter was on by default)

Dune-jr commented at 2018-12-13 09:30:

Pop up hints are https://github.com/teeworlds/teeworlds/issues/1834

LordSk commented at 2018-12-13 14:08:

Colored broadcast have the potential to do a lot good but also a lot of harm (blinking advertising, rainbow text, etc...). Having it disabled by default seems like the correct choice. You wouldn't want new players to experience the potential abuse colors can bring to the table.

Now extending mod support is a very interesting topic indeed, and we can start to think of what would be the correct way to do it. Here is what I propose for now, since you came forward @Ryozuki, can you survey mod makers and sum up what they would want to accomplish with their mods? It could be as simple as: "I want to display an image here", or "I want to know if a client's mouse is hovering that point".

We might then be able to find a solution that pleases most people.

fokkonaut commented at 2018-12-13 21:41:

i would want the ability to place gun and hammer entities from the code in 0.7. It worked in 0.6 but since pickups are no longer spawned using WEAPON_X as type but now PICKUP_X in 0.7 its not possible anymore because there is no PICKUP_GUN/HAMMER ofc

Not Luck, Just Magic.