Bug with the save system in games packaged with Enigma Virtual Box.

Hello. I made a game and packaged it into a .exe file using Enigma Virtual Box. I had assumed everything was working correctly until a player reported this bug:
image-weikts5p.png


I did some testing and found that the save system doesn't work and this error only comes up after exiting the options menu. Is there a possible fix to this?
It's not exactly a bug - the engine tries to save into the virtual directory, which it doesn't have the Rights for.

you need to use a plugin to redirect the path to the savefolder to something outside the restricted area.
This thread was moved from RPG Maker MZ Support to RPG Maker MV Support.
create a www and within a "save" folder next to the exe and it works fine.
create a www and within a "save" folder next to the exe and it works fine.
I'll try this. If it doesn't work, I'll look into Andar's solution. Thanks a lot for the feedback!

I did the solution that ShadowDragon suggested, however it only fixed the error for exiting the options menu.


It's not exactly a bug - the engine tries to save into the virtual directory, which it doesn't have the Rights for.

you need to use a plugin to redirect the path to the savefolder to something outside the restricted area.
What plugin would I need to use? What would I need to do to accomplish this while keeping everything packed into a single .exe file?
Just to put it out there - I know it's suggested in the manual, but my experience (and many others) is it doesn't actually work for games made with MV.

This save error is just one part. You can find many threads talking about various errors that appear trying to play an MV/Z game packaged in Enigma.

For example:
Just to put it out there - I know it's suggested in the manual, but my experience (and many others) is it doesn't actually work for games made with MV.

This save error is just one part. You can find many threads talking about various errors that appear trying to play an MV/Z game packaged in Enigma.

For example:
I was researching the forums to see if anyone had the same problem as me. Rather sad to see that MV causes many problems with the Virtual Box. I'm probably going to take it up with Gotcha Gotcha Games to see if they fix this issue.
I'm probably going to take it up with Gotcha Gotcha Games to see if they fix this issue.
You do what you like, but I wouldn't suggest that's a reasonable use of your time 😛

MV is no longer supported software. Enigma is not their software to begin with. So right off the bat, there's no reason to expect they're going to put any effort into this.

Past that, I don't know how much of it can be fixed - these errors are the results of running HTML-based software in the virtual environment of Enigma. I don't know they'd be able to do anything about it without entirely recoding MV's codebase.

And for your part, you really gain next to nothing - as mentioned in that thread, Enigma offers practically zero data protection; anyone who would be inclined to get at your files can install software within a minute to just open it like a zip archive.

But whatever you want to try to do - good luck with your project.
MV is no longer supported software. Enigma is not their software to begin with. So right off the bat, there's no reason to expect they're going to put any effort into this.

Past that, I don't know how much of it can be fixed - these errors are the results of running HTML-based software in the virtual environment of Enigma. I don't know they'd be able to do anything about it without entirely recoding MV's codebase.

And for your part, you really gain next to nothing - as mentioned in that thread, Enigma offers practically zero data protection; anyone who would be inclined to get at your files can install software within a minute to just open it like a zip archive.
My goal for using Enigma was to package the game into a simple .exe file to make it user-friendly and less for data protection, but it sucks none-the-less that it causes issues to make it next to unplayable. Thank you all for your time and I appreciate the responses!
the way I told you does work, however, if it contains a "saveInLocalStorage" plugin,
that might give trouble still (as I hate that plugin) but it should work otherwise.

if you want to protect your data or plugins, there are a few plugins
that can help you with that instead, but its mostly the game.exe you need to click
to run the file anyway.

All packed games with Enigma Virtual Box without the www folder is something I make,
so saving works normally without error, so what error do you get that this doesn't work?
the way I told you does work, however, if it contains a "saveInLocalStorage" plugin,
that might give trouble still (as I hate that plugin) but it should work otherwise.
I have no idea where to find that plugin.

if you want to protect your data or plugins, there are a few plugins
that can help you with that instead, but its mostly the game.exe you need to click
to run the file anyway.
Usually inside the ZIP file you deployed it in. I'm talking about packaging the game all-in-one to make it slightly easier to play for someone who isn't very tech-literate.

All packed games with Enigma Virtual Box without the www folder is something I make,
so saving works normally without error, so what error do you get that this doesn't work?
I did put the www file inside the save file and it only fixed the issue with exiting the options menu but saving was still broken and it it didn't cause an error, and I don't know where a log I can see the problem is located on my computer.

I'm just not going to use Enigma in the future.
you need an exe file and next to it
www folder + subfolder save inside www and that's all you need to do.

not save folder and subfolder www (but vice versa).
As ShadowDragon says, I tested out Virtual Box sometime ago and used the same solution of creating a www folder, and inside it, a save folder for it to work. I didn't test it extensively, but it did appear to solve the issues with saving.

It's supposed to look like this, if it helps any!
1735595275998.png

Then the following inside www:
1735595297026.png
I've already done the solution of putting a www folder inside the save subfolder and the save system still doesn't work. It only fixes the game from being locked in a error screen after exiting the options menu in-game.

- these errors are the results of running HTML-based software in the virtual environment of Enigma. I don't know they'd be able to do anything about it without entirely recoding MV's codebase.
Just to put it out there - I know it's suggested in the manual, but my experience (and many others) is it doesn't actually work for games made with MV.

This save error is just one part. You can find many threads talking about various errors that appear trying to play an MV/Z game packaged in Enigma.

For example:
Judging by what ATT_Turan has said, using Enigma seems to cause issues that either can't be fixed or are a mind-bending hassle to figure out.

I've already said I'm not using Enigma in the future. I would like this thread to be necroed now.
I've already done the solution of putting a www folder inside the save subfolder and the save system still doesn't work. It only fixes the game from being locked in a error screen after exiting the options menu in-game.
That's the problem, isn't it? They said that the www folder isn't supposed to go inside the save folder.

Only commenting on your issue regarding the save, what else you do with Enigma is up to you.
I've already said I'm not using Enigma in the future. I would like this thread to be necroed now.
If you want your thread closed, report your opening post and note that you wish it to be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/bug-with-the-save-system-in-games-packaged-with-enigma-virtual-box.174275/