GUI + Tutorials. Keep getting an error message. What am I doing wrong?

Hi all,

Working with the first four tutorials, trying to make my 194X clone.

I keep getting the following message:

R:GAMEOBJECT: Component ‘/main#gui’ could not be found when dispatching message ‘add_score’ sent from main:/instance0#star

Previously when I got a message something like this it turned out be an ‘a’ character with two little dots on top had crept into the call to main#gui (that took me AGES to spot).

I’ve some how managed to generate this same error message across different projects and different builds. What am I doing wrong?

Is it a problem with how I set up the main.gui, main.go, or how I attached those files to the main.collection?

Equally frustrating is that I have managed to get this to work with earlier projects. I’ve compared the old and the new and I can not spot any difference.

Any help or advice would be welcome.

Regards

Frank

If you select your collection and view it in the outline window, the GUI element will display the correct URL in the properties section. I’ve attached a screenshot. Your address will differ based on how you’ve named the elements. Then i just copy and paste this into the code.

1 Like

Hi all, and Andrew in particular,

That sorted it out. I’ve obviously not followed the process through properly and had named the GUI object incorrectly.

Thank you so much.

Take care.

Regards

Frank