Hello 🙂
I've really new to NW.js and I struggled to find relevant current information for my questions, so I'd be glad if someone could help me out 🙂
1) Is it possible to write own node modules to use in your game?
2) Is it - theoretically - possible to call C++ DLLs in RMMV with the help node-ffi for example?
3) What is the current NW.js version for the RMMV (1.4) and is it possible/allowed to manually upgrade it?
Thanks in advance!
2) I don't know if it is possible, but even if it were there are two problems doing that:
- it makes the result Windows-only because libraries like that can't be written for multiple OS support (you would need a different variant of files for each deployment option)
- it will need the program to break out of the security box of a browser, something that browsers are designed to prevent in order to stop web-malware. And while that might be possible with good programming skills (after all, there are viruses that manage it) it will place your game on the hit-list of every heuristic antivirus looking for code that does this.
3) you can update anything you want in your project, but it will place you into an increased danger of being unable to update the core engine to later versions - but that is why the project updates are manual, so that you can decide to update or not.
MV uses nw.js 12.3 if I recall correctly, so you need to rename Game.exe to nw.exe if you want to use node modules (it's an old nw bug that has been fixed in newer versions)
You can update to newer versions of nw.js without changing anything in your project, but I particularly found the newer versions of nw.js to be running slower than the old one.
Thanks, you two 🙂 I think I have to try and tinker with node-ffi e.g. myself. I'm not really sure if it would really pose a problem for antivirus software - I read that it's possible in NW.js (but I was not completely sure if there were "other factors" intervening caused by the way the RMMV packages the game). It's not a "hacky way" or even using security holes, so I don't think the antivirus software would ring the alarm 🙂