Code Monkey home page Code Monkey logo

scextractor's Introduction

This is a Starcraft replay data extractor written by Glen Robertson.

It uses modified parts of Andras Belicza's Replay Parser to parse replay files, and it uses JNIBWAPI to interface with Starcraft.
By combining replay file parsing and attribute recording through BWAPI, this extractor is able to get a much more complete picture of the replay than others.

The dataset extracted using this software can be found at https://www.cs.auckland.ac.nz/research/gameai/projects.php

To run:
0. Install Starcraft and BWAPI 3.7. Have a set of replay files to extract.
1. Set BWAPI's auto_menu feature to load the replay files.
2. Set up a MySQL database (version 5.5 was used in testing)
3. Import the SQL data in starcraft.sql and starcraft-staticdata.sql
4. Examine the settings in extractorconfig.properties and change as needed
5. Run ExtractActions - this will go through all the replays in the replay directory (specified in the properties) and extract all of the stored data to the database. If successful there should be no "SEVERE" log messages but there may be some "WARNING" messages about skipping control groups.
6. Run ChaosLauncher (from BWAPI) as administrator.
6. Run ExtractStates as administrator - this will connect to Starcraft and run through each replay file in turn, extracting in-game data that is not accessible from parsing replay files.
7. ExtractStates or Starcraft has crashed? Run keeprunning.sh as administrator - this will attempt to detect when things have crashed and restart them. Note that this requires cygwin.
8. After extracting data, check for bad replays with more than 1% "none" type units using a command from "Useful Queries.sql"

scextractor's People

Contributors

phoglenix avatar

Watchers

James Cloos avatar jonygli avatar

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.