The only error is this one: not saved 104: Cannot store Dictionary in data store. Data stores can only accept valid UTF-8 characters.
I could bring the code, but its a lot and doing more stuff around the issue.
I could bring the important parts, but, Im sure the original post contains the important.
But yup, maybe Im saving into the module something incorrectly… Thats the only thing I can imagine
yup, Im printing everything before perform any saving, update etc.
Before trying to save into datastore Im printing the table to save, and its the right one, and its exactly the same as when player joined and got it extracted from player datastore, its the same as in the module too, and the right one when trying to save into datastore, but still, same error
Its just the same table at the beginning, on every print, it got saved first time into datastore, then readed from datastore after some time and stored into a module for some time, then tried to save it again into datastore and thats when error occurs
yup, theres other functions that writes into the module, but Im not using those functions, just directly into saving cycle testing, at the end before trying to save its printing normally, as it was since the beginning.
Im creating another place in order to test it carefully, just the cycle
I tested it in another place and works great… But I deleted a step on the edition of the module. Im reading a humanoid description and saving the IDs in some parts of the table that is on the module. By disabling that step the table hierarchy is saving perfectly as it should do… seems that Im breaking somehow the “normal table” when editing it and adding the HumanoidDescription ids…
oh no problem, Im not mixing indexes. “properties” etc, Im messing something during the edition of the table gotten from datastore, the weird thing is both tables looks exactly the same…
When disabling this line, works normally.
I guess Im not saving proper data when using currentDesc[a] Players_DATA.InGame[tostring(ply.UserId)]["Av_Presets"]["P01"]["HumData"][a] = currentDesc[a]
ohh!! great, yup, that was the issue… now works great, sorry for making you waste time… I turned all values gotten from the HumanoidDescription into tonumber() and now datastore saves normally… oops sorry :v
yup, but BodyPartColors is a Color3 instance, so its not possible to save it on a datastore if you dont convert those values into a table. I was not aware of that