Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3XXXLOlympic GamesXXL EditorToolsOff-TopicXXL RomasteredXXL 2 RemasteredOther GamesModsCaesar's ChallengeUnfair XXLPatchesFan ArtPersonal ArtSpeedrunningMediaRandomizerBETA RomeHSKALPresence AdrienPresence SPQRSupport Bot Helpdesk

#editor

pegperegogaucho
So i need to adjust the **uint32_t _numclones** and **uint32_t _numdongs**, anything else? :HmmChamp:
adrientd
idk
pegperegogaucho
ahh shit
pegperegogaucho
everything works fine but it looks like the deserialization/serialization is fucked :PauseChamp:
adrientd
then maybe you didn't adjust the numclones cvorrectly
pegperegogaucho
but it gets incremented every time it gets called :ThinkEyes:
adrientd
maybe there's another array to change its size
pegperegogaucho
yeah it must be
pegperegogaucho
but which :HmmChamp:
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 :PogClappa:
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()? :hmmKay:
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
pegperegogaucho
and the clonemanager gets read just fine
adrientd
you're sure?
pegperegogaucho