Showing screen loaded with live update with Monarch

Is there a way to load a collection proxy with live update and then show it as a screen with Monarch once loaded? I get this error when I try:

ERROR:GAMESYS: The collection /main/loading/loading.collectionc could not be loaded since it was already. Message 'async_load' sent from screens:/loading#screen_proxy to screens:/loading#collectionproxy.

Yes it should be possible. Can you put together a small example and I’ll see if I can fix it for you?

1 Like

Yes, thanks!

MonarchLiveupdateTest.zip (4.0 MB)

In your example project you do:

if self.resources_pending == 0 then
    msg.post(message.resource, "load")

This would start loading the collection proxy. This is something you should let Monarch do. Why not replace that snippet with:

if self.resources_pending == 0 then
    monarch.show("loading")
2 Likes

Perfect, that makes sense now! Thanks a lot.