How do I get project to update?

0 favourites
  • 15 posts
From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • I've exported my project to my site and it works well, but when I try to upload a new version, the old one still opens in the browser even if I remove the cache, hard reset etc... I'm guessing it has something to do with the offline features but I'm not sure how to get my project to update to the new version.

  • If it was for my own testing purposes, and I ran into this, I just added an url paramater.

    like

    https://someurl.com/game/index.html

    to

    https://someurl.com/game/index.html?foo=bar

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not for testing though, it's at the url where it's going to stay. I don't even care if it's available offline or not. Can I just remove the offline support or something? I need to be able to update to the newest version.

  • It's browser dependent, each visitor will have his or her own setting and tools before it renews the cache. Generally sites will be newly downloaded to update cache every so often.

    Your suposed to be able to speed things up by pressing ctrl + f5 , which forces a refesh for a new download.

  • yeah, but unfortunately ctrl f5 isn't working, and I've tested in chrome, firefox and edge over a 2 1/2 day period and still no updates anywhere. There must be a way to force an update or something.

  • Odd ... Should work.

    Did you try an url add to see if it worked at all?

    Just ad ?a=1 or something behind index.html in the url.

    That should definitely work.

  • it doesn't

  • You sure your trying to open the right url or uploaded it to the correct folder or even exported the right version ?

  • Yes, I'm positive. I can open on another computer and see the correct update (if it's loading for the first time)

  • Is there a way to just get rid of the offline part so it will load the updated version every time? I really need to get this worked out.

  • You could use the Browser-function/plugin to Update your game... You can make an auto-update.

    Perhaps this is helpful: https://www.scirra.com/tutorials/70/off ... onstruct-2

    The Browser can register if there's a newer version of the game compared to the version that is in the cache, and then update the game.

    I use this to update my games.

  • Soulmachine I tried that but I couldn't get it to work. Maybe I'm doing it wrong, I didn't really understand the tut very well.

  • I think the reason it may not be working is because it's not the newer version with the browser plugin added that is loading, it's still the old one.

  • So I deleted offline.appache, offline.ja and offlineClient.js and everything updated right away. Are there going to be any ill effects, other then not loading offline?

  • Construct 2 games updates automaticly in the background but the update will not show until you have reloaded the game in the browser.

    You could use the "Browser" On Update Ready...

    And use that to show a reload-button, that reloads the browser when clicked.

    Kind of like this:

    This is the simplest way I can think of to do it.

    The downside is that - the player may have started the game and played for a while when the refresh-button gets visible. And if the player clicks it, all game progress will be lost.

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