Ashley's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,767,010 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x125
    Coach One of your tutorials has over 1,000 readers
  • x74
    Educator One of your tutorials has over 10,000 readers
  • x5
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x42
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs