Single EXE Issues/Help

Hello,

I'm making my first game and I'm trying to figure out how to package my game into a single exe file so that when I am done with my game I can distribute it in one thing rather than having all the folders and files exposed.

I saw in previous forum post that people were recommending Enigma Virtual Box, but whenever I use that and bundle it into one thing it runs the game as 7-8 different nwjs processes and the several people I've sent the file to say that the game ends up freezing after spiking their computers memory and cpu. Then whenever they close the game some nwjs processes remain and they can't reopen the game file. I've seen this behavior myself as well. I will say that even before I bundle up the game, the exe file that I run from the folder that is generated after going through the File > Deployment > Windows option runs the exe file as 7-8 different nwjs processes as well, so... I'm not sure if that's expected behavior or not.

I upgraded the version of nwjs in my Rpgmaker Mz files because I saw somewhere it would fix a bug with visustella where theres black chunks missing. It didn't fix the issue lol but this is the version im running in case it's relevant:

nw: "0.98.2"

Is the multiple processes expected behavior, or is it because some plugins I have? How do I troubleshoot why its causing insane spikes in cpu/memory? Is there a better way to bundle up the game where it runs as just one exe, or is it a quirk of making games in RPGmaker?

Thanks!
I saw in previous forum post that people were recommending Enigma Virtual Box
They must have been very old posts? Or for an older version - Enigma is known to not work correctly with RPG Maker MV and MZ games.

The short answer is that you shouldn't package it as a single exe.

Exe's are just intended to launch the necessary files to run the game, so typically an Exe's file size is very small.
In rare cases, windows doesn't like large size Exe's and may flag it as a virus.
More pertinent is that the game is going to have read/write problems since the files have been compressed into a single file.
Assuming it's not asset protection that you are looking for and you just want to get rid of the clutter, you can try the following:

  1. Put your entire project in a folder (eg My69thGame)
  2. Create a shortcut to Game.exe by right-clicking it, and move the shortcut out of the My69thGame folder (i.e. place it in the parent folder)
    1761099564339.png
  3. Modify the shortcut to have the following target and starting folder:
    • put the following in "Target (T)":
      %windir%\explorer.exe ".\My69thGame\Game.exe"
    • blank out "Start In (S)"
I did a quick test and it seems to work.
I can generally not recommend using enigma. I've been using that back in the day, but it's not great. It doesn't protect your assets whatsoever and it impedes performance if you get it to work in the first place.

If asset protection is what you want, you can try https://aceofaces.itch.io/rmcooktooldx
Alternatively, there are some encryption plugins floating around somewhere, which are also worth checking out. It's completely normal that game files are exposed.
I can generally not recommend using enigma. I've been using that back in the day, but it's not great. It doesn't protect your assets whatsoever and it impedes performance if you get it to work in the first place.

If asset protection is what you want, you can try https://aceofaces.itch.io/rmcooktooldx
Alternatively, there are some encryption plugins floating around somewhere, which are also worth checking out. It's completely normal that game files are exposed.
I second the recommendation of Cook Tools Deluxe. It's not a free tool, but it is more than worth the investment, and Ace of Aces is very responsive if you need any assistance.

It provides encryption of assets and compiles everything neatly into an executable to launch the game. It also allows you to easily customize the metadata for your game within the tool, so all you have to do is enter the info you want into the boxes for things like version number, window names, executable icon, etc.
Okay, thank you everyone! Yes, I think I was looking at a rather old post, and I appreciate all the feedback and information regarding best practices for when I distribute my game since I was not sure what was typically done. Much appreciated.

Original thread: https://forums.rpgmakerweb.com/threads/single-exe-issues-help.180656/