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
Livesplit - Provide a TimeCalc URL for Season/Trilogy speedruns #42
Conversation
335510e
to
d1b7255
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool idea, I support it! Unfortunately, there's an important corner case that isn't handled yet:
If you "complete" a mission, but have red guns, or otherwise didn't complete your objective, the autosplitter allows you to just restart the level and it will unsplit. The timecalc info tracking should support this case as well. See lines 111-130 for where this is handled for livesplit itself (i.e. where the unsplit call happens). You should be able to just get the latest entry in the timeCalcEntries and set its isComplete to false, if I'm not missing anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My 2 cents.
d1b7255
to
3635ec7
Compare
- Return 2 URLs if there is not enough lines to fit all the resets - Print time as mm:ss when time is over 60s - Include resetMinimum and time under 1s logics in TimeCalc output - Handle unsplit logic in TimeCalc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't really look too hard at the link generation code, but other than that looks good other than comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link gen + discord RP changes LGTM, but Fusha's feedback still remains.
- Updated _addMissionTime to always return a floored time - Updated _formatSecondsToTime to better match other code patterns in module - Removed debug logs entries
I updated the code following @fu5ha recommendations and now waiting on approval. Thanks everyone for the feedback! |
…eacockproject#42) * wip(livesplit): store individual times for timecalc sheet * feat(livesplit): generate timecalc link at run end * chore: move livesplit typings in its own types file * feat(livesplit): complete timecalc feature - Return 2 URLs if there is not enough lines to fit all the resets - Print time as mm:ss when time is over 60s - Include resetMinimum and time under 1s logics in TimeCalc output - Handle unsplit logic in TimeCalc * feat(livesplit): couple of changes over pr comments - Updated _addMissionTime to always return a floored time - Updated _formatSecondsToTime to better match other code patterns in module - Removed debug logs entries
Generating and printing a TimeCalc link as required for Season/Full game runs from Speedrun.com
This will print a link like this one in the console, ready to be submitted, using Livesplit output.
https://solderq35.github.io/fg-time-calc/?mode=0&fs3=1&ft2=1&f3t1=1&f4t0=1&d=:&o1=1&fps=&t1=49&c1=Paris&t2=106&c2=Sapienza&t3=94&c3=Marrakesh&t4=79&c4=Bangkok&t5=76&c5=Colorado&t6=45&c6=Hokkaido&t8=74&c8=Sapienza%20reset%201&t9=75&c9=Sapienza%20reset%202&t10=42&c10=Sapienza%20reset%203&t11=42&c11=Sapienza%20reset%204&t12=27&c12=Colorado%20reset%201&t13=38&c13=Hokkaido%20reset%201