rhg1968's Forum Posts

  • Ashley

    Thank you !!!!!

    I will take a look at it a little later. I appreciate you getting back to me and I am really loving Construct 3

  • zjc121

    Found your issue

    This caught me also when I started with my first plugin.

    You did everything right copying the id to the right places, but there is one exception to the rule.

    In the en-US.json file the plugin specified needs to be all in lowercase. This is the only place this is required. Once I did that your plugin loaded up without issue.

    Also I would suggest using a good editor like visual studio code

  • zjc121

    The easiest thing to do is to probably zip up the files and put it on one drive,google drive,etc...

    Than make the folder you put it in accessible and put the link in the forum.

  • zjc121

    I would need to have you attach the files you modified so I can see what is wrong. How the files map to eachtoher through keys is very important. Also when setting the display text of an item, you have to include tokens for each parameter that you add/remove to the item. If you have 2 parameters, then the display text must have 2 place holders somewhere in the text like {0} {1}.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can appreciate that, but I am looking for an example of how to implement looping in the new runtime with re-triggering. I have my plugin work well, to the best of my knowledge :), in the old runtime. I would like to make it compatible with the new runtime. If I need to wait, I'll put that task to the side for now.

  • It's been 3 days and I would really like some direction on how to implement looping in the new runtime. I was able to figure it out looking at examples on the old runtime, but haven't had much luck with the new runtime.

    I also again want to make the suggestion that there should a api reference page where you look up all public apis and brief descriptions on their use.

    Even the old construct 2 sdk documentation doesn't list all of the available methods you need to accomplish tasks.

  • Ashley

    Any help on this would be greatly appreciated. I have the construct3 old runtime of my Json Manager working, but I am stuck on the new run time version.

    To complete the C3 on the old run time was only possible by looking at examples of others since I couldn't find any api documentation to help me understand re-triggering in a looping structure that I did implement in my plugin.

    But now moving to the new run time I can't find any api documentation or examples of others that have implemented a looping condition. I tried inspecting the objects in the chrome debugger and calling the methods I thought were correct, but I am getting errors.

    Is there any guidance on this or better yet an example of this being implemented in the new run time ?

  • I just created a dummy project and read that url in using ajax and then populated the array.

    I then used the browser control to disply Array.At(0) and I get 1. So it appears to be working

  • Are you using the ajax control to get the data string first ?

    Once you get the data/string from the ajax call, you load the array with the string you just got.

  • Do you see any error messages in the console ?

  • I also created a json manager plugin that is on the add on page that can load a standard json file and then output a portion of it to a c3 array and c3 dictionary.

  • The general format is correct for C3. Everything is specified as 3d array basically. Here are examples

    3d

    {

    "c2array": true,

    "size": [ 2, 3, 4 ],

    "data": [ [ [ 100, 200, 300, 400 ],

    [ 101, 201, 301, 401 ],

    [ 102, 202, 302, 402 ]

    ],

    [

    [ 110, 210, 310, 410 ],

    [ 111, 211, 311, 411 ],

    [ 112, 212, 312, 412 ]

    ]

    ]

    }

    2d & 1d, depending how you look at it

    {

    "c2array": true,

    "size": [ 1, 4, 1 ],

    "data": [ [ [ 1 ],

    [ 2 ],

    [ 3 ],

    [ 4 ]

    ]

    ]

    }

    {

    "c2array": true,

    "size": [ 4, 1, 1 ],

    "data": [ [ [ 1 ]

    ],

    [

    [ 2 ]

    ],

    [

    [ 3 ]

    ],

    [

    [ 4 ]

    ]

    ]

    }

  • I am using this.runtime.getProjectFileUrl in my plugin to load files that are included/imported into the project. Which works great in preview mode, but I am noticing some issues in the export that I would like to know if anyone else has some suggestions.

    When exporting to android it stopped loading the files, so I decided to export to html so I could easily see what may be going wrong.

    On the Html side the imported files are just exported in the root directory of the zip file generated by construct 3, not in any subfolder.

    When stepping through this.runtime.getProjectFileUrl function it sets the path to file to media/filename, which of course it can't find the file in that location.

    If I modify the path in the debugger it works.

    So my question is, when exporting projects that have imported files, should they be put in the appropriate subfolder by construct 3 or is that something we have to manage ?

    Note: I am also assuming that something similar is going on with the android export.

    Note Note: I know I could check if I'm in preview mode and not use that function and just the filename that it'll work since it's in the root.

    Any suggestions would be appreciated. Thanks...

  • Ashley

    I currently have completed my C3 plugin, JsonManager, running on the old run time. I am struggling to get it working on the new run time. My main issue is that I can't seem to find documentation of all of the exposed public api's. Looking through the docs I can't find anything on retigger, getting the current event, etc... I was able to discover some of this in chrome debugger but my call in the new run time fails on the Retrigger method in my loop. With the old runtime for C3, the retrigger method works as expected.

    So my question, finally :), are there spots in the documentation I am missing or example plugins I can look at in the new run time that implement looping ?

    My suggestion is can you guys also create just an api page that has all of the public facing apis listed with links to details on each one.

    Just wanted to throw this out there.

    Also just wanted to throw another comment in here that I really love construct 3 and keep up the great work.

  • The addon page has been unavailable with a 500 error for a couple of days now.