You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi devs. I maintain a mod with player classes and the mod uses skins and colors to distinguish them. Maybe you've heard about Left 4 Dead or Team Fortress games; the mod I'm doing also has some Smoker, Spider, Boomer as well as Engineer, Soldier, Sniper classes (22 in total).
The set of available skins is a huge limiting factor, and right now the mod uses only standard teeworlds skins and nothing else, because if a skin is disabled, the fallback to default skin would ruin the gameplay.
If the server could know whether the client has 'Vanilla skins only' option ON, it can snap the most suitable skins.
E.g. for "vanilla only" and non-ddnet clients the game uses this skin for Ghost class.
For my custom infclass client it uses ghost skin by whis (ghost can be "invisible" and in that case I render it semitransparent, which has an issue with alpha blending but meh, it is better than nothing).
It is so unfortunate that I can't enable ghost skin for ghost classes for ddnet, because there is a number of players with that "vanilla skins only" option checked on.
I'm proposing to add some ClientPreferences (somehow similar to ServerCapabilities but those are not "Capabilities" in the strong sense) with version and flags. Something like that:
It seems to me that inferring which skins are available is brittle. Perhaps we could make the client accept skin files from the server? Maybe only fallback skin files?
Kaffeine
changed the title
ModSupport: Add a way for the server to know the skin-related client options
Mod Support: Add a way for the server to know the skin-related client options
Sep 5, 2023
Hi devs. I maintain a mod with player classes and the mod uses skins and colors to distinguish them. Maybe you've heard about Left 4 Dead or Team Fortress games; the mod I'm doing also has some Smoker, Spider, Boomer as well as Engineer, Soldier, Sniper classes (22 in total).
The set of available skins is a huge limiting factor, and right now the mod uses only standard teeworlds skins and nothing else, because if a skin is disabled, the fallback to
default
skin would ruin the gameplay.If the server could know whether the client has 'Vanilla skins only' option ON, it can snap the most suitable skins.
E.g. for "vanilla only" and non-ddnet clients the game uses this skin for
Ghost
class.For my custom infclass client it uses
ghost
skin by whis (ghost can be "invisible" and in that case I render it semitransparent, which has an issue with alpha blending but meh, it is better than nothing).It is so unfortunate that I can't enable ghost skin for ghost classes for ddnet, because there is a number of players with that "vanilla skins only" option checked on.
I'm proposing to add some
ClientPreferences
(somehow similar to ServerCapabilities but those are not "Capabilities" in the strong sense) with version and flags. Something like that:I'd also like to have the client preferred language (can be null) here in ClientPreferences but it is a different topic.
The text was updated successfully, but these errors were encountered: