Skip to Content
defold-typescript libraries
indiesoftby

indiesoftby/defold-liveupdate-reszip/liveupdate_reszip_ext

HTML5 file loader used by Live Update ResZip.

  • GitHub: indiesoftby/defold-liveupdate-reszip — pinned to 1.7.0 (released while Defold 1.13.1 was current)
    1. Pick a release from indiesoftby/defold-liveupdate-reszip releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as liveupdate_reszip_ext from "liveupdate_reszip_ext"
  • Asset Portal: defold-liveupdate-reszip

Functions

liveupdate_reszip_ext.request_file(url: string, on_progress: function, on_error: function, on_load: function)

Starts an asynchronous file request. Available on HTML5.

Parameters

  • url: string — URL of the file to request.
  • on_progress: function — Called while the file is loading.
    • self: object — The calling script instance.
    • loaded: number — Number of bytes loaded.
    • total: number — Total number of bytes.
  • on_error: function — Called if the request fails.
    • self: object — The calling script instance.
    • error: string — Error message.
  • on_load: function — Called when the file has loaded.
    • self: object — The calling script instance.
    • data: string — File contents.

On this page