GraylinKim / sc2reader

A python library that extracts data from various Starcraft II resources to power tools and services for the SC2 community. Who doesn't want to hack on the games they play?
http://sc2reader.readthedocs.org
MIT License
413 stars 85 forks source link

Bug: strange memory ID #121

Closed gundalf closed 11 years ago

gundalf commented 11 years ago

Hey,

the reader is a really great thing and you can do really crazy stuff with it. But unfortunatelly I got several issues... :(

Well I want to integrate this parser in a website which is written in php. So i wrote a file which sends the parser the path for the replay and it is listen to the repsond of the python file. Normally the python file repsonds a dictionary with all the information inside through json.

But now I tested some replays and i get some strange errors which I have no idea how to handle:

For the map Daybreak and many others it works fine btw

Looking forward to the answer :)

GraylinKim commented 11 years ago

If you are getting IOErrors I don't think it is sc2reader's fault. I would recommend checking to make sure that the file actually exists at that location and is readable. Make sure that something simple like this works:

with open('C:\Users\Michael\Downloads\test.SC2Replay', 'rb') as file:
    contents = file.read()

If you are getting error output I'll need a copy of the replay to replicate/debug and fix. Please post them somewhere and link them or email them to me privately at .@gmail.com.

GraylinKim commented 11 years ago

Closing this for now. Feel free to re-open if you can post a script and replays I can use to replicate.