bencbartlett / screeps-packrat

Lightning-fast and memory-efficient serialization of Screeps IDs, Coords, and RoomPositions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some packed ids don't survive in Memory

bbjygm opened this issue · comments

This particular id was hanging me up, but it may be an issue for other: 59f1a51382100e1594f3def7

passing the packed id into unpack worked as expected,

unpackId(packId('59f1a51382100e1594f3def7'))
> 59f1a51382100e1594f3def7

but after putting it in memory the unpack did not return the correct id back

Memory.test = packId('59f1a51382100e1594f3def7')
unpackId(Memory.test)
> 59f1a51382100e1594f3fffd

Here's a pic of the console to demonstrate:
unpackid

Seems related to this #3