Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken HTML5 liveupdates #7239

Closed
ze0nni opened this issue Dec 22, 2022 · 2 comments
Closed

Broken HTML5 liveupdates #7239

ze0nni opened this issue Dec 22, 2022 · 2 comments
Labels
bug Something is not working as expected live update Issue related to the Live Update feature

Comments

@ze0nni
Copy link

ze0nni commented Dec 22, 2022

Describe the bug (REQUIRED)
A clear and concise description of what the bug is.

To Reproduce (REQUIRED)
I make example project with by problem https://github.com/ze0nni/lines2

In firefox and chrome i have following errors

WARNING:RESOURCE: Unable to create resource: /_generated_394e0e463ac3aa9.spritec: IO_ERROR [dmloader.js:524:37](http://127.0.0.1/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /_generated_b9f8824dea3dbda5.goc: IO_ERROR [dmloader.js:524:37](http://127.0.0.1/dmloader.js)
ERROR:GAMEOBJECT: Could not instantiate game object from prototype /_generated_b9f8824dea3dbda5.goc. [dmloader.js:525:40](http://127.0.0.1/dmloader.js)
WARNING:RESOURCE: Unable to create resource: /zone/zone_0001_rio.collectionc: FORMAT_ERROR [dmloader.js:524:37](http://127.0.0.1/dmloader.js)
ERROR:GAMESYS: The collection /zone/zone_0001_rio.collectionc could not be loaded. [dmloader.js:525:40](http://127.0.0.1/dmloader.js)

Problem disappears if change rio_bg.png to some other image

Defold version (REQUIRED):

  • Version 1.4.1

Platforms

  • HTML5
@ze0nni ze0nni added the bug Something is not working as expected label Dec 22, 2022
@britzl britzl added the live update Issue related to the Live Update feature label Jan 5, 2023
@britzl
Copy link
Contributor

britzl commented Feb 8, 2023

Looking into this now.

@britzl
Copy link
Contributor

britzl commented Feb 8, 2023

@ze0nni I'm not able to reproduce this using your test project.

  • Using Defold 1.4.2
  • Building your sample project for HTML5
  • Unpacking excluded content into folder named updates in the webroot of the build
  • Files hosted using local webserver: pyhton -m http.server
  • Open localhost:8000 in Chrome. Enabled developer console. Check console.

Log from Chrome:

INFO:GRAPHICS: Initialised graphics device 'opengl'
dmloader.js:524 INFO:ENGINE: Defold Engine 1.4.2 (8cd3a63)
dmloader.js:524 INFO:ENGINE: Loading data from: dmanif:game.dmanifest
dmloader.js:524 INFO:ENGINE: Initialised sound device 'default'
dmloader.js:524 WARNING:GAMESYS: Function 'resource.get_current_manifest' is deprecated. Please use 'liveupdate.get_current_manifest' instead.
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/e9db3478650e791d10741fec9786ff41ae96c67c
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/6073ff5de0f2990eb8183793e5aa807d18304844
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/e202b371e70231df64241b28895b5f8e8df30697
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/1cc01921af3242635222dba29e4afe859f660427
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/11c74eeb0fb2a509f90d298982f398329bb507b1
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/f5df0b3fa81237df4d3e54ee3d8c9b23d84516fb
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/cc32799bf8e6392f0f789461d66a77bd67167a59
dmloader.js:524 DEBUG:SCRIPT: Request ./updates/c0d7c81a4c001d0372b593edeb27998261a95cd8
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 8
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/e9db3478650e791d10741fec9786ff41ae96c67c 200
dmloader.js:524 WARNING:GAMESYS: Function 'resource.store_resource' is deprecated. Please use 'liveupdate.store_resource' instead.
dmloader.js:524 INFO:LIVEUPDATE: Live Update archive: /data/.c6fd3870c86e7422a0146e1e2a052437fb8e51e2/liveupdate.arcd
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/1cc01921af3242635222dba29e4afe859f660427 200
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/6073ff5de0f2990eb8183793e5aa807d18304844 200
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/e202b371e70231df64241b28895b5f8e8df30697 200
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 7
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 6
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 5
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 4
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/f5df0b3fa81237df4d3e54ee3d8c9b23d84516fb 200
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/cc32799bf8e6392f0f789461d66a77bd67167a59 200
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/c0d7c81a4c001d0372b593edeb27998261a95cd8 200
dmloader.js:524 DEBUG:SCRIPT: Responce ./updates/11c74eeb0fb2a509f90d298982f398329bb507b1 200
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 3
[Violation] 'requestAnimationFrame' handler took 84ms
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 2
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 pending for 1
dmloader.js:524 DEBUG:SCRIPT: Zone:0001 start loading
dmloader.js:524 DEBUG:SCRIPT: Collection proxy loaded: Zone:0001
dmloader.js:524 DEBUG:SCRIPT: complete task: collection_proxy
dmloader.js:524 DEBUG:SCRIPT: complete task: co

@britzl britzl closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected live update Issue related to the Live Update feature
Projects
None yet
Development

No branches or pull requests

2 participants