So i need to adjust the **uint32_t _numclones** and **uint32_t _numdongs**, anything else?
adrientd
idk
pegperegogaucho
ahh shit
pegperegogaucho
everything works fine but it looks like the deserialization/serialization is fucked
adrientd
then maybe you didn't adjust the numclones cvorrectly
pegperegogaucho
but it gets incremented every time it gets called
adrientd
maybe there's another array to change its size
pegperegogaucho
yeah it must be
pegperegogaucho
but which
pegperegogaucho
i guess it will be trial and error from now on
pegperegogaucho
but other than that everything is looking fine, all the references get updated and even the node hierarchy is perfect
pegperegogaucho
@adrientd i have a few questions:
whats **nextobjoffset**, the number of bytes until the next pointer to a new chunk?
And what would cause the nextObjOffset to be different from the lvlFile.tell()?
adrientd
nextobjoffset is simple the byte offset of the end of the object being read
adrientd
It is normally stored just before the serialized object
adrientd
So, the program reads the end offset, then reads the object, and then checks if the current reading file position matches the end offset
adrientd
if not, assertion is thrown
pegperegogaucho
because for some reason the lvlfile.tell() != nextobjoffset