Native support of NW.js compiler?

Discussion in 'RPG Maker MV Improvement Boards' started by Poryg, Mar 18, 2018.

?

Would you like this feature?

  1. Yes

    16 vote(s)
    84.2%
  2. No

    2 vote(s)
    10.5%
  3. Yes, but not important

    1 vote(s)
    5.3%
  1. Poryg

    Poryg Pixie of the Emvee kingdom Veteran

    Messages:
    2,722
    Likes Received:
    6,265
    Location:
    Czech Republic
    First Language:
    Czech
    Primarily Uses:
    RMMV
    NW.js compiler allows us to compile Javascripts into .bin files, granting a layer of security to our js files. It's been around for a while, however in MV 1.5.1 it was not advisable to use it, because prior to NW.js v.0.22 the compiled code was 30% slower. However, with MV 1.6.0 we have access to NW.js v.0.25.4, so I think it wouldn't be a bad idea to support it natively, so to speak, and at least offer an option to compile the js files if nothing else.

    Why is this feature good:
    Native code is more secure than open and easily accessible javascript files. This means people will not be able to open our js files and/or change them as easily.
    With good custom encryption we can also ensure a better level of security of our assets, which we can't ensure at all when our javascripts are easy to read.

    Possible issues with this feature:
    Compiled code is not cross-platform, which could potentially mean multiple compilers for different platforms would be required.
    Two versions of index.html would be necessary - one for js files before compilation and the other one for compiled files

    Note that this still isn't 100% protection of our games. The issue we've had recently with that hacker stealing MV games and uploading them on itch.io with injected miner wouldn't be prevented by it, because the index.html is still accessible. But it will at least make our native files potentially more secure.
     
    Last edited by a moderator: Mar 21, 2018
    #1
    elpeleq42 likes this.
  2. elpeleq42

    elpeleq42 Veteran Veteran

    Messages:
    355
    Likes Received:
    147
    Location:
    Brazil
    First Language:
    Portuguese(BR)
    Primarily Uses:
    RMMV
    This is probably one of the features I most want in MV!
    +1
     
    #2
    Poryg likes this.
  3. Yitzi Litt

    Yitzi Litt Made Nepenthe — An RPG that's one giant dad-joke Veteran

    Messages:
    87
    Likes Received:
    26
    Location:
    Planet Earth
    First Language:
    english
    Primarily Uses:
    RMMV
    Why haven't this happened yet?
    It would be pretty nifty :)
     
    #3

Share This Page