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
Feature Request: Custom Multiplayer Data Structures for Server Parsing
Feature Summary
This feature gives developers the ability to define custom data parameters for server-side processing by extending the "/lobbies/create" endpoint. This allows developers to explicitly define data needed for multiplayer sessions while ensuring the security of the backend.
Feature Details
API Endpoint Extension
Extend the "/lobbies/create" endpoint to add a parameter that allows for custom data structures. This will support specific game requirements in multiplayer environments.
Data Schema Requirements
Custom data must be validated and sanitized to maintain backend security.
The data schema can include parameters for game rules, settings, or any session-specific attributes.
Configurable Data Parameters
reliable: Specifies whether the data transmission requires reliability.
Default: false
priority: Defines the priority of the packet (applicable to reliable packets only).
Default: 3
data_type: Specifies the type of data being transmitted, such as "string" or "number".
Default: string
attr_name: The name of the attribute being transmitted.
Default: rule
default_value: The default value to use if no data is provided.
Default: null
parse_modifier: A placeholder for Python functions that can modify or validate incoming data.
Example Use Case
Developers can define custom parameters like { "attr_name": "health", "data_type": "number", "default_value": 8, "reliable": true, "priority": 5 } to create specific game configurations that enhance the multiplayer experience. For instance, setting the priority to 4 or higher enables thread locking and retries up to three times if needed.
Acceptance Criteria
The "/lobbies/create" endpoint must correctly parse custom data without introducing security risks.
Default values must be applied if specific client values are not provided.
Validation mechanisms should be in place to prevent security vulnerabilities.
Additional Considerations
Custom data structures must undergo thorough validation to guarantee security.
The priority parameter should only be applied to reliable packets to prevent inconsistencies in the system.
The text was updated successfully, but these errors were encountered:
Feature Request: Custom Multiplayer Data Structures for Server Parsing
Feature Summary
This feature gives developers the ability to define custom data parameters for server-side processing by extending the "/lobbies/create" endpoint. This allows developers to explicitly define data needed for multiplayer sessions while ensuring the security of the backend.
Feature Details
API Endpoint Extension
Data Schema Requirements
Configurable Data Parameters
reliable
: Specifies whether the data transmission requires reliability.priority
: Defines the priority of the packet (applicable to reliable packets only).data_type
: Specifies the type of data being transmitted, such as "string" or "number".attr_name
: The name of the attribute being transmitted.default_value
: The default value to use if no data is provided.parse_modifier
: A placeholder for Python functions that can modify or validate incoming data.Example Use Case
Developers can define custom parameters like
{ "attr_name": "health", "data_type": "number", "default_value": 8, "reliable": true, "priority": 5 }
to create specific game configurations that enhance the multiplayer experience. For instance, setting thepriority
to 4 or higher enables thread locking and retries up to three times if needed.Acceptance Criteria
Additional Considerations
priority
parameter should only be applied to reliable packets to prevent inconsistencies in the system.The text was updated successfully, but these errors were encountered: