Skip to content

update to use openrs2 and fix some bugs I found#205

Open
ARTARNA wants to merge 12 commits intoConnorDY:mainfrom
ARTARNA:main
Open

update to use openrs2 and fix some bugs I found#205
ARTARNA wants to merge 12 commits intoConnorDY:mainfrom
ARTARNA:main

Conversation

@ARTARNA
Copy link
Copy Markdown

@ARTARNA ARTARNA commented Nov 22, 2025

No description provided.

@ScoreUnder
Copy link
Copy Markdown
Collaborator

Mostly some questions in review. Nothing super problematic jumps out though there are a few things I find confusing. The biggest question is why the RuneStats support is being dropped entirely -- kinda big for a PR with no description!

Could you expand on the bugs you're fixing? I can see some amount of error handling being added in some places, but it's not clear what this does in the grand scheme of things.

}.start()
}

private fun downloadCache(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is getting fairly hefty; might be nicer if it had its own class at this point. also it's been a while since I touched RS2 stuff but is there a reason to remove runestats support entirely? are they cancelled? lol

@ScoreUnder
Copy link
Copy Markdown
Collaborator

ScoreUnder commented Nov 28, 2025

I've resolved some of the easier comments I have on this myself (with apologies: it's on the main branch on your fork, so I've had to push up to there!), now what remains is:

  • Why remove RuneStats cache support entirely?
  • Why parse-and-format timestamp rather than just not parsing it in the first place? friendlier than RFC 3339 for presentation
  • Might want a refactor to move cache saving logic out of UI controller class
  • Still want to remove the TOCTOU race just on principle lol done

Bigger maybes:

  • Might want to save metadata as-is
    • which could also remove the need for a synthetic params.txt
  • Might want to locally cache the list of available caches to avoid spamming the server if someone restarts the program a lot. Expiry of 12h or something? This is a bit of a longer one tho so understandable to not implement it

I've put in what I have time to put in on this, I'll maybe come back to it when I'm more free and then put some time into some refactoring, or reinstating RuneStats support alongside OpenRs2. Otherwise please discuss in the meantime if you're able!

- Exceptions are still possible due to a TOCTOU race, so just handle the
  exception either way.
- We get marginally less overhead on the happy path this way (though
  this is unlikely to mean anything in real life)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants