learningdesign's Forum Posts

  • 5 posts
  • So I found "initialValue" for params which I can use to pre-populate my action params with "Browser.QueryParam(\"teacher_email\")". And this works great on a new project where I add the Browser plugin before my own plugin.

    But.... if I have games with my plugin already added but without the browser plugin and I try to update, I cannot open my project. This seems very fragile.

    So I am trying to test if the Browser instance exists with - typeof(Browser) === "function" ? Browser.QueryParam("teacher_email") : "" ... and it seems I cannot put any logic operators in initialValue. Any thoughts on that would also be welcome.

  • Hi, I have a plugin that sends logging data to our server that we use in all of our games. Now I want to add some data to the logs that is passed in through the query params on the game url. Since web workers don't have access to the window object (and hence query params), I have figured out how to do this in the editor by putting "Browser.QueryParam("my_query_param") into an action param... this can then get passed into my log.

    But 1) I would rather avoid having to paste this bit of javascript into every event action. and 2) I would also love to not depend on the Browser plugin.

    If anyone has thoughts on A) how to access the window object from anywhere in the plugin code or B) call a script that is included in the plugin file-list that could access the query params and store them on globalThis or C) call the Browser plugin from my plugin code... I would appreciate it.

  • Thanks Blackhornet. The second copy of the version number turned out to be the problem... and then I found that not syncing up the two copies of the plugin id caused a different issue where you can't load any games that reference the old id or the new id (requiring you to clear your browser cache and syncing the two names). This seems like a bad design to require two copies of the same variables.

  • The instructions I am following for updating the bundled addon are at this link, btw - construct.net/en/make-games/manuals/construct-3/tips-and-guides/installing-third-party-addons ... and the right click option to update doesn't show up.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi, I have an addon that I am updating. I have tried to replace it in my environment in two ways, but neither works. When I refresh the old version number is still there.

    I have gone to addon manager and imported the revised addon and it gives me a dialog saying your addon is updating from version 1.0.0.0 to 1.0.0.2. Then I refresh and it is still 1.0.0.0

    I have also deleted the addon, refreshed, added the revised addon, refreshed, and it is still version 1.0.0.0

    What is odd is that I can change the name of the addon and see the new name but not the new version. But this is a problem because I have the old addon bundled in games that I am trying to update and when I go the project>view used addons list, I cannot right click and update my addon because it has the same version number.

    Any thoughts would be appreciated. I am wondering if there is a place in local storage that I need to manually clear out to get the right version in there.

  • 5 posts