I currently have my In-Game Editor and i want to save the map that i created to firebase. how can i save even the tilemap? i know about RESOURCES, but i can only save it locally not in cloud

kuligs2

this is my code, so far i can save the positions of the tilemap that i put

but when i load it, i got this errror

i print cells and this is the output
{"Vector2i(25, 19)":0,"Vector2i(3, 10)":0,"Vector2i(33, 11)":0}

    alshim could be type error, check if you create itterable object cells. Stringify is creating a string ? Not sure with Json methods

    Maybe use cells = json.parse()??

      alshim well the way i understand that the docs.doc_fields.Cells is alread a dictionary, no need to json.parse or anything, just iterate

      var cells = docs.doc_fields.Cells
      
      for cell in cells:
          bob is uncle

        kuligs2

        WAAAAAAAT!!!!!???? HAHAHAHAHA im so dumb i didn't saw that one. thanks bro. that solves my problem 🙂

        i too am confused with object types that gets returned. to be safe you can set the type for the variables and catch the error there

        var cells:Dictionary = docs....