screeps-packrat icon indicating copy to clipboard operation
screeps-packrat copied to clipboard

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

Results 5 screeps-packrat issues
Sort by recently updated
recently updated
newest added

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 ```...

https://github.com/bencbartlett/screeps-packrat/blob/6ad698ba952a52bf1fb38567dfa29808818c7537/src/packrat.ts#L92 Include it in the unit tests: String.fromCharCode is a problem for surrogate characters range d800 to dfff. If such character is output into console or Memory and taken back,...

global.unpackPos(global.packPos({x : 48 , y : 21, roomName:'W16S78'})) result in : [room W17S78 pos 48,21]

https://github.com/bencbartlett/screeps-packrat/blob/6ad698ba952a52bf1fb38567dfa29808818c7537/src/packrat.ts#L259 6 Bits are not enough. Try E90S90. 6 Bits is just enough for 0 to 63. I suggest using `__parsed` of `RoomPosition`. It already encodes world xy and room...