RPG Maker MV Cook Tool

What is this?

This tool automates the compilation of JavaScript files with NW.js’ compiler. The compiler creates binary versions of the files, ensuring the protection of the source code. The tool also packages the code (and the assets) on an archive that Nw.js can read.

How do I use it?

First of, you’ll need to do a few modifications to the project. I’ve included the replacement code you need to apply to your project (after deploying it, of course). After that, it’s pretty simple: Tell the tool where the nwjc.exe file is (RPG Maker MV has the SDK as well, which includes nwjc, but you can download a different version from https://nwjs.io) and the project you want to compile. In a few minutes, you can upload the game to the public.

Do note: once you compile it, you can only use the same version of nwjs for the same operating system. So, if you compiled the game with SDK Version 0.30.4 (for example) on Windows, you can only use the code with Standard Version 0.30.4 on Windows.

Command Line Arguments (CLI Version)

To compile the project quickly with command line arguments: nwjsCookToolCLI.exe –SDKLocation “<put the location of the SDK here>” –ProjectLocation “<put the location of the project here>”

Or in Linux: ./nwjsCookToolCLI –SDKLocation “<put the location of the SDK here>” –ProjectLocation “<put the location of the project here>”

(Yes, you need the quotes there.)

Command Line Arguments:

–SDKLocation: Sets the location of the SDK.

–ProjectLocation: Sets the location of the project.

–FileExtension: Sets the File Extension for the compiled files. It’s used like this: –FileExtension <insert file extension here>

–Parallel: Turns on Parallel mode. You can use it without the previous two arguments as well.

–ReleaseMode: Removes the JavaScript files after compiling.

–PackageApp: Compress project after compiling. “–PackageApp Final” (without quotes) removes the files after compression. Only works with the –ReleaseMode flag.

–TestMode: Test the game after compiling. Cannot work when the CompressProject argument is in place.

–CompressionSafeMode: Uses the old but safe compression system.

System Requirements:

Windows 7 Service Pack 1 or newer.

Any computer that can run RPG Maker MV games, practically speaking.

NW.js SDK. You can use any version you want (preferably 0.22.x or newer).

FAQ:

Can I use it on Linux with WINE (or Proton or <insert a compatibility layer here>)?

Depends. If it is to make the Windows version of your game, then yes (assuming that it can run .NET Framework apps). If you want to use the tool to make the Linux version, then no. I am planning to release a Linux version at some point.

Can I use it on my current project?

The tool is a wrapper for the nwjc. I have used the tool for my project and I haven’t noticed any issues. So, it has a “go-live” license (as in, it’s OK to use it on your projects).

Get it on Ko-fi, on the Microsoft Store or on itch.io

Source code

Video tutorial:

If you like this tool, consider donating via Ko-fi (or pay what you want on itch.io). Donations will help me get tools and upgrades that I’ll need.

18 thoughts on “RPG Maker MV Cook Tool

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.