Not able to pass message to another collection (SOLVED)

I’m having some difficulty in passing a message between a gui_script within a ‘main’ collection…and a script within a ‘level1’ collection. This is the error message I’ve received. I inserted a couple print statements in the destination script to confirm the url. Any assist would be most welcome. Thanks!

ERROR:SCRIPT: /main/scripts/main_menu.gui_script:111: Could not send message ‘start_nextGame’ from ‘main:/controller#main_menu’ to ‘level1:/game_level1#level1_main’.
stack traceback:
[C]: in function ‘post’
/main/scripts/main_menu.gui_script:111: in function </main/scripts/main_menu.gui_script:93>
DEBUG:SCRIPT: msg.url of level1_main.script
DEBUG:SCRIPT: url: [level1:/game_level1#level1_main]

Are you sure the level1 collection is loaded when the message is posted? Have you ensured that you’ve received a proxy_loaded message before trying to post messages to any game objects in the collection?

1 Like

Thanks! I should have thought of that. All fixed.

How did you go about solving this? I am having the same problem.

Hi – recommend you take a look here…it’ll explain how a proxy_loaded message was handled.

http://www.tactxstudios.com/_7_Levels.html

2 Likes

Hello, @Jimbo_Evans
I think the problem was about Collection Proxy. Take a look at the manual how to load and unload a collection:

If you’re having problem to pass messages through Game Worlds you can take a look here:

I hope it helps

1 Like