Ashley's Recent Forum Activity

  • On an unrelated note, I would also like to add that indeed the lack of File System access for the WebView2 export is sad.

    FWIW I submitted a WebView2 suggestion to fix that. I think a relatively small addition to WebView2 could potentially allow full file system access without prompts using the existing browser File System Access API from JavaScript.

    It's technically possible that we could hack in unrestricted file system access ourselves via the WebView2 wrapper, but it would probably mean maintaining two entirely separate file system APIs. We've been round this process a few times over the years and it's always a nightmare doing that. It's by far the best solution to get everything to work consistently cross-platform from existing browser JavaScript APIs.

  • If the same project works on other devices, I would guess it's a problem with Raspberry Pi's graphics driver. It would probably be best to report it either to the Raspberry Pi team (to fix the root cause) or to Google if the issue happens in Chromium (who might be able to work around it).

    Or, if nothing is visibly wrong with the game, you might just be able to ignore it!

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

  • Try Construct 3

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

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

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,425,936 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
  • x108
    Coach One of your tutorials has over 1,000 readers
  • x62
    Educator One of your tutorials has over 10,000 readers
  • x3
    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
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs