TheRealDannyyy's Forum Posts

  • Tomycase One thing that came into my mind since you also reported the zoom issue. NWjs should save the zoom level after closing, did you make sure to reset it back to 100%? (Form size issue.)

  • The zooming issue and many more have been fixed in NW.js v0.43.4, I guess we'll get an official update next month when v0.44.0 is out.

    Please test the form issue again next month or upload something for me to reproduce. Screenshots aren't really useful and delay testing on my end.

  • Wow I was about to message you since I know you are qualified when it comes to NWjs, I'll make a post in your topic right now, thanks!

    It's alright, gonna do a heads up post when the stuff is fixed.

  • Hello everyone, I recently discovered that NWjs allows the user to zoom/unzoom during runtime with CTRL+Mouse wheel, however it can be incovenient for a user who toggle it by accident, and can screw the game display, so my question is, is it possible to disable this function with a chromium arg or something?

    Thanks ~

    Good catch! Next time please report it to Scirra directly or do a quick post inside my topic so I can look into it and create a bug report like this one.

  • I know the Text object is a Form control and I don't think Construct can do much there.. but with SpriteFonts you should be able to do anything you want having perfect pixels when scaling.

    https://drive.google.com/file/d/1mjEO_9pxkprzcZCn6BRJdVOdT6Z2tkX6/view?usp=sharing

    That's pretty much the same as it looks on my end. Downscaling is still an issue though and looks bad with Spritefonts. I'd really prefer to fix the text object instead of using spritefonts.

    If you for example scale down the window size, the text object is still readable (even with the blur issue) in comparison with the spritefont:

  • scaling SpriteFont "should" be okay as long as you have Point on.

    however, if you are upsizing the entire game this has many inherent issues.

    is your text doing any sort of movement or animated scaling?

    I have it on point but spritefont text scaling isn't the main issue. It's more an issue with the text object being blurry by default, inside the browser.

    Integer letterbox scaling works fine but I would still prefer non-letterbox scaling. It seems to be impossible to get it pixel perfect with Spritefonts, since that looks even more blurry in comparison with the text object when scaled.

  • 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?
  • Try Construct 3

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

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

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