Problem with proxy example (SOLVED)

Hello,
just started learning Defold and Lua, and decided to start with trying to replicate some of the examples to get the hang of it. Started with the Splash example, worked, Lua feels nice, good. Then I tried the Proxy example at
defold dot com /examples/collection/proxy/
but didn’t manage to get it to work, getting this:

ERROR:SCRIPT: main/menu.gui_script:8: Could not send message ‘show_level1’ from ‘default:/go#menu’ to ‘proxy:/controller#controller’.
stack traceback:
[C]:-1: in function post
main/menu.gui_script:8: in function <main/menu.gui_script:5>

tried multiple times starting from scratch with empty project, but happens the same, stuck on menu.collection that gives same error. Compared to the previous example mentioned, I noticed the first one for the splash screen, does preload and unload collections, but the proxy example does not, is that normal? And what am I doing wrong?
Thanks in advance

Just a guess: your bootstrap collection needs to be named “proxy”:
Screenshot 2023-02-14 at 16.57.30

5 Likes

That’s it! Was still named main because I renamed the default bootstrap collection to proxy.collection to fit the example, but not inside the collection itself.
Thanks

1 Like