Switching Scenes and Message Communication issues

Hello!

I have been having some issues when trying to create a screen switch. Basically what I am trying to do is have it so that when I click on a gui, it switches to another collection. Here is the scripts that should be communicating:

Here is the error I am recieving:
Screenshot%20(7)

Most likely I will need to provide more screenshots of different things to allow you guys to assist in finding the problem. If you need me to provide anything in particular please ask.
Thank you all so much for your help!

Is the loading scene you are trying to pass message to already loaded by some other proxy.?

I think you’ve made a typo in your loading.script. In your load_main function you write

msg.post("go#mian", "load")

I think this should be

msg.post("go#main", "load")
4 Likes

This was an issue in my code, but it did not fix the problem. I really appreciate the in depth look at the code that was written, but it did not seem to fix the problem. Are there any other screenshots you might need to help? :grimacing:

What may help is that I am referencing this video starting at the provided time stamp.

Can you add print(msg.url()) in loading.script->init() and show me result, pls

I added print(msg.url()) into the loading.scrip init() function:

And I am getting the same error as shown above. Did I insert the print(msg.url()) correctly?

Yes, you inserted it right, but could you show me the result of the print() function from the console, please?

Here is the console up until the error occurs.

The “click” debugs are what I did separately

Did you add loading.script to the gameobject?
I don’t see my print(msg.url()) on your console screenshot.

Yes, I have the script attached to the game object.

This seems to be a strange issue, if you need any more screenshots please let me know. And thank you again for your extensive help!

I wanna know collection name. I need a result of my print function or tap to Collection (from last screenshot) and show me Properties

This is the collection that has the loading.script attached to it:

This error possible if you are using the wrong url (typo in URL/object or collection was removed/collection never exist).
print(msg.url()) - in init method would show you right path.
If you didn’t see this print() in the console, that means that your collection wasn’t created. Are you sure that you create “loading” collection using collectionproxy or set as the main collection in game.project?

That might be the issue, but I’m not sure how to tell if loading collection has been created. I set it as the main scene just to test it but the error still appeared… I am also not sure how to check if the URL is correct either…
:confused: