Closed zhm9484 closed 2 years ago
Use pickle+lz4 to dump replay instead of json in order to slim the replay file and accelerate dumping.
pickle+lz4
json
from nmmo import Replay config = YourNMMOConfigClass() replay = Replay.load(config, "myreplay.replay") for packet in replay: print(packet.keys()) # ['border', 'size', 'resource', 'player', 'npc', 'pos', 'wilderness', 'environment']
Proposal
Use
pickle+lz4
to dump replay instead ofjson
in order to slim the replay file and accelerate dumping.How To Load