Skip to content
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

Saving current splits on window reload #971

Open
vjeux opened this issue Sep 3, 2024 · 5 comments
Open

Saving current splits on window reload #971

vjeux opened this issue Sep 3, 2024 · 5 comments
Labels
enhancement A new feature or general improvement to LiveSplit One. high priority This is a high priority issue. requires livesplit-core changes There's a bug or missing feature in livesplit-core that needs to be implemented. work in progress Someone is actively working on resolving this issue / implementing this pull request.

Comments

@vjeux
Copy link

vjeux commented Sep 3, 2024

Context: I'm using livesplit one to keep track of a long running challenge (I try to solve 400 puzzles that last between a few minutes to an hour each) which works well except for when I close the window, everything is wiped when I reload. Sadly this is a managed computer that requires restarting Chrome fairly frequently and I lose all the current splits.

Proposal: Would it be possible to periodically (every couple of seconds while the timer is running) save the current splits to localstorage and when you load the page, then use localstorage data.

I'm happy to do the implementation as well if someone is able to tell me how to serialize/deserialize the state of livesplit-core.

Thanks!

@CryZe
Copy link
Collaborator

CryZe commented Sep 3, 2024

I actually do have an inprogress implementation for this, so this is definitely something that I want to have and is going to happen. Seems like there wasn't an issue already, at least not in this repository.

@CryZe CryZe added enhancement A new feature or general improvement to LiveSplit One. work in progress Someone is actively working on resolving this issue / implementing this pull request. requires livesplit-core changes There's a bug or missing feature in livesplit-core that needs to be implemented. labels Sep 3, 2024
@vjeux
Copy link
Author

vjeux commented Sep 3, 2024

@CryZe <3 Anything I can do to help?

@CryZe
Copy link
Collaborator

CryZe commented Sep 3, 2024

I don't think there's currently anything that you can do.

@vjeux
Copy link
Author

vjeux commented Sep 19, 2024

@CryZe I'm happy to put a $200 bounty if this gets fixed. This is really annoying to lose progress every time I restart Chrome (or my computer).

@Zikoat
Copy link

Zikoat commented Oct 30, 2024

I'd also put a 100$ bounty on this.
My use case is that i am running this on my phone, and am tracking how fast i am at my morning routine. When i turn off my screen and then reopen the website, then it should keep the progress from last time i opened it. I am not quite sure how the core is implemented and integrated into the frontend, but my first thought is to either register a webworker which keeps track of the timer, or save the current splits into localstorage. I might try a workaround with some extensions to keeps the website running in the background in the meantime.
Sadly not proficient with Rust, so i'll have to wait for @CryZe to fix.

@CryZe CryZe added the high priority This is a high priority issue. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A new feature or general improvement to LiveSplit One. high priority This is a high priority issue. requires livesplit-core changes There's a bug or missing feature in livesplit-core that needs to be implemented. work in progress Someone is actively working on resolving this issue / implementing this pull request.
Projects
None yet
Development

No branches or pull requests

3 participants