NWJS Bug ?

0 favourites
  • 12 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Good evening,

    C3 Office.

    I have noticed problems when asked: NWjs.ProjectFilesFolder.

    The path ends with /.

    I'm on Windows 7.

    The path must contain \, not /.

    If I ask NWjs.ProjectFilesFolder in preview mode, it will be placed

    in the folder where C3 is installed, normal, but the path ends with: /Version C3/

    Is this all normal?

    That's why I row a lot when I request a file with NWjs.ProjectFilesFolder.

    The path is wrong and it generates errors that I didn't understand!

  • I'm waiting for an answer!

  • Why does it often take days to get an answer on this forum?

    Is it that hard to answer my question?

    What do moderators do, nobody knows that?

    PATH MUST CONTAIN "\", NOT "/"

    I'M UNDER WINDOWS, IN WINDOWS PATH, USE "\" !

    Someone tell me, so normal?

  • Why does it often take days to get an answer on this forum?

    Because this is not your personal support forum. People reply when they know the answer and willing to help. Shouting and being rude reduces your chances.

    .

    If the path contains "/" instead of "\", but otherwise correct, simply use replace(path, "/", "\") expression.

  • It doesn't matter. Windows understands paths with forwards slashes too.

  • Of course it does, it matters!

    NWjs him he doesn't understand!

    If I ask NWjs to open a file located, for example, on:

    C:\Users\Dayvid86\Desktop\MyGame\Abc.txt

    By doing: NWjs.ProjectFilesFolder & "Abc.txt"

    AND HE WILL NOT OPEN IT!

    Because the path is not found!

  • Windows does understand either kind of slash. Maybe the problem is the missing drive letter instead.

  • Dayvid86

    Do you really need the ProjectFolder not the AppFolder?

    Have you tried NWjs.AppFolder&"MyText.txt" ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to understand, sometimes it doesn't work, sometimes it works...

    That's why I don't like software like that, browser-based software is too boring for file management....

    I just did some more tests....

    Now it works, no problem!

    But on another project, sometimes it didn't work, sometimes it did!

    That's why it annoys me, it only works when it wants!

    I think NWjs is the one who's making this up!

    Or the Chrome browser!

    Anyway, it's not acceptable to me at all, it's too random!

    I've already had problems with reading Dictionary, Table!

    All seemed normal but no it didn't work!

    And if you add AJAX, then it's even worse!

    I hate all those things that only work when they want to!

    On an operating system, the file exists or not, it can be

    read or not, but at least it's clear!

    With browsers, it's doubly annoying:

    Does the file exist?

    Can the file be read?

    Would NWjs please read the file?

    In short, browser-based software is too boring!

    Translated with deepl.com/Translator

  • Dayvid86

    Do you really need the ProjectFolder not the AppFolder?

    Have you tried NWjs.AppFolder&"MyText.txt" ?

    Yes, now it works..... well, when NWjs wants to!

    Thank you.

  • It's not random. It will work in some specific circumstances but not others. With a bit more testing you can probably figure out precisely which.

  • It's not random. It will work in some specific circumstances but not others. With a bit more testing you can probably figure out precisely which.

    I couldn't understand where it came from, no.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)