Skip to content

v0.17.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@redraskal redraskal released this 22 Feb 03:01
· 48 commits to main since this release
6a33396

What's Changed

  • The -x flag was changed to -o

New:

  • Added Python and Bun script examples
  • stdin support

Example:

  • r6-dissect Match-2023-03-13_23-23-58-199-R01.rec -x round.json is now r6-dissect Match-2023-03-13_23-23-58-199-R01.rec -o round.json
  • r6-dissect Match-2023-03-13_23-23-58-199 -x match.xlsx is now r6-dissect Match-2023-03-13_23-23-58-199 -o match.xlsx

Pipe also works now:
cat "/mnt/f/DissectBackup/Y8S2/Match-2023-06-11_23-16-15-205/Match-2023-06-11_23-16-15-205-R01.rec" | r6-dissect > round.json

You could also directly pass file contents in code:

import json
import subprocess
import sys

def parse(input):
    output = subprocess.check_output("r6-dissect", input=input)
    return json.loads(output)

with open(sys.argv[1], "rb") as file:
    replay = parse(file.read())
    for player in replay["players"]:
        print(f"{player['username']} is playing {player['operator']['name']}")

Full Changelog: 0.16.5...v0.17.1