Eyefinity's Recent Forum Activity

  • Oh, well, that's good to know. I'll check everything you said.

    Thanks again for your help.

    Have a nice day

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Another question...

    According to what you said, if I'm not using Nodewebkit the filesystem api will not work (that's what I understood). In other words, if I try to create a HTML5 application able to read a directory (the project directory) I will have to use the nodewebkit? Is there a chance to just preview in nodewebkit and then add the node.js library to the application and run it in every browser?

    Thanks for your answer in advance, again.

    PS: I've been checking if I can give you reputation points, but I can't find the option. Perhaps is earned automatically by answering a post, anyway, you deserve it. Thanks.

  • Actually I'm previewing in Chrome. My idea is trying to implement my own directory reader. I thought that the filesystem variable was a C2 thing, but now you let me know it's part of nodewebkit.

    I'll see it later with a little more time.

    Thanks for your answer, it really helped me out to understand how it works.

  • Hello, this is my first post

    This is the thing. I want to implement my own directory reader. I've been checking the AJAX and Nodewebkit plugin and both use the "fs" variable. I'm guessing that "fs" stands for "filesystem", but I'm not sure about that. I can't find nothing about that in the manual and when I try to use something like those plugins do, it always fails with a "require is not defined" error message.

    This is the code both plugins use :

    		if (isNodeWebkit)
    		{
    			path = require("path");
    			fs = require("fs");
    			nw_appfolder = path["dirname"](process["execPath"]) + "\\";
    		}
    [/code:elqky6eh]
    
    But I don't know where is defined the 'require' function, neither the "fs" or "path". If I try with my plugin to print those values it always throws that error.
    
    Is there anyway to work with the filesystem api, or do I have to create an instance of it by myself? Because I can't find nothing similar to that in the plugins.
    
    Thanks in advance.
Eyefinity's avatar

Eyefinity

Member since 9 May, 2014

None one is following Eyefinity yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies