#Got a little problem with my save and load module

1 messages · Page 1 of 1 (latest)

shadow osprey
#

This is what my game is saving (without error of course) (First picture)
This is what my game is loading (without error aswell) (Second picture)

Pretty confusing and I do not know what is the source of the problem, if anyone who is passing by is able to help me solve this that would be great ! Thanks for reading this I guess x).

valid sail
#

probably because it can't loop through it

#

either make the index only numbers or only like strings

#

if it uses pairs or ipairs you'd have to choose

lavish kayak
shadow osprey
#

Dw guys I finaly found the problem, it was because m'y values were not "primitives" (yes I just learned that x))

#

It is like a translation problem : Datastoreservices see these values like Objects, even if they are real values, you need to clear the values of the Object kind of tag.

#

It's very complexe and it took me an hour to understand.

shadow osprey
#

This problem is now SOLVED ✅

rigid lagoonBOT
#

studio** You are now Level 2! **studio

lavish kayak
shadow osprey
#

That I recieved by the datastoreservice

#

But the datastoreservice wasn't saving correctly

#

Oh to create welp I was using a pairs

lavish kayak
#

alr, im new to scripting so i wouldnt really know alot

shadow osprey
#

And I still do use a pairs but I did the whole writing thing diferently, same result for us, but not for studio

shadow osprey
#

Oh btw do you know the difference between ipairs and pairs cuz I don't understand ...

lavish kayak
#

ipairs will skip keys like ["Bread"] since its not an number

#

think of the i in ipairs as integer

shadow osprey
#

Okay so it's only for number keys

#

Thanks a lot !

lavish kayak
#

np