Autorefresh 2.0

Theabout 11 years ago

For some of you, this is a script that you remember me releasing a while ago, and for others, this if the first you're hearing of it. Regardless, I am glad to announce my newest version of the script, Autorefresh 2.0: https://greasyfork.org/en/scripts/8708-autorefresh


What It Does

Whenever you're on a lobby page, this script will automatically refresh the game list every second, so you always know what games are open and how full they are. However, unlike the previous version, this one does not break chat and allows you to view reports.

deleteddeletedabout 10 years ago
dooze
I can't open reports because it closes every refresh
just have to either go through the 'round' tab at the top or disable the script before accessing that section. i'm not sure if The is working on this kind of stuff anymore. it's a ballache but those are your current options.
doozeabout 10 years ago
I can't open reports because it closes every refresh
Theover 10 years ago
Fixed
aquariusover 10 years ago
autorefresh is broken
Sonrioabout 11 years ago
how lazy can we get folks
cubabout 11 years ago
Croned
What would be a better way to make the gamelist live?
a realtime interactive list is inherently bad design

at most, only the details of each item should be updated, but adding new items would move the list constantly and be incredibly inconvenient for user experience

also using sockets for everything is bad design as well, especially things that can be achieved more or similarly as effectively through simple xhr. think of it like using css3: you can use it to polish your website or you can use it to turn your website into a 3d rotating rave
Theabout 11 years ago
Foxie
Croned
Of course, Lucid could negate the need for such a thing by just using web sockets for the game list.
it's bad design
What would be a better way to make the gamelist live?
cubabout 11 years ago
Croned
Of course, Lucid could negate the need for such a thing by just using web sockets for the game list.
it's bad design
cubabout 11 years ago
error
that being said, there is a secondary 'join game' button in the game info panel. and i have yet to encounter the problem foxie mentioned.
nobody uses it except you we do it the right way

error
you didn't read my second post. anyone is welcome to, well, just not install the script, really.
cynicism is not a choice it is a way of life
Theabout 11 years agoedited
shouko
actually the time lapse runs just fine (for me at least), it's like just a real-time viewing of all the games. the only thing i can say that annoys me is that i have to turn it off in order to go through more than just the front page for games; it automatically redirects me to the front page every time i try to view other pages

running a script has nothing to do with a site's bandwidth or ability to handle traffic, it's hosted by the user and not the website
Update to the new version. I recently fixed the issue with viewing past game lists.

And with regards to load put on the site by this, the data returned by getting the gamepage is quite small - just some simple JSON, which is the type of data used by many real-time web applications. And, every 1000 milliseconds is considerably slower than, say, what a live angular app might use. Of course, Lucid could negate the need for such a thing by just using web sockets for the game list.

Foxie
what if i click to join a game and then another game pops up and makes me click on the wrong one

It's up to you in regards to whether or not you want it live or not. There is certainly a reason why I distribute scripts like these separately from, say, emjack. Personally, I find a constantly updating gamelist to be very helpful, especially when using something like an auto-join script.
deleteddeletedabout 11 years ago
you didn't read my second post. anyone is welcome to, well, just not install the script, really.
cubabout 11 years ago
shouko
actually the time lapse runs just fine (for me at least), it's like just a real-time viewing of all the games. the only thing i can say that annoys me is that i have to turn it off in order to go through more than just the front page for games; it automatically redirects me to the front page every time i try to view other pages

running a script has nothing to do with a site's bandwidth or ability to handle traffic, it's hosted by the user and not the website
false

how do you think it updates games? it requests the games list from the server again, which the server returns. that is traffic. this isn't a huge drain though
cubabout 11 years ago
error
Foxie
what if i click to join a game and then another game pops up and makes me click on the wrong one
that happens with or without the script anyway.
no it doesn't

the reason the list doesnt automatically update is because its more convenient to refresh when you want it to refresh and join games when you want to join games, both at the same time create the aforementioned problem
Floorabout 11 years ago
Isn't every second a bit too fast.
1
nepentheabout 11 years ago
oh yep but this might increase the chance for accidentally joining the wrong game though

but i guess this is probably inevitable for this kind of script (unless you do something like a bar on the top only stating whether there are new games or not which might actually be reasonable since it'd also make you be able to view games on later pages)
deleteddeletedabout 11 years agoedited
sorry, i worded that poorly. anecdotal experience has shown that people join the wrong games time and time again. you don't need the list jumping for someone to make that mistake.

that being said, there is a secondary 'join game' button in the game info panel. and i have yet to encounter the problem foxie mentioned.
nepentheabout 11 years agoedited
@shouko the list of the games is requested from the server every time though but i kind of doubt that it's anywhere near significant in terms of bandwidth

@error not really because if you don't refresh, the list doesn't jump
aquariusabout 11 years ago
actually the time lapse runs just fine (for me at least), it's like just a real-time viewing of all the games. the only thing i can say that annoys me is that i have to turn it off in order to go through more than just the front page for games; it automatically redirects me to the front page every time i try to view other pages

running a script has nothing to do with a site's bandwidth or ability to handle traffic, it's hosted by the user and not the website
deleteddeletedabout 11 years ago
Foxie
what if i click to join a game and then another game pops up and makes me click on the wrong one
that happens with or without the script anyway.
VS9102about 11 years ago
I think every second is too much, honestly. It might put some strain on the site's bandwith as well if too many people use it, but I'm not totally sure about that.
cubabout 11 years ago
what if i click to join a game and then another game pops up and makes me click on the wrong one
deleteddeletedabout 11 years ago
croned does it again! thank you.