- This topic has 7 replies, 2 voices, and was last updated 2 years, 11 months ago by Jonathan Sandoe.
-
AuthorPosts
-
tomo@little-studios.co.jpParticipant
When I drag the attribute in the “CODAP Data Interactive Plugins”, I get an error message “b.sendMessage is not a function”.
Why do I get this error?
The error occurs in the following plugins.
.Performance Harness
.Ants
.Cart Weight
.Floyd’s of Fargo
.geiger
.Lunar Lander
.Markov
.Proximity
January 5, 2022 at 6:50 pm #6807Jonathan SandoeKeymasterHello,
I am looking into this. I will get back to you as soon as I am able.
Just to be clear, from what I understand, I think you are using the website, https://concord-consortium.github.io/codap-data-interactives/build/ and you are trying to click on a plugin name to open CODAP with that plugin. For example, if you click on “Ants”, you see this problem. Is that right?
I am curious what browser you are using and whether your computer is a Windows computer, Macintosh, or Chrome book.
Thank you,
Jonathan Sandoe
January 6, 2022 at 12:37 am #6810tomo@little-studios.co.jpParticipantThanks for your reply.
Yes, I am using a website called https://concord-consortium.github.io/codap-data-interactives/build/ and I am trying to open CODAP with that plugin by clicking on the plugin name.
I am using windows.
January 6, 2022 at 12:54 am #6811tomo@little-studios.co.jpParticipantWe are currently working on a plugin.
https://github.com/concord-consortium/codap/wiki/CODAP-Game-API-%28Deprecated%29
Using the API on this site, when I open the table with the initGame command and drag the attributes, I am getting an error “b.sendMessage is not a function”.
I asked if other plugins don’t give me this error, because I got the same error when I checked.
January 6, 2022 at 4:05 am #6812Jonathan SandoeKeymasterHello,
Ah, now I understand better. Thank you for clarifying. This looks like a bug to me. I will record it and we will see if we can get it fixed. The problem is the Game API. The plugins you listed all use the Game API. The Game API has been deprecated for many years.
If you are not too far along in writing your plugin, I would strongly recommend switching to the Data Interactive Plugin API(https://github.com/concord-consortium/codap/wiki/CODAP-Data-Interactive-Plugin-API). It is far more capable. The Game API is a one-way API. It can send data to CODAP, only. The Plugin API is bidirectional. In addition to the things you can do with the Game API, you can ask for data from CODAP and receive notifications about events.
Again, thank you for calling our attention to this bug, and I hope it is not too late for you to switch to the Plugin API.
Jonathan Sandoe
January 7, 2022 at 1:00 am #6816tomo@little-studios.co.jpParticipantThank you.
I’ll see if I can recreate it with The Plugin API.
January 7, 2022 at 7:34 am #6817tomo@little-studios.co.jpParticipantI recreated the plugin with The Plugin API, and the error no longer occurs.
Thank you very much.
January 7, 2022 at 6:24 pm #6818Jonathan SandoeKeymasterI’m glad this helped. Please let us know if you encounter other problems.
-
AuthorPosts
- You must be logged in to reply to this topic.