TheRealDannyyy's Recent Forum Activity

  • I'm creating a game which requires clear, pixel perfect font rendering. Spritefont works, but it's terrible when it comes to scaling and the default C2 Text object suffers from poor font smoothing by the browser. C2's editor view is so far doing the best job and is pixel perfect.

    Is there any way to disable browser based font smoothing?

    Here is an image to demonstrate my point:

    [Left = In-Editor | Right = NWjs Preview (Chromium)]

    [Top text = Spritefont | Bottom text = Text Object]

  • Ok, I downloaded the 32-bit SDK version and pasted it into the "C: \ Program Files \ NWjsForC2 \ win32" folder.

    Now it works well and the window maintains its position and size.

    I have also tried the 32-bit "Normal" version and it also works.

    Good to know. Since you already did the replacement work, you can just keep going until the new official Scirra installer is out.

    Yes all the problems I encountered are from the last version, the background process bug included.

    That's a problem. Keep in mind that a "cold start" (1st start after a reboot) can take some time.

    I need some info before I can start investigating:

    1. What exact NWjs version(s) does it occur in?
    2. Did you modify your package.json files in any way? (zip and upload if you did)
    3. Could you upload a minimal project for reproduction, if possible?
  • I have downloaded the "Normal" version 0.43.2 I have unzipped it and pasted it in the folder "C: \ Program Files \ NWjsForC2 \ win64".

    Then I tried but nothing has been fixed.

    So the "Normal" version is useless and do I have to download the SDK version and paste it in the "C: \ Program Files \ NWjsForC2 \ win64" folder?

    Then try again ?.

    I tried the version "SDK" 0.43.2 and it didn't solve anything either.

    As I told you, download the latest SDK build and try to reproduce using my project. This bug is caused by reloading an active page and that's what C2 basically does.

    I don't know if C2 is using 32bits of 64bits for preview, you could try replacing both. (Restart C2.)

  • I can't reproduce using NWjs v0.43.2, could you also test and confirm? Follow the bug report steps but download the latest SDK build from NWjs.io.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't close the window at any time, I simply place it in the upper left corner and keep it there.

    Then from C2 I press the "Run Layout" button when I need to preview the project and the window loses its size every time.

    Alright I managed to reproduce. Something goes wrong with NW2 and reloading. The fix might take a while because it's holiday season.

  • Just now the window is not positioned in the center but it continues to lose its size and I have to readjust it to the corner again every time I preview the project.

    Why not keep the window open and refresh instead of closing and opening it multiple times?

    I don't know what else I could do. Can't reproduce it on my end and I don't have anything I could provide for reproduction.

  • Hi, I tried that but it has not solved anything.

    I added the argument to the "package.json" file and then saved the file.

    I did the test but the window keeps losing the configuration.

    I deleted the argument from the "package.json" file and saved it again.

    I have installed the previous version of NWjs 0.42.4 with this version everything works as usual and the window does not lose the configuration. In the gif you can see how I adapt the window, then run again and the window remains.

    I think the latest version of NWjs has a bug.

    https://giphy.com/gifs/TiCnncOqV66zA5XM4K

    Alright I looked into this and it's actually not a bug. Inside the package.json file (or package-preview.json for C2 preview), is a property called: "position": "center",. This was partly broken during the NW2 switch and has been fixed in NWjs v0.42.5.

    The indented behavior has always been to center the preview window on startup and in order to keep it in the same position, you'd just have to keep the preview window open and refresh it when needed.

    If you really want to restart the preview window over and over again, just remove "position": "center", property from the package.json file (or package-preview.json for C2 preview).

  • Hi, I just tested the latest version, and noticed that nw.js was running up to 6 process at the same time, preview and exported (tested with the in-gpu-process method but didn't change anything), I was wondering if that was normal

    That's normal, that's how browsers work in general and shouldn't make any problems.

    Next, there is still an issue with the windows size in preview and export, here different results I obtained with Letterbox Scale and Letterbox Integer Scale.

    I've just released a workaround for wrong window sizing. Please check it out.

    A last issue I had is at multiple time the game lauchned as a background process, I had to use the task manager to shut it down

    Unless you use an ancient version of NWjs, this should not be a problem. If you experience this with the most recent version, I'll have to take a look at it.

  • Hi, there seems to be a new bug or problem.

    Each time I run, the NWjs window loses its configuration and returns to the initial configuration.

    That did not happen before.

    Watch this video, first adapt the window to the upper left corner of the screen, then run again and the window loses the configuration.

    Mi version is 0.43.1

    Is this reported?. I don't know if that's what you were talking about in your previous message.

    Try running with the "--disable-features=nw2" chromium arg. If the issue still occurs, it's probably something that's never been supported. If it works, it's an NW2 issue that needs to be reported.

  • The Roundup has just been updated!

    Just a heads up for some NW2 bugs and a workaround for the long standing window size issue. Thanks to Ashley for the idea and Colludium for doing the work!

    Changes:

    • <Added> How To: Workaround incorrect window size
    • <Bug> --disable-devtools Chromium-Arg Stopped Working (Open Link ➚)
    • <Bug> [NW2] Regression in window sizing (Open Link ➚)

    Most if not all features that run in Chrome (e.g. the new local file saving feature), will also run in NWjs, possibly even without the hassle of dealing with permission popups. I'm aware that specific features like opening external image editors won't be working anymore, after support for C3 desktop stops.

    Should the custom C3 desktop version not work properly regardless, I might come up with solution involving remote preview.

    EDIT: Ashley and I had the same idea, he was faster though.

    Ah dam, guess I'll have to stick with the desktop editor.

    My launcher project will continue supporting C3 Desktop as long as possible. This might be an option for you, when official support is stopped.

    I always recommend using the Chrome version though, since NWjs comes with its own set of unique bugs. Good enough for occasional NWjs testing regardless.

TheRealDannyyy's avatar

TheRealDannyyy

Member since 30 Sep, 2014

Twitter
TheRealDannyyy has 18 followers

Trophy Case

  • 10-Year Club
  • 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
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

18/44
How to earn trophies

Blogs