Maguro

Intro into sc2reader

Jul 21st, 2020
981
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import sc2reader
  2. from pprint import pprint
  3.  
  4. file_path = 'Temple.SC2Replay'
  5.  
  6. replay = sc2reader.load_replay(file_path,load_level=3)
  7.  
  8. # Print all info about replay
  9. pprint(replay.__dict__)
  10.  
  11. # Print how events look
  12. for event in replay.events:
  13.     print()
  14.     pprint(event.__dict__)
Advertisement
Add Comment
Please, Sign In to add comment