I’m still having an issue with LIVE UPDATE.
I have a game that have different levels, they are excluded from the build.
Version1: contains level A
Version2: contains level A,B
User installs Version1, download all floors properly.
User updates to Version2.
User downloads but can’t access level B.
Errors is the following:
WARNING:RESOURCE: Unable to create resource:
/worldmap/floors/2/floor_2_generated_0_generated_0.spinemodelc: DDF_ERROR
05-18 11:10:42.714 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_0.goc: DDF_ERROR
05-18 11:10:42.714 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_1_generated_0.spinemodelc: DDF_ERROR
05-18 11:10:42.714 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_1.goc: DDF_ERROR
05-18 11:10:42.828 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_3.goc: IO_ERROR
05-18 11:10:42.859 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_6_generated_0.spinemodelc: DDF_ERROR
05-18 11:10:42.859 24265 24309 W defold : WARNING:RESOURCE: Unable to create resource: /worldmap/floors/2/floor_2_generated_6.goc: DDF_ERROR
(floor 2 is the name level B in my project).
How to fix that situation? I’m guessing the problem comes from the manifest.
I put this code:
elseif message_id == hash("attempt_download_manifest") then
local base_url = get_base_url()
local MANIFEST_FILENAME = "liveupdate.game.dmanifest"
http.request(base_url .. MANIFEST_FILENAME, "GET", function(self, id, response)
if response.status == 200 or response.status == 304 then
print("verifying and storing manifest " .. MANIFEST_FILENAME)
resource.store_manifest(response.response, store_manifest_cb) -- <2>
else
print("Failed to download manifest: " .. MANIFEST_FILENAME)
end
end)
But it’s never called. Should I download the new manifest manuallly? Should I do it before or after downloading the new resources?
Thanks for your help