Showing screen loaded with live update with Monarch

#1

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.
0 Likes

Collectionproxy.missing_resources cannot called with other collection
#2

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

#3

Yes, thanks!

MonarchLiveupdateTest.zip (4.0 MB)

0 Likes

#4

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

#5

Perfect, that makes sense now! Thanks a lot.

0 Likes