[Solved] Problems with game updates

0 favourites
  • 6 posts
From the Asset Store
five golem elements Sprites Sheet.Best for enemy or villain game characters.
  • Hi,

    I have read https://www.scirra.com/tutorials/70/off ... onstruct-2 but I have still some poblems.

    When an update is ready I show a text to say the user to reload the page.

    When, after uploading new files, I open the site I get these requests on apache:

    "GET /offline.appcache HTTP/1.1"
    "GET /index.html HTTP/1.1"
    "GET /offline.appcache HTTP/1.1"[/code:zswy6o7i]
    [b]After this the text to reload the page is showed. Until here is all working.[/b]
    Now this happens:
    I hit reload and on apache I can see that only images files and offline.appcache file are requested.
    No js or html files are requested to the server but is still loaded from the cache.
    So the game is not updated (maybe images are, but I did not change those so I can't know).
    Can somebody help?
    Thank you!!!
  • Make sure that your offline.appcache is getting updated with your client.

    Also make sure that you have browser caching disabled (in the settings or you can temporarily disable it in most debuggers -- like Firebug). I use like four different browsers one of which has all caching completely disabled.

  • Hi gumshoe2029,

    Thank you for your answer.

    I'm sure offline.appcache is updated (and in fact the text to reload the page is showed). In offline.cache there is also a list of all files needed to be refreshed (I think) including js files.

    If I clear my browser cache I have no problem. But I need to make it work for everyone. I can't ask users to manually clear their cache or to disable browser caching.

  • You use the Browser object to update, it's all mentioned here in the 'Updating your game' section :

    https://www.scirra.com/tutorials/70/off ... onstruct-2

  • plinkie,

    that's what I was doing. For some strange reason (maybe a particular browser setting) it was not fully working.

    Since I cleared browser cache one time it started working like a charm.

    Thanks and sorry for bothering!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another possible solution:

    http://stackoverflow.com/questions/1922 ... lear-cache

    Adding version numbers to all of your CSS/JS files seems to be the best way to ensure that the clients have the latest version.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)