Attribute total payload exceeds 1024 bytes
ReplicatedStorage.shared.packages.node_modules.@flamework.components.out.components:301 function getAttributes
ReplicatedStorage.shared.packages.node_modules.@flamework.components.out.components:575 function addComponent
ReplicatedStorage.shared.singletons.entity-manager:218 function RegisterEntity
ReplicatedStorage.shared.singletons.match-manager:441
ReplicatedStorage.shared.packages.Promise:172 function runExecutor
ReplicatedStorage.shared.packages.Promise:181
ReplicatedStorage.shared.packages.Promise:1254
ReplicatedStorage.shared.packages.Promise:172 function runExecutor
ReplicatedStorage.shared.packages.Promise:299
This limit should not exist. How are we supposed to be able to transmit a large statline? For example, this is what i’m trying to initialize my entities with on respawn:
{
EntityId: symbol_no_entity_id,
EntityOwnedBy: symbol_no_valid_owner,
FacingDirection: Vector3.zero,
MovingDirection: Vector3.zero,
MaxHealth: 100,
Health: 100,
BaseDamage: 10,
BaseDefense: 5,
State: -1,
CurrentAttack: symbol_no_framedata_id,
PreviousAttack: symbol_no_framedata_id,
TimeLastAttacking: -1,
HitstopFrames: 0,
HitstunFrames: 0,
BlockstunFrames: 0,
// THIRTY-TWO VALUES (16, but one for flat and percent)!!!
// THIS ALONE IS ABOUT 256 BYTES!
...(
Object.values(EntityStatistic).reduce((acc, v, k, a) => {
const expr = <keyof typeof EntityStatistic>EntityStatistic[v];
acc[`${expr}_FLAT`] = 0;
acc[`${expr}_PERCENT`] = 0;
return acc;
}, {} as Record<`${keyof typeof EntityStatistic}_${"FLAT" | "PERCENT"}`, number>)
),
BaseShieldSize: 4.5,
ShieldMaximum: 150,
ShieldCurrent: 150,
["SPEED_MOVEMENT_FLAT"]: 16,
Upright: true,
HasJumpLag: false,
AttackedBy: symbol_no_entity_id,
};
If I try to set all of these attributes at once using a for loop, my studio crashes. If I have time (at minimum one second) before each :SetAttribute() call, the crash does not happen. Also, this was absurdly hard to find due to expanded table logging (or maybe just any log item that requires extra computation) loading out-of-order.
This is particularly infuriating because I encountered this exact same problem implementing my own rollback solution with unreliable remote events, but at least I could partially work around it by only sending changed attributes and compressing everything.
This is tied to NextGenerationReplication, not Server Authority itself (it seems).