jcarbelbide / tog-crowdsourcing

Goal is to create a runelite plugin that crowdsources the optimal Tears of Guthix world.
BSD 2-Clause "Simplified" License
9 stars 0 forks source link

SUGGESTION: Add world ping display #2

Open colinberan opened 1 year ago

colinberan commented 1 year ago

Would be nice to see my connection to each world as well so I can decide which one would be best to connect to.

jcarbelbide commented 1 year ago

Thanks for your suggestion! I pretty much copy pasted the sidebar code from the World Selector plugin. I'm not at my computer right now, but I think that plugin has ping right? I might have replaced the ping column with hits or something because I was worried about space, or it was just easier that way. Can't remember, but I can check it out and see if it's simple to add it in

I think when I first made this, I never imagined there would be so many choices for worlds to connect to, so I didn't think ping would matter haha :)

67protons commented 1 year ago

Ping on this issue. The plugin still seems to be missing this and it'd be great to have this feature. I think there should be enough room for a ping column while keeping the hits column as well - as the World Selector plugin is able to accommodate 4 columns.

I'd be willing to take a stab at it as well if you're too busy

jcarbelbide commented 1 year ago

Hey @67protons, I might take you up on that offer. Let me look at this over the weekend to see what would be needed. I've been pretty busy at work lately so I haven't had time to look at this

jcarbelbide commented 1 year ago

Had no time this weekend, but should be able to take a look this weekend.

jcarbelbide commented 1 year ago

Currently working on this. Will push a branch when I have time

jcarbelbide commented 1 year ago

PR open. Will leave it open for a day and will then create a PR for the plugin hub. Feel free to take a look and try it locally. Lmk if you have any feedback.

https://github.com/jcarbelbide/tog-crowdsourcing/pull/9

The sorting arrow covers the g in Ping. I needed enough space to make sure Stream Order was still unobstructed by the sorting arrow. I chose to block the g in Ping over Stream Order because I figured that Ping is probably a bit more self explanatory. image

67protons commented 1 year ago

Looks good! Agreed that the arrow covering the g is not bad, it is a self-explanatory column. Perhaps there's space to borrow from the hits column though?

Also, it'd be cool to be able to secondary sort by ping (primary sort on Steam Order). As a user, I don't utilize the hits column all that much. Typically I just look for best Stream order, then my region, and once I hop, I just wait for the info-box overlay in-game to verify the stream order is good. The color does a good job at already alleviating that issue though - so it's not a major request if it's too difficult/time-consuming.

jcarbelbide commented 1 year ago

Yeah, good point. I had a similar thought this morning haha. I'll see if I can borrow some space from the other columns

Thanks for the suggestion about ping sort. I believe I can incorporate a ping sort as well. I can work on that today or tomorrow 👍

jcarbelbide commented 1 year ago

Apologies for the delay, and thank you for the patience! Got busy during the week, but I just found some time and adjusted it per your recommendations. Great suggestions, thank you!

Each column has enough space to show each header, and instead of sorting by: Stream Order --> Hits --> World #

now we sort by: Stream Order --> Ping --> Hits --> World #

I think this is much better :)

image

I'll leave this open for a bit too to get some feedback, then I'll open a PR in the plugin hub repo

67protons commented 1 year ago

This looks awesome! Can't wait for it to go live!

jcarbelbide commented 1 year ago

Small issue merging this feature - the maintainers brought up a good point that they do not want two plugins that send pings to every world (world hopper plugin already does this). They suggested that if this is an important feature, it would require a change to the world hopper plugin to expose the pings it gets as a service. I'm following up with them to see what would be required and whether i can help with that

67protons commented 1 year ago

Disappointing but sounds good. Ya, it'd be nice if the world hopper plugin ping values could just be queried by all other plugins.