In-game expansion file download screen broken

Indeed there were two issues, but the first one (information screen being drawn partially off screen) has been solved for me since build #2248 (as Brent Sorrentino said earlier in this thread).

The second one is the real problem for me, and happens quite a lot. The main problem though is that the error message is vague and say “Restart Download”, even tough everything has already been downloaded. Clicking on “Restart Download” when user has a network connection starts immediately the game, proving that nothing was downloaded.

Would it be possible to just change this message?

I’ll try to create a test case when I have the time to do so.

This is what engineering had to say:

If you are seeing the “Restart Download” button, then that means the download didn’t finish or at least it thinks it didn’t finish.  This typically happens when you lose you Internet or WiFi connection during the download.  In fact, an alert message should have been displayed indicating so.  Also, when you upload your expansion file to Google Play, you should usually have to wait a few hours until it becomes available to download via Google’s licensing service.  Otherwise, it’ll fail to download.

Rob

I can produce the error on demand on all devices I’ve tried so far by…

  1. New install of game from Google Play

  2. Turn off wifi

  3. Run game - error comes up

Seems to me that it’s not a situation of “the download didn’t finish or at least it thinks it didn’t finish” - it happens every time you launch for the first time if you are offline. Certainly confirms that it’s a connectivity problem - still trying to work out why it happens for some users even when they claim to have good connectivity.

Interestingly, if I follow the process above, then turn wifi back on and go back into the app, hit Restart Download the game runs, but then comes up with this error. Who is “jenkins”??

Corona-FL-47954.jpg

Jenkins is automated build and testing software.

Please file a bug report so I can get Engineering to look into this.  Make sure to include that screen shot in addition to the code that will demo the bug and put it in a .zip file (with all necessary assets).  Also reference this forum post in the text as well.

Please post the bug case # back here when done.

Rob

In general, it can take up to four hours for Google to get your expansion pack out on all of it’s servers.

Rob

We have the same issue with google expansion file when you launch game for the first time.

Steps to reproduce:

  1. Upload apk with obb to google account

  2. Download game from google play: downloaded two files apk and obb just like in google documentation (Most of the time, Google Play downloads and saves your expansion files at the same time it downloads the APK to the device)

  3. Turn off network (3g, wifi etc.)

  4. Start game: corona show download screen with download error “Error contacting server”. But what are you trying to download if obb file have already downloaded by google play?

To solve problem you should enable any kind of network and tap restart download. After that game start without network just fine.

But if we click delete game data in Applications Settings for the game (delete only runtime created data and not obb) - the game will starting with error described above. So I suggest that corona get something from network to start application without network but it is not the obb file (I check that obb file is exist on sd card)

My guess about error is that corona trying to get name of expansion file (text from the post about implementing google expansion file support: In order for us to get the URL to download the expansion file, we have to go through Google Play’s Application Licensing Service) and can not get expansion name just to check if it is already exist.

After the first time you got valid expansion name you save it in game data and use it for offline check if obb already exist (second and next time game launching without network connection without any problems).

We have sent our application to designed for families program and google have declined our application with reason:

“Your app does not install and/or run reliably enough to be tested”

So maybe they installed application with apk and obb files.

Started the application without network and got “Error contacting server”.

Because with network application working fine for all devices we have tested on.

Filed bug case ?

Working on it Rob :wink:

I can create the demo code, but I’m not sure how I can test - do you want me to go through the motion of creating a new Google App and uploading? Seems a bit pointless when your guys will need to do that anyway?

Nathan.

I’m not sure how important the demo code is in this case.  It’s more about the steps to repo the problem, but we have to have something and it might get rejected without a project of some sort attached.   But they are going to want to see your licensing code and all the parts around it.

Rob

I think It would be great to understand how and when this happens and it reflects poorly on your app to have something like this appear.

I’m running 2511 and having the same problem with some users - the vague “Download Error - Error contacting server”. It seems that only some users face the problem, and it all started only after moving to an expansion file (> 50MB).

I really hope the Corona guys look at this and take a seriously as it’s impacting my ability to do business.

Nathan.

We need a reproducable test case in a filed bug report.  Even though if this is sporatic and only affecting some users, it could be networking problems between their computers and Google’s servers which we have no control over.

Rob

Thanks Rob - I’ll push the user for more detail.

The user is able to use the game on his tablet, but he’s consistently getting this issue coming up on Samsung Galaxy S3 mini running Kitkat 4.4.4

Are you using Graphics 1 compatibility mode or is this a Graphics 2.0 build?

Compatibility.

Well the original topic “file download screen broken” appears to be a problem for people using graphicsCompatiblity = 1 in their config.lua’s to keep using the old layout.  We don’t plan on fixing that.  The answer is to move to Graphics 2.0.  

But if this issue is different and it’s just about the communications issues, we will need a reproducible test case to give engineering.

Rob

My user does have good connectivity, but I guess there’s a chance it’s related to graphics compatibility. I’ll try to get him to do some more testing.

Nathan.

I’ve come across all these kind of problems (didn’t download and get the ugly restart download screen which doesn’t work, the licensed but doesn’t work, the version that worked and then after updating it is no longer licensed, the list goes on), and in most cases its due to the users.

Top of the reasons are not being connected (or having a solid connection) to the internet when they first launch the game, although I’m not sure if this is also the case with updates of a game.

Other reasons can include the connection to google servers which is usually terrible, users having messed up their files when they rooted their devices, right up to not having enough space on their device (even ahad a user complain so much until he finally realised his device date was wrong hence the reason he got a not licensed issue).

Key in replying to the users is to give them the basic 3 steps, download, install, launch first time (while connected). If they have issues, clear their google store cache first, then try the steps again.

But, since i only use graphics2.0 some of the issues you are facing might just be relating the graphics compatibility.