Serializer<T>.serialize() yielding
everything after "serializing..." is not printing, indicating that serialize() is yielding. i have fiddled around with the schema types to no avail.


5 Replies
i suspect that this is the issue because it was working before i added this


and the
AbilitySlot
enum is just numbers starting @ 0
i will note that i checked if the data i was serializing passed a guard for PlayerData
and it did not, however this could be because of the Packed<T>
type adding the _packed
field
@Sasial @fireboltofdeath hoping maybe one of you have a solution, and sorry for ping 🙏 ❤️
ok it is 100% the issue it indeed works without the abilitySet
field
ok i think this is the issue
in the default data table i have, the key AbilitySlot.One in SerializedAbilitySet is represented as 0
but in the data given to serialize() it's 1
yep, sure enough
i used Partial<Record<DataType.u8, SerializedAbilitySet>>
and it worked
sorry for the ping guys
so the lesson learned here was: be careful when using enum values as keysFwiw, the serde can't yield which means it most likely errored
If you didn't see an error then you might accidentally be suppressing it so be careful I guess
wth
probably cause it was called in a promise that i didnt catch lol