0 Favourites

NWjs object UserFolder path is incomplete

  • Problem Description

    The NWjs object UserFolder does not return the drive letter / a compete path to a user's folder. When importing a sprite image using the UserFolder, the path is inadequate for the requirements of Sprite Load Image from URL.

    Attach a Capx

    capx

    Description of Capx

    The capx contains 2 methods of importing a sprite image from the user's hard drive - by using either the NWjs.UserFolder path or by opening a NWjs file chooser. The path in the file chooser is complete and loads the image, the path in UserFolder cannot be used to import a sprite image. You will have to save an image as per the instructions before running the test.

    Steps to Reproduce Bug

    • Save an image to \Users\YourName\test folder\image.png
    • Run the layout in nw.js
    • Use the 2 buttons to select the image import path

    Observed Result

    The sprite image can be loaded from the ChosenPath but it cannot be loaded from the UserFolder path.

    Expected Result

    The UserFolder path in NWjs should permit a sprite to load an image from URL.

    Affected Browsers

    • Only NW.js

    Operating System and Service Pack

    W10 x64

    Construct 2 Version ID

    r231 64 bit, nw.js v14.6

  • The .capx uses a third party plugin (canvas). Please remove this and file again as per the bug report requirements.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Oops!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
144 12,138
andreyin's avatar
andreyin
Unread hot topic Locked topic
115 17,211
Kyatric's avatar
Kyatric Construct Team Support
Unread hot topic
0 Favourites
Path Movement Behavior
98 52,470
R0J0hound's avatar
R0J0hound