> Hello one question.
> I thought that NWjs.AppFolder would give me the directory of the location of the nw.exe file.
> But this is not the case, NWjs.AppFolder gives me the directory where the capx file is located.
> What the hell do I want that directory ?.
> I need the directory of the nw.exe application because there are my files to load.
>
> How do I obtain this directory ?.
Ashley added new expressions after I did a feature request about this a while ago. Just update C2 to R257 or newer and use the new expressions.
I think they should also work with fetching the executable path. If not you should be able to manually replace parts of the fetched path. Although I'm guessing in your case it's an issue that only occurs during preview and not in the exported version.
My problem is with the exported version.
I have files that my program loads to create the levels.
I have used the expression NWjs.ProjectFilesFolder seems to work but it is not the path of the executable file nw.exe
I suppose that NWjs.ProjectFilesFolder is the path where the files are decompressed and then loaded from there.
Thanks for the info.