So from what I understand, currently, it's impossible to use this tool to make a Linux or Mac version of a game right? Is there a console method for Linux, or something?
I've successfully made a linux build, but whenever I cd into the linux cli cooktool and type dotnet build I get a 'does not contain a project or solution file' error... Do I need to run it on a mac? I must be doing a silly mistake.
Thanks for making this tool! I was able to get everything to work fine, your video tutorial was very helpful.
I have a question though: in the GUI version of the Cook Tool, there's an option to "Package the game into package.nw" and I don't think I saw that referenced in your videos or this thread. What does that option do, and when does one select it - during the second 'Compile" sequence?
Glad to hear that, SeaPhoenix.
The "Package the game into package.nw" option puts the game's files (the ones in the www folder) into an archive named "package.nw". It's mainly for obfuscation (the executable will have to decompress the files before it starts). You can make the game's overall size smaller with this, but it will take some time to start.
Hmm... There is a possibility that the version of nwjs you are using may have a bug where it will crash the game when it tries to load the compiled js files. I had this issue as well in some versions due to breaking changes to V8. If you can, I'd advise updating on a newer version of nwjs. If you can't at all, then you can try including the --no-flush-bytecode argument in the package.json file for your game. This should fix that issue.
If it doesn't, let me know.
Also, as far as I'm aware, you can't mix files that are compiled with a different SDK. If you want to support 64-bit systems alongside the 32-bit systems, then compile the files separately for each version. Once with the 32-bit version of the SDK and the other with the 64-bit version That's the only detail that I can think of, aside from that your game can access a lot more memory in 64-bit machines.
Doesn't seem to be helping. Unless it goes somewhere other than js-flags I'm short on ideas. And as I already said, there are certain assets that "soft lock" the game when loaded in a Win32 build so that's not even in question.
EDIT: For the purpose of testing I have downloaded the latest nw.js package to see if that does anything (maybe it's a bug that got fixed in a later version?), and have set it to package and remove everything once it's done (for testing and asset reasons as well as ruling out any problems with the leftovers).
EDIT 2: Still no results. Which is a shame considering that I have paid plugins and such that basically demand this (and obviously I don't want them getting stripped from my project by some nut job with a vengeance for piracy). On another note, I'd like to know what the latest version is that you have successfully tested against so I can plan accordingly.
I ran my game through with the latest version of the GUI and the game crashes on start. It makes a debug.log with this in it [0929/101958.284:ERROR:http_transport_win.cc(175)] WinHttpCrackUrl: The URL does not use a recognized protocol (0x2ee6). I have tried moving the www folder and package.json into the nmjs-sdk-v0.48.4-win-x64 and the screen launches but it is just a black screen. Here is a pic of my package.json file.