rhg1968's Forum Posts

  • I don't have a way currently to get both directions, but my json manager plugin will take a js sub-object and convert it to a c2 array/dictionary.

    https://www.construct.net/make-games/addons/138/json-manager

    Don't know if this will help you or not.

  • I am seeing the same issue when exporting my game for android but only with the c3 runtime

  • If you have downloaded this plugin previously, please download the latest version 1.3.0.

    The internals of this plugin have totally re-written to fix scalability issues and export issues.

    1. No longer hooked into the Tick event, much more performant
    2. Now only one internal trigger event is created each time you send a message
    3. Removed all logic that was traversing included event sheets, much more performant
    4. Export issues have now been corrected

    https://www.construct.net/wf/make-games/addons/143/event-trigger

  • Ashley

    Final update on this. I am getting ready to upload the new version.

    All my testing looks good and export works correctly.

    I don't tie into the tick event at all anymore and I don't inspect the event sheets anymore. I found looking at how triggers work in the code that it really takes care of triggering events on the included event sheets.

    So the code is much simpler and cleaner and should hopefully suite peoples needs.

  • Ashley

    Just as quick update and a thank you to Ashley and chadorireborn,

    Based on your comments I looked at the problem a different way and I am no longer inspecting the events tied to a layout and my plugin is not tied to the tick event anymore. So far everything appears to be working but I have a bit more testing to do and then I want to make sure everything works upon export before I post the update.

  • I agree it's not optimal, I already have an idea on how to modify to improve it significantly.

    Just as a side note, it is not looping through all event sheets in a project, just the ones relevant to the current layout showing on the screen. Also on every tick it's decided whether to issue a trigger command. It's on the message send command that it currently looks through the event sheets to determine how many events it needs behind the scenes to carry out the logic to determine and handle event being processed possibly multiple times.

    But that is neither here nor there, it was my first stab at making this work since I prefer this type of event organization for my game that I am working on.

    I am working on the improvements now to remove the need to know ahead of time how many triggers are listening for a particular event.

    I hope to have the next version out soon.

    Also note because of the way I did it, it does not work upon export because I am referencing properties that don't exist in the exported runtime vs the preview runtime.

  • I will think about another way to achieve the same results.

    Thanks

  • Ashley

    In a plugin I made, that appears to work well in preview, I quickly parse included event sheets looking for certain events to set up the initial state of things before allowing the rest of the plugin logic to process.

    Just by exploring and trial and error I am, in the construct 2 runtime, using the deep includes to perform this operation. It works well in preview, but when I export to android it doesn't appear to be working.

    I was wondering are the deep includes the correct thing to look at to examine all event sheets referenced by the displayed layout ?

  • Figured it out. For the description place holder in the language file you have to use {...} instead of {0} for a variadic variable type

  • Ashley

    Just had a quick question. I am trying to use a variadic parameter type in an action, but I am unsure of how to adjust the display text with place holders to work without throwing an error. With just regular parameters I can {0}, {1}, etc... But it blows up on me if I use a place holder for something that could contain many values possibly. Or is it possible to use that type of parameter in an action?

    Any help would be appreciated. Thank you.

  • Great. I'm glad

  • Not sure what link you are looking for.

    I just uninstalled all if my plugins. Re-downloaded the plugin and sample from

    https://www.construct.net/wf/make-games/addons/138/json-manager

    I installed the plugin, loaded the example I downloaded and pressed F4 and it comes right up without any errors.

    Are there any additional error messages in the console ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I uninstalled all plugins that I have added to my construct, which is r104 also, and re-downloaded the plugin and the example. I installed the plugin and loaded the sample and it's running correctly.

    I looked at the error message and I'm not even using a TextEditor control.

    What other plugins have you installed ?

    Wondering if there is some conflict going on between plugins.

  • Do you get that error just starting the example or do you click on a button after it's running and get the error ?

  • I'll have to look into it. I downloaded both from the addon page and it worked. So not sure what is going on