COGames's Recent Forum Activity

  • Changing script type to classic works better than what I did. Now all my audio is working!

  • My latest builds on actual devices don't move on from the loading screen. I loaded an xcode project that I did successfully on Monday and it loaded fine. I go back and rebuild it with C3-Cordove-Xcode and then it hangs up on the loading screen. I make a simple C3 project to test, and that loads with no problem, all other more complex projects are hanging on the loading screen (except for those made prior to Tuesday). I thought it might me an issue with memory on my devices, but on my iPhone there is plenty of memory (my iPad was a bit tight).

    This is all making me think that something broke on Tuesday of this week with cordova.

    Edit to add:

    After fooling around with this, I noticed that in the projects Advanced settings, there were two things that were different from a NEW project versus an older one (not that old). They are 1. Use Worker and Cordova iOS scheme. The old default was set to: no and legacy. The new default is: auto and modern (app:). Once I changed to the new default way, the app loads.... BUT now there's no sound! :(

    Edited again!

    So now it seems you have to preload sounds or there is no sound at all.

  • Wow, I was just about to post this very question! I save a backup of a game, but now I'm testing this feature on an iPad and it will save it to a slot, but then I invoke a download (where I usually can select where to save it) and it won't do it.

  • Nothing other than address your local memory concern.

    Note the update feature has nothing to do with local memory.

    Ah, got it! Thanks! :)

  • When I say wipe out everything, I meant everything in the game folder, not my browser cache.

    Overwrites will happen only if there is exactly the same number of files and with same names

    I do this because Construct creates sprite sheets and gives them names without my input. It is possible that a different export will have more,fewer and/or differently named sprite sheets, so if your javascript files do not all update you get code pointing to a sprite sheet that is still there from the old version and a screen that makes no sense ( random sprites all over the place )

    So just to be safe, delete everything, then opload the new export

    I didn't think doing this was necessary. I do see the sprite sheets changing, but I just have to make sure to send them out to the server with all the other files. When I forgot, I did see strange things in the layouts!

  • Supposedly you can do all that via the Browser plug using "on update found", and "on update ready" followed with a "reload" given that you have uploaded a new offline.json with the new export.

    https://www.construct.net/en/tutorials/offline-games-construct-8

    I'm thinking that this being tied to the offline settings is causing some confusion.

    Here's a simple project to show the basic idea.

    Export and upload the project then add some content and re export and upload again.

    https://www.dropbox.com/s/joqtfag6eptv0jj/updater.c3p?dl=0

    I'm confused how this works. Shouldn't there be a line that checks the local memory to see if the browser should be reloaded?

  • I've been wiping everything before uploading a new version. I guess because of the way sprite sheets are generated they may be different in different exports while retaining the same file name. In that case things will look messed up ( Code pointing to images on a sprite sheet that now in the new version does not contain those same images, or in the same order.

    So, I really don't see a solution, if you really want to be sure everything works, other than having them download everything again with each new export. This should make sure all sprite sheets are correct and they will not lose any data saved in local storage since they are not clearing their cache.

    Of course they still may have to refresh the page once in a while.

    You really don't have to wipe out everything. If you export to HTML just overwrite your files and then open the game. If it didn't go to your latest and greatest, open F12 then hit refresh (Edge and Chrome). I used to always clear my browser, until I realized I could do this.

  • This is my fix for the caching problem (I'm still testing it and it seems to be working).

    Create an .htaccess file that will tell the browser not to cache certain files. I chose to not cache the following files with the extensions: css,html,js. I do want to cache my images and audio files.

    Make an .htaccess file (in the root directory of the export files - where the index.html file is) with the following code:

    RewriteOptions inherit

    # php -- BEGIN cPanel-generated handler, do not edit

    # Set the “ea-php56” package as the default “PHP” programming language.

    <IfModule mime_module>

    AddHandler application/x-httpd-ea-php56 .php .php5 .phtml

    </IfModule>

    # php -- END cPanel-generated handler, do not edit

    # DISABLE CACHING

    <IfModule mod_headers.c>

    Header set Cache-Control "no-cache, no-store, must-revalidate"

    Header set Pragma "no-cache"

    Header set Expires 0

    </IfModule>

    <FilesMatch "\.(css|htm|html|js)$">

    <IfModule mod_expires.c>

    ExpiresActive Off

    </IfModule>

    <IfModule mod_headers.c>

    FileETag None

    Header unset ETag

    Header unset Pragma

    Header unset Cache-Control

    Header unset Last-Modified

    Header set Pragma "no-cache"

    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"

    Header set Expires "Thu, 1 Jan 1970 00:00:00 GMT"

    </IfModule>

    </FilesMatch>

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If you have control of the server, and what ever method is used to point to the game, then a different directory is by far the most dependable method.

    Its also better for testing, version control, etc.

    The problem with doing it this way is, for people already using the game, the browser will set and get local memory from a new area, so they will be starting all over (unhappy customer).

  • Are you using a static page on your website or a CMS?

    I use a static page.

    I just made sure I had all the MIMES set (I do), thought that was it since two of the required ones were missing, but I'm still not getting a complete update (sometimes it's half updated or not updated at all). When I go into F12 I see this:

    And if I do a refresh when F12 is open, then everything loads. A refresh without F12 open does nothing.

  • I'm having a big problem with caching as well.

    I host games on my website and I have about 350-450 people playing these games each day. I noticed that when I do an update, I've been getting a lot of calls that the web apps are broken. Then I realized the caching problem (which I now see frequently on my side). I tell my customers to delete the browser's cache, however I use a lot of local memory and the player will lose a lot of stuff (not a happy customer). I realized that I can tell them to open up F12 and then do a refresh and it will completely update (in Chrome and Edge). But my players are not tech savvy and this is too much for them.

    I rename the project with every update, but sometimes parts update and other parts don't. So if I added a new sprite, it won't be there, but the new revision is listed. When I go into F12 and do a refresh, then I see the sprite. So, parts update and parts don't. Not good.

    This is driving me crazy. I would love to do updates, to give my customers weekly notifications of new things going on, but I can't risk breaking the app for them since my apps are tied to books, and when the apps don't work they can and will give a bad Amazon review (a bad risk to take).

  • I have wav files (from text to voice) and my new imports (using C3 r225) has them sounding muffled. The existing ones that were imported before the update are clear.

COGames's avatar

COGames

Member since 20 Dec, 2015

Twitter
COGames has 2 followers

Trophy Case

  • 8-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies