Resource load question

Hello!

I am creating an episode-style game, and each episode has its own resources.

I am updating a new version of apk when new episodes are added. But I think this is very inefficient in the long run.

So what I think is the way to save the added episode’s resources to the server and load them without updating the apk version.

Is this possible? Or is there a better way to do it?

This may be possible to do with https://www.defold.com/manuals/live-update/ but it’s not something I’ve tested yet so others who have used it can say for sure.

If it does work it will cost you $$ to deliver the episodes unless you find a way to not pay for the bandwidth. It’s probably better to let the user update from the official store, notify them that there is an update / tease them with what’s new and cool if they do update. It used to be more of a pain to publish updates because the review process would take a while but now it’s generally faster on iOS and Android it’s more instant.

1 Like

The current version of live update let’s you exclude content from the application bundle and download it at some later time while the user is playing the game. It does not allow you to add content that wasn’t known to the game at the time of bundling. The next iteration of live update, scheduled for later this year, will allow you to add new content or even replace existing content.

1 Like

Thank you for answer :slight_smile:

Is it possible to do the above using resource.load and resource.set_texture? If it is not stored in the bundle, it will be loaded from my private server.

Not resource.load() from an external source, but you can load data from somewhere using io.open() and io.read() and once you have the data loaded as a string you can create the correct type of buffer using buffer.create() and set that as a texture. If you load png data you can either use image.load() or my PNG extension.