# Live update doesn't work when reopening the game

**URL:** <https://forum.defold.com/t/live-update-doesnt-work-when-reopening-the-game/74887>\
**Category:** Bugs\
**Created:** [November 8, 2023, 11:13am UTC](https://forum.defold.com/t/live-update-doesnt-work-when-reopening-the-game/74887 "2023-11-08T11:13:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandr\_Chizhevskiy](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/alexandr_chizhevskiy/32/28687_2.png) [@Alexandr\_Chizhevskiy](https://forum.defold.com/u/Alexandr_Chizhevskiy)\
**Post date:** [November 8, 2023, 11:13am UTC](https://forum.defold.com/t/live-update-doesnt-work-when-reopening-the-game/74887/1 "2023-11-08T11:13:33Z")

</div>

Hi!  
I’m have an issue with the live update. I already implemented this for a previous game over two years ago and it worked great. But not now.  
The game is HTML5 - it uses resources for locations. After clearing the cache, the first load works perfectly - only the necessary resources are loaded, and there are no errors.

 ![Снимок экрана 2023-11-08 в 13.03.23](https://forum-defold.b-cdn.net/uploads/default/original/3X/6/c/6c0954beff30a8c521ee8f8c7a35fceb047cef7e.png)

However, when I try to load it again, errors occur during the game initialization

 ![Снимок экрана 2023-11-08 в 13.05.10](https://forum-defold.b-cdn.net/uploads/default/original/3X/d/b/db19c08145bb7e207895b0094f5452ccae14e35d.png)

and then errors also occur after the resource loading.

```lua
liveupdate.store_resource(manifest, response.response, message.resource_hash, resource_store_response)

```

 ![Снимок экрана 2023-11-08 в 13.01.13](https://forum-defold.b-cdn.net/uploads/default/original/3X/c/0/c0edde36a3f8c04ffc10d97e08f6d56b22f4d291.png)

When I first open the game, I load only 1 location out of 10. After opening it, it feels like the game thinks that all locations have been loaded and then reports that it can’t find them.

If the game loads all locations at once, such a problem does not arise, but the reason to use live update is lost for us ☹

Thanks for any help!

```lua
[liveupdate]
mode = Zip
zip-filepath =
publickey = /manifest.public.der
privatekey = /manifest.private.der
supported-versions = 

```

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [November 8, 2023, 2:15pm UTC](https://forum.defold.com/t/live-update-doesnt-work-when-reopening-the-game/74887/2 "2023-11-08T14:15:56Z")

</div>

Hi @Alexandr_Chizhevskiy !

It’s unfortunate that this seems not to be working.  
I must have done something when refactoring recently.

I need to spend some time to figure out why it didn’t work out-of-the-box for you.

However, we also want to move away from the “store\_resource()” api, and instead promote downloading / mounting .zip files. We consider that old api to be deprecated.

It’s less code to maintain from the user’s perspective (and a lot less in the engine). Eventually, we’ll want to remove the old api. But, we have some features we need to implement first before we feel comfortable in doing that.

If you have a small repro example I can test with, I’d be very grateful, as it will same us a lot of time.
