issues icon indicating copy to clipboard operation
issues copied to clipboard

Desktop Offline feature

Open Aragami1408 opened this issue 4 years ago • 21 comments

Checklist (issue will be disregarded & closed if incomplete!)

  • [x] I've checked both open and recently closed issues to ensure this issue is not already reported.
  • [x] I am using the newest version of TETR.IO.
  • [x] I know how to reproduce the issue.
  • [x] I am using a supported browser or the Desktop Client.
  • [x] I am not using anything that modifies game code (e.g. TETR.IO+).
  • [x] I am certain this is a bug, not a feature request.

Describe the bug/issue

I already know that tetrio desktop client offers single player mode when playing offline (No internet connection). But when I turn tetrio on without Internet it resulted in a black screen after loading.

Expected behavior

What I'd expect is I can play tetris while no internet connection (offline mode)

Screenshots

Here it is: image

My OS is Windows 10 Pro version 1909 and my browser is Brave Version 1.15.76 Chromium: 86.0.4240.111 (Official Build) (64-bit)

Aragami1408 avatar Oct 23 '20 11:10 Aragami1408

do you have TETR.IO + installed? it disables offline functionality

Neeko-iko avatar Oct 26 '20 20:10 Neeko-iko

I have the same issue

DedFishy avatar Dec 05 '20 00:12 DedFishy

do you have TETR.IO + installed? it disables offline functionality image

DedFishy avatar Dec 05 '20 00:12 DedFishy

I have the same issue; it just displays a black screen. I'm not using any code modifications either.

Electron98 avatar Dec 09 '20 18:12 Electron98

@Electron98 Remember:

do you have TETR.IO + installed? it disables offline functionality

Aragami1408 avatar Dec 10 '20 01:12 Aragami1408

@Electron98 Remember:

do you have TETR.IO + installed? it disables offline functionality

No, I do not have it installed.

Electron98 avatar Dec 12 '20 17:12 Electron98

Yea I've got this too, without anything that modifies the code

jpersonn avatar Feb 03 '21 00:02 jpersonn

I can personally confirm with the Desktop V7 client running on my Windows 10 2004 machine loading the current 6.0.0 TETR.IO game release that this issue is still relevant. User "most#8476" on the TETR.IO Discord server brought this to my attention, and after some quick troubleshooting endeavors we concluded it is currently impossible to run TETR.IO whilst offline before launch. Here are some of our findings:

  1. After launching TETR.IO offline, the user will be met with the normal bootup screen all Desktop client users should see.
  2. The update checker will report a failure to check for updates, as expected.
  3. The next step, "STARTING TETR.IO"/"IF THIS GETS STUCK, TRY HOLDING F4 FOR FIVE SECONDS", speeds by very quickly.
  4. ENDLESS ETERNAL VOID It is worth noting the endless eternal void seems to ignore all conventional browser commands, such as the two tools to summon the devtools (CTRL+SHIFT+i)/(F12) or all commands to reload the current tab(CTRL+F5)/(F5)/(CTRL+R)/(CTRL+SHIFT+R); Hence the lack of console logs.

At first, I was quick to blame the so-called "service workers" holding TETR.IO Desktop together. I had heard a while back that they're responsible for the offline compatibility, and I thought that the extra children processes TETR.IO Desktop might be those. I ordered most to open up task manager to see how many processes TETR.IO was running to compare his results to my own with an online instance of TETR.IO. He would have two to four processes running whereas I would have five, signifying to me that some child process may not be launching when it is required to have the game function.

After some quick investigation into the devtools, I noticed the "Bypass for network" option under the "Application->Service Workers" tab being toggled to on, meaning, as I understand it, the game would always attempt to load from the network instead of loading from local resources. This could have something to do with my history with TETR.IO PLUS, which, at least half a year ago, required this setting to be manually toggled to on; my fresh Linux client does have the setting flipped off. Regardless, once that was switched off, and only after several restarts, cache clears, and solo game loads; the offline compatibility still didn't work.

TETR.IO PLUS was not installed on my system during my own testing. I do not believe most even knew TETR.IO PLUS existed at the time of reporting.

ZaptorZap avatar Feb 27 '21 06:02 ZaptorZap

I noticed the "Bypass for network" option under the "Application->Service Workers" tab being toggled to on

This only has an effect if devtools are currently open btw

UniQMG522 avatar Feb 27 '21 07:02 UniQMG522

This only has an effect if devtools are currently open btw

Oh so that's what "Open devtools automatically" did in TETR.IO PLUS. I always thought it was a strange setting to have on.

ZaptorZap avatar Feb 27 '21 07:02 ZaptorZap

Oh so that's what "Open devtools automatically" did in TETR.IO PLUS. I always thought it was a strange setting to have on.

Nah that's just meant to open devtools when you can't get them open otherwise, since for some reason the hotkey doesn't work until you're already loaded in the game proper. The service worker thing was only a temporary hack to get old clients with an existing service worker to drop them after tetrioplus started blocking new service workers entirely.

UniQMG522 avatar Feb 27 '21 07:02 UniQMG522

I would just like to note that the offline compatibility was deliberately removed in the sake of simplicity regarding continuing developments on the desktop client. Quoting osk here,

's kinda buggy and hard to set up, i commented it out on the desktop page for that reason It's unknown to me if he intends on bringing it back or not.

ZaptorZap avatar Sep 13 '21 22:09 ZaptorZap

Just adding here that it would be great to have offline solo play if it's ever going to be added back.

sean1006 avatar Nov 01 '21 03:11 sean1006

Adding to the chorus: Offline solo play would be awesome for TETR.IO.

ajs256 avatar Feb 27 '22 04:02 ajs256

Keep dreaming, this will never happen.

l4kr avatar Jul 07 '23 14:07 l4kr

Keep dreaming, this will never happen.

Wishing you and your family a new day filled with positivity, joy, peace and happiness!

Aragami1408 avatar Jul 15 '23 14:07 Aragami1408

Hey any updates on this issue? If I'm allowed to pitch my own 2 cents in as a developer: why not have a special version of tetrio that's made for the desktop instead of needing to rely on the online server? Afaik, all the tetrio client is, is an Electron app that loads the main site, and I don't see why creating a version solely for local use can't be an option.

edits: man I gotta learn how to proofread

TechStudent10 avatar Jan 16 '24 04:01 TechStudent10

Hey any updates on this issue? If I'm allowed to pitch my own 2 cents in as a developer: why not have a special version of tetrio that's made for the desktop instead of needing to rely on the online server? Afaik, all the tetrio client is, is an Electron app that loads the main site, and I don't see why creating a version solely for local use can't be an option.

edits: man I gotta learn how to proofread

As a developer, you may see that tetr.io devs are lazy and want to shove ads in your mouth instead of letting you play when you don't have an internet connection

l4kr avatar Jan 16 '24 08:01 l4kr

want to shove ads in your mouth

@l4kr For the record, you can quickly and permanently disable advertisements on the official client with the below checkbox:

https://github.com/tetrio/issues/assets/64891705/63d2bb5b-a3bf-41a7-a361-e5c57161ce15

This also completely prevents the loading of any ad scripts, so you'll be left untouched performance wise. Regardless, this sentiment is unruly and not fit for this discussion.

ZaptorZap avatar Jan 16 '24 08:01 ZaptorZap

We do plan to return to offline capability, but it's a bit in the future. The coming release of tetrio-desktop will not have it, but the one beyond may. The original implementation of the feature was honestly halfassed and barely functioned, and as such we want to do it properly, which takes a bit of actual thinking :) The plan is also that we could distribute versions of TETR.IO Desktop that are preloaded with a certain build of the game, both if you want to just have everything downloaded at once, and to be able to save that somewhere and install it offline. That way, the solo modes can be preserved into the future as well.

o5k avatar Feb 21 '24 20:02 o5k