Git Product home page Git Product logo

pacanalyzer's Introduction

PACAnalyzer Join the chat at https://gitter.im/Reithan/PACAnalyzer

By Bryan O'Malley ([email protected])

Perception-Action Cycle analysis plugin for SC2Reader (https://github.com/GraylinKim/sc2reader)

This plugin is built based on the work of Mark Blair, Ph.D, and the Simon Fraser University Cognitive Science Lab (http://cslab-sfu.ca) on the SkillCraft project. You can find their project website at: http://skillcraft.ca

This plugin adds a list of PACs to each human player in a replay.

The list consists of PAC objects with the following attributes

  • min, max: Min & max camera coordinates for this fixation
  • cameras: list of camera actions during this PAC, formatted as [frame#, x, y] for each camera action in the list
  • actions: list of frame numbers actions were taken on during this PAC

Additionally, a PACInfo object is added to the replay with the attributes DispThreshold and DurThreshold. DispThreshold is the max combined x & y shift before a new fixation is started while DurThreshold is the minimum duration for a camera location to be considered a fixation.

Finally, a PACStats object is added to each human player with the following statistics calculated:

  • ppm: average(mean) PAC per minute
  • pal: PAC action latency. e.g: how long it takes you to take your first action after each fixation shift. (mean average)
  • app: Actions per PAC. The average(mean) number of actions you take each PAC.
  • gap: How long it takes you, after finishing your actions in one PAC to establish a new fixation. (mean average)

PACAnalysis.exe is a command-line tool for analyzing replays for PAC stats. You can execute it from command line, or simply drag one or more replays, or even a folder of replays on the executable.

PACAnalysis.py is the SC2Reader script used to generate the executable, with the help of setupExe.py, a setup script for py2exe. Once the distributible executable has been generated by py2exe (dist/PACAnalysis.exe), change its extension to .zip and draw the accompanying folder (dist/sc2reader) into it. Then simply change its extension back to exe and it will run.

pacanalyzer's People

Contributors

reithan avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

pacanalyzer's Issues

Unicode characters in filenames crash on output

Trying to parse files with unicode characters in the name, like "TvZ imbaStrelok(-T) vs MǂStephano(-Z) ESP[00-22-50].SC2Replay" results in PACAnalysis.exe crashing when it tries to print that character.

Many LotV Replays Don't Work

It seems development of Sc2Reader hasn't kept up and LotV is producing many replay parsing errors now. Additionally, we should have better error handling in these cases, including 'known' issues such as no actions recorded for AI players.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.