# \[SOLVED\] Help to understand loading system in Defold

**URL:** <https://forum.defold.com/t/solved-help-to-understand-loading-system-in-defold/74595>\
**Category:** Questions\
**Created:** [October 19, 2023, 4:00pm UTC](https://forum.defold.com/t/solved-help-to-understand-loading-system-in-defold/74595 "2023-10-19T16:00:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gamedevshrimp](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gamedevshrimp/32/44402_2.png) [@gamedevshrimp](https://forum.defold.com/u/gamedevshrimp)\
**Post date:** [October 19, 2023, 4:00pm UTC](https://forum.defold.com/t/solved-help-to-understand-loading-system-in-defold/74595/1 "2023-10-19T16:00:41Z")

</div>

Hello, dear Defold community!  
I’m trying to understand how the loading system works. I saw and repeated [this official tutorial](https://defold.com/tutorials/colorslide/) also I saw [this example](https://github.com/britzl/publicexamples/tree/master/examples/menu_and_game)  
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](https://forum-defold-uploads.b-cdn.net/original/3X/4/5/456b05506bba429fb8c1fd37f977d8f41aea771f.png)

In this script, I write the code

```lua
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  
 ![Screenshot 2023-10-19 at 17.57.16](https://forum-defold-uploads.b-cdn.net/optimized/3X/5/c/5c5846a9ae0bfd1e523bd0dc5328576c6b1b63d6_2_690x28.png)

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

---

<div class="post-metadata">

**Author:** ![Potota](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/potota/32/33404_2.png) [@Potota](https://forum.defold.com/u/Potota)\
**Post date:** [October 19, 2023, 5:05pm UTC](https://forum.defold.com/t/solved-help-to-understand-loading-system-in-defold/74595/2 "2023-10-19T17:05:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gamedevshrimp](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gamedevshrimp/32/44402_2.png) [@gamedevshrimp](https://forum.defold.com/u/gamedevshrimp)\
**Post date:** [October 19, 2023, 5:57pm UTC](https://forum.defold.com/t/solved-help-to-understand-loading-system-in-defold/74595/3 "2023-10-19T17:57:21Z")

</div>

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