-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python script to parse replays using sc2reader to easily import it on the website #9
Comments
Is the .json format the same as the one exported by "Copy SC2 Bot Instructions"? Using the spawningtool code mentioned in #1 , this seems relatively straight forward and I could take a stab at it. I am only confused what "frame" is in that .json. It's around 22-23 x elapsed seconds? Whats the formula for that? @BurnySc2 Thoughts? |
The formula is My goal was to host a separate site (with backend this time) where people could upload their replays and it would spit out a sc2-planner link. I have already started working on it a month ago but have less time recently. Now is just the frontend + backend interaction missing for the website (which I would write in React + Typescript + Sanic backend framework) - while the backend uses the sc2-replay-analyser library to parse/analyse replays. If you purely use the BO instructions from spawning tool, there will be a lot of actions missing - e.g. chronoboost or dropping mules or injects, and sometimes there are weird artifacts in their output (e.g. line with leading comma, sometimes |
Yeah, that would be a really nice solution with a separate website. Looks like you kind have done all the heavy lifting--I was basically just thinking to write the function sc2planner.create_link. Using sc2reader is definitely the right way to go. I'll poke around--but don't want to oversell my skills or time. I'm not sure how helpful I can be as I don't have any website experience. Parsing of the text output from Spawning Tool would definitely be challenging and require assumptions. |
See title.
Python script: reads a SC2 replays which reads the actions (make scv, drop mule, put scv into gas) and converts it to JSON format which can be easily read by typescript on the website.
The text was updated successfully, but these errors were encountered: