Ashley's Forum Posts

  • beforelayoutstart does fire just before 'On start of layout', so it should be firing whenever that triggers, including when returning to a layout already visited. Could you share a project demonstrating your code? Perhaps there is a mistake that has confused you. For example these events fire on ILayout, and you talk about ILayer which is unrelated here, so it seems likely you mixed up something.

  • Sorry for the delay, I just went through the spam folder and approved some items so it should all be reviewed now.

    PS. Although I think the number of suggestions on the platform is enough, it is time to limit it.

    Heh, that's always been a problem with the suggestions platform - we get far, far more suggestions than we can conceivably do. I think the high end of what we can do is around one a week, so that would mean there's over 6 year's work already submitted just this year alone. I don't think limiting submissions helps, as it's possible a new submission could still be a good idea and get highly voted. I think it's best for people just to focus on only the really essential and more feasible ideas.

  • FWIW on the relevant Chrome issue it looks like they just fixed support for copying only (but not yet pasting). It'll take a couple of months for the change to arrive in a stable release, but then at least the copying feature should always work on Android, even in the WebView.

  • It's possible to warn before closing the tab with scripting and the "beforeunload" event:

    window.addEventListener("beforeunload", e =>
    {
    	// if (hasUnsavedChanges)
    	e.returnValue = "Save changes?";
    );
    

    Assigning a message to e.returnValue will cause the browser to show an "Are you sure you want to leave this site?" prompt. However it is not always guaranteed to appear, and most browsers ignore the exact message you provide and just show their own stock message.

  • I just tried it and it's working fine for me right now. The server uptime shows it's been running since at least a few hours before the time of your post.

  • Behaviors can't draw, only plugins can, that being an architectural decision taken many years ago.

  • Ashley Could this be simplified by providing an "execute c++" feature similar to the existing "execute JS" action inside the browser plugin?

    No - C++ is a compiled language and also needs to be configured with the necessary SDKs, libraries, etc.

  • In theory it would be possible to have some kind of plugin model for WebView2. But I don't think it makes sense to consider that any further until it's clear we can solve the aforementioned issues for Steam.

  • TheRealDannyyy - Electron is architecturally pretty much the same as NW.js and so has the same shortcomings. These days the node.js layer of NW.js/Electron is pretty much entirely redundant, which makes it more or less deadweight and a significant and unnecessary complication for integrating features like Steam support which have to go through this layer. It also seems to have the limitation that you have to rebuild the addons for every new node/Chromium build which is a real PITA - most of the time you can just write something and it keeps working long-term, but this means it quickly goes out of date without constant active maintenance.

    Compare that to WebView2 where we already have our own simple, minimal C++ wrapper, which we could directly integrate with the Steamworks API - no middle layers and it wouldn't need updating with every version. IMO that's a much nicer architecture and puts us in full control of the Steam integration.

    However rest assured that nothing will be deprecated or removed until there is a suitable replacement - I think we will have to keep using NW.js and node addons for the time being, until at least things like Steam Overlay support and unrestricted file system access can be implemented for WebView2.

  • False positives should be reported to the antivirus vendor - there's nothing we can do about it.

  • It's a built-in addon. You don't need to install it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not clear what you're doing. Are you using the Share plugin or the Clipboard plugin?

    If you think there is a problem with Construct than as ever the best way to deal with it is to file an issue following all the guidelines.

  • var textObject = runtime.objects.PW;

    textObject.text = "Hello, World!";

    This is a common mistake that confuses object types with object instances. You are trying to set the text of the object type, but only actual instances have a text property. You need to call getFirstInstance() to get an instance which you can then change the text of.

    I strongly recommend taking the Learn JavaScript in Construct tutorial course which covers all of this kind of thing, in particular part 11 which covers Construct's APIs.

  • Yeah, I was going to ask - maybe you could team up with someone like Chadori or Mikal to develop a new Steam addon?

    It's an option (or just bite the bullet and do it myself), but for the time being I want to see what happens regarding WebView2 support, as that would change the direction we go in.

  • Which export option are you using? Clipboard features should work in Chrome on Android. However if you're exporting an Android app there's a known issue that currently prevents copying to the clipboard from working.