Problem with msg.post in runner tutorial (SOLVED)

Hi all,

In tutorial I get this error. What did i do wrong ?

The error message tells you that there is a problem sending a message because the url is wrong, which usually means that a game object is missing or given the wrong id. Please double check that the level.collection has the ground.collection added and named correctly.

It seems like that

Can you please expand the controller game object in ground.collection and double check that it has an id of “script”? I’m guessing that the id is “ground” and if that is the case you need to update your message post call:

msg.post("ground/controller#ground", "set_speed", { speed = self.speed })

Id of controller game object is controller and id of controller.script is controller

Ok I understand now. You mentioned about here. Thank you very much=))

That is not the script I was asking about. The /level/controller.script was the script that you showed in your original post right? That is the script trying to post a message. And it is trying to post a message to the controller on the ground.collection which is responsible for moving the ground.

2 Likes

Yes, you are right. I just figure it out.

Thank you a lot.

1 Like