[SOLVED] Help to understand loading system in Defold

Hello, dear Defold community!
I’m trying to understand how the loading system works. I saw and repeated this official tutorial also I saw this example
But it’s still unclear to me, I am not a programmer.
So, I made an entry point, GO that contains two ‘collection proxy’ components.

Also, I made a script. You can see the outliner on the screenshot

Screenshot 2023-10-19 at 17.53.42

In this script, I write the code

function init(self)
	msg.post(".", "acquire_input_focus")
	msg.post("#collection_menu_loader", "load")
end

function on_message(self, message_id, message, sender)
	if message_id == hash("proxy_loaded") then
		print("proxy_loaded", sender)
		msg.post(sender, "enable")
	end
end

And… It works! Yes, my collection loads… but the debugger says about an error

I can’t understand, where I made a mistake.
Hope you will help me

That error is coming from somewhere in the main menu script in the collection_menu_loader collection.

1 Like

oh yes! I found the mistake! collection_menu_loader tried to load another wrong collection. Thank you for your answer