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.
deletedover 8 years
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.
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
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.
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.
deletedover 9 years
you didn't read my second post. anyone is welcome to, well, just not install the script, really.
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
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
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)
deletedover 9 years
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.
@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
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
deletedover 9 years
what if i click to join a game and then another game pops up and makes me click on the wrong one
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.