Live Update with Multiple Projects?

Hi, I’m new to Defold and is currently considering using it for our next project. I came from Unity and was doing something similar to this link here: https://docs.unity3d.com/Packages/com.unity.addressables@1.18/manual/MultiProject.html

I was wondering if it’s possible to do something like this in Defold as well? As in, having one Defold project be the source project. Then, another Defold project will be the one that works on the content. Is it possible to use Live Update feature to do something similar, loading content made in the secondary Defold project in the main project? Any help is appreciated!

Yes, I believe that should be possible. We are no longer verifying the content that you load using Live Update and instead leave that to the developer. As long as there are no data format changes between the two projects (ie they are not using two different Defold version with a breaking change between them) you should be fine.

That’s really great to hear! Would you be able to point out how I should get start with this? Is there any specific settings for both projects that I should do?

I’m new to Defold but I feel like both projects should point to the same collection proxy, with both collection proxies being excluded. But for the source project, there is no need to publish a live update content as we will do this in the secondary project instead?

I have not tested any of this but in the source project I would have a main collection with a collection proxy pointing to the collection you wish to load in the second project. The collection proxy should have the Excluded checkbox checked so that it gets excluded and all of the references resources are collected in a zip file.

In the second project I’d have a main collection and a collection factory, initially pointing to a dummy collection. In a script I’d load the excluded content and mount it. Then I’d use collectionfactory.set_prototype() to the path to the excluded collection from the source project, which should be available from the mounted archive. Once set, I’d spawn an instance of the collection.

I think something like the above will work. You’d have to try it out yourself though.

1 Like