Skip to content

Steam tag char limit makes Networking.SetData() hard to use #11353

Description

@zonical

What can't you do?

Networking.SetData() is incredibly hard to use at the moment, as it's extremely easy to hit Steam's 128-character limit for tags.

How would you like it to work?

The comments attatched to this function suggest that data will be handled by the s&box backend at a future point. I should be able to chuck as much data as I want (obviously within reason, but certainly higher than 128 characters) for the lobby. A bonus request is that lobby data should contain ConVars marked with the ConVar.GameSettings or ConVar.Replicated flags, as players may wish to filter lobbies based on what settings are enabled for a game (e.g. is friendly fire enabled, what gamemode is being played at the moment, etc...).

What have you tried?

I have tried reducing the size of the data I submit as much as possible, but it is still easy to hit the limit with a few key/value pairs set.

An example of how I've tried to work around this:

Networking.SetData( "ff", GameConVars.Gameplay.FriendlyFire ? "1" : "0" );
Networking.SetData( "fd", GameConVars.Gameplay.FallDamage ? "1" : "0" );
Networking.SetData( "hr", GameConVars.Gameplay.HealthRegen ? "1" : "0" );
Networking.SetData( "pu", GameConVars.Gameplay.Powerups ? "1" : "0" );
Networking.SetData( "sg", GameConVars.Gameplay.SpawnGibs ? "1" : "0" );
Networking.SetData( "ident", "example.ident" );

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions