Timing Bug on Draft Tab
On the draft tab of a Captain's Mode game, it is incorrectly showing the time for the first ban of the draft. I attached a few screenshots below.
Probably the replay format changed somewhere, we'll have to look at the replay contents.
https://github.com/odota/core/blob/master/processors/processDraftTimings.js
Probably the replay format changed somewhere, we'll have to look at the replay contents.
Hi! I tried to debug this issue and I found out that in processDraftTimings.js, the calculation of draft timings is (time of last draft minus to time of current draft) and if it is calculating the first draft, it should be (time of the beginning of draft stage minus time of current draft). But instead, it's just passing the time of current draft that's why we're getting this issue of having -700s or more value instead.
I think the solution for this is have the odota/parser record the start time of draft stage and pass it to the processDraftTimings.js to calculate the time of first draft correctly. I tried to run the Clarity Analyzer and I think I find a way to record the start time in case it is not yet implemented in odota/parser. I'm just wondering how can I run the odota/parser to my local machine and make the parser service call it instead of the production odota/parser so that I can make code changes and test it locally?
I believe you can clone the odota/parser repo, make the edit in the Java code, then rebuild the docker container with docker build . -t odota/parser
Then try restarting your docker-compose stack and it should run your local version instead
If that doesn't work there might be a few other options
You might have to delete the old odota-parser container
Okay I'll give it a try. Thanks!