Jase00's Forum Posts

  • Interesting and useful to know, I'll stick to decision to pay for the development of that nwjs node module plugin. It does sound much cleaner with Webview2 overall, hopefully it evolves soon enough.

    Lacking the knowledge of how this all works, don't suppose there's any sort of interactivity between Webview2 and the local machine, similar to how "node modules" provides interactivity beyond the NWJS window?

    The node-module plugin I was hoping to acquire would essentially communicate with a local application that the user would have running in the background (the app coming from an official company).

    Again I lack the knowledge, but lets assume this company provides a C++ API to communicate with their official local app. Could there be a way for C3 Webview2 exports to take advantage of this and allow us to do API calls through C3 events, thus communicating with an application on the user's local machine?

  • I took a peek at your project - Just a guess from a quick look, but, I think perhaps LocalStorage is being used incorrectly.

    Usually you would use a "Get Wardrobe4" action within your "On Created" event (You can then use "Wait until previous actions" and then set the bee animation, all in 1 event, no need for triggers!)

    Currently, the only "Get Wardrobe4" event is placed within a LocalStorage trigger event. Trigger's will never run unless an action elsewhere prompts the trigger to run

    If you have Discord, I am happy to try and help out, and there is also the community Discord where you might find some assistance too.

    EDIT: On more thinking, if you did use "Wait until previous actions", then that wouldn't take into account "On Exists" failing - Perhaps it's worth setting a default value for LocalStorage at the start of layout, so it will always have a value and will never need to check "On Exists".

  • > Would Electron be a worthy temporary solution until WebView2 is supported on all desktop OS's? Though I guess this would just move us to a bunch of different potential issues, or maybe even the same exact issues as NWJS. Or maybe another alternative altogether, just to tide us by if NWJS is not seeming to resolve major issues?

    I don't understand why you decided to discard this idea. Electron is still the industry leading standard and widely used to distribute desktop apps with many active developers and guaranteed long-term support because of its community.

    Node Modules which the Greenworks addon relies on aren't supported by Webview2 either. I'm not aware of any alternatives besides using the feature incomplete Steam Web API.

    Ashley I'm aware that this could be one of those "grass is greener" situations but has this ever been on the radar for Scirra? Electron is feature complete, supported by Greenworks and has on-par performance with Webview2.

    Very good point, later this year when my finances are better, I was planning to spend money for a 3rd party dev to create a node module addon, they've looked at this and said they can do it, but I did not consider this at all - that I could pay for this but subsequently lose this and all ability to achieve what this plugin could achieve if WebView2 was the only export option. (If nwjs was deprecated but still possible to export to, then, well, I would rather not use it, I want to be up to date and using the most recommended approach that works best - but then no node modules...).

    It's all tricky to think about, my project in particular is over a year in, and heavily relies on NWJS plugin. I could move it all to file system plugin but that's a huge project in itself since the actions/conditions are not one-to-one replacements. I wonder if electron would be pretty much identical to NWJS with it's read/write actions and such.

  • No..

    I don't use any caracter above.

    I've also tried renaming the project without the character. But the result is the same, I can't export the project.

    Although it only seems like a warning but should still export - In the list of forbidden characters, the first character is a space, and your project indeed has 2 spaces in it. Have you tried without any spaces? And when you do try, do you still get this error about using these characters, or a different error?

  • You can have a layout that has many different "windows" created (for pause, graphics options, etc), where you position all your buttons and options onto a "window" sprite as a hierarchy, and give the window a template name, such as "Menu_Pause".

    Then, at any time, you can create the window object with the template name, and make sure to tick the option to spawn the entire hierarchy when creating the window, and it will spawn as expected.

  • Great detail, very good points raised, thanks! The temptation increases.

    Yeah you're right, sorry to have made a random point about addons on your post since its indeed a different topic, upon reflection it's probably very unlikely anything would somehow break these two plugins, even if the recent UID shuffle option was just added, I'm guessing would have still worked fine after (and ofcourse you're deeply interested in C3 so you'd be there to sort it out if it broke). I'm sure these two particular addons are probably not deeply interwoven with weird hacks or anything.

    Back to the topic: Does it work when you add multiple JSON+ behaviours onto 1 object? I am guessing it will work which would be excellent news, but I understand some other behaviours don't work this way (e.g. Physics shares collision filtering choices amongst multiple physics behaviours on 1 object).

  • Yeah, and also sometimes official plugins might appear, much like dynamic layers when there was skymen's 3rd party layer addon - Assuming the features were identical, the 3rd party addon is probably more likely to be abandoned after this, thus needing to invest time replacing events over to a different addon (especially if an update breaks the abandoned addon). That's just the way it is I suppose, weigh up the risk and reward.

    Smaller addons or effects aren't a big deal to use if they lost support, but I could see myself using both these plugins deeply within my JSON-heavy picking-heavy project, making it a big commitment. Though being a paid addon gives you more hope it will be supported for a long time.

    None of this is a prediction of how Overboy will handle things, but just mixed with excitement and apprehension.

  • Wow these look extremely powerful! With the JSON as a behaviour, can you add as many JSON behaviours to 1 object and they all act as separate JSON "files" so to speak?

    I've been burnt from past addons being abandoned where I've had to redo huge amounts of events, so I'll give it a think before buying. But yes, you've certainly tempted me with both addons, I can see myself modifying all my through all my events to use JSON+ instead of original JSON just to lessen the picking I do.

  • So potentially there will be no steam or Epic for Construct 3 in the future?

    Yeah web tech is truly awesome :D

    I don't think that's what's been said.

    Ashley's reply says "It would be more feasible to develop our own Steam/Epic integration for the WebView2 export option" and such, and the consideration of them creating their own Greenworks fork. Seems their goal is to support Steam PLUS more store options.

  • WebView2 with Linux/MacOS support in future sounds very promising!

    But until then, to lose Linux support would be a big deal, as mentioned with Steam Deck and such.

    EDIT: I just reread what Ashley wrote and realised its likely pointless to spend time implementing other export just to eventually move yet again.

    Would Electron be a worthy temporary solution until WebView2 is supported on all desktop OS's? Though I guess this would just move us to a bunch of different potential issues, or maybe even the same exact issues as NWJS. Or maybe another alternative altogether, just to tide us by if NWJS is not seeming to resolve major issues?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've had this before, disabling worker mode also helped for me but the main issue was "composting mode" which I had as Low latency, but needs to be set to normal, then I could use worker mode fine and no more black screen. This only happened recently suddenly.

  • You do not have permission to view this post

  • Very peculiar. What browser do you use, and what extensions? What's your computers RAM and GPU?

    I use Chrome, with no extensions, and I can use C3 for hours and hours and I've never encountered similar issues, but I do have 16GB RAM and a rtx 2060 so definitely fine in terms of RAM or VRAM.

  • EDIT: wait sorry, I may have misunderstood your original issue. I tend to use "wait 0" often and tends to behave correctly. I never risk a newly created object without using "wait 0", but perhaps there are specific times where this is OK. When is the 2nd function without a UID parameter called? If there's multiple of that one object, and no UID is specified, perhaps C3 is picking whatever first instance of that object that exists, then picking it's children and such.

    EDIT 2: oh wait, I just understood the colour-coded purple shows the 2nd function being called. From what I understand, if the 2nd function doesn't have "copy picked" or a UID to pass, then the 2nd function effectively "doesn't know" which instance to pick, so I guess unexpected behaviour happens. I'd always pass a UID just to be crystal clear for C3 to know which instance to pick (or copy picked if that works after a "wait 0").

    I always use "wait 0" on a "on created" event. Like every object that gets created, I have an "initialise" function or custom action for that object, but it seems that "wait 0" is always needed before calling the function.

    I think it's related to the whole "objects don't necessarily exist until the bottom of the event sheet/next tick" or something similar to this, so a "wait 0" solves this.

    Doesn't seem to cause issues as far as I am aware, even if multiple objects are created on the same tick and such. But yeah, hmm.

  • Not that I can add any input on issues that could come from this, but I have used emojis on object names before. I was doing some specific manual "convertion" process where I had to change every event/action by hand, like converting a sprite to 9patch. Having a big red dot emoji was helpful to visually see where the sprite was used in expressions and such. Very handy indeed!