Usually the audio and img of the game must be placed in the'www'folder. Is there a plug-in that can place them outside the WWW folder or anywhere else?
Put 'audio' and 'img' outside the 'www' folder
JS Plugin RequestsHmm, I mean technically it is possible, but it's not something we usually do. Everything you see in your project folder goes into the www, and only the nwjs stuff goes outside of it. Why would you want to move stuff outisde the www folder?
When I package the WWW folder into a file with Virtual Box, audio and img take up too much space. I don't want them to be loaded into memory at the same time.
Even if you have 4 GB of ram, I highly doubt your audio and images are taking up more than that. Is it that much of an issue? Playing with RAM loading and folder path isn't something that many people do, so there might not be a free plugin for that.
If it needs too much memory, it will start slower.
This question is put down first, I want to ask you another question.
If I package the WWW folder with Virtual Box, which also includes the greenworks.js and lib folders, as well as the steam file, when I package them, my game doesn't need to start steam. Usually if you don't start steam, or if you don't buy the game, it will jump to the store. I think this is caused by wrapping the Lib folder and greenworks. JS, I want to solve this problem more than 'audio' and 'img'.
Sorry I can't help for that. I don't use Virtual Box unfortunately. Let's hope someone else has the answers to your questions.
What about instead of moving the audio and img folder, you move the nwjs executable with all the shenanigans inside the www folder and then edit the package.json to correct the filepath? Problem solved.
What does 'shenanigans' mean?
All the other files and folders that are necessary.
Is there any use case or tutorial about package.json?
No tutorial needed, you just open it and overwrite the path to the index.html, that's all. Although there is a documentation out there of what can be put there as parameters.
That is good idea. I moved all the files out of the WWW and modified the package.josn. Now my game.exe is no longer obese.
Original thread: https://forums.rpgmakerweb.com/threads/put-audio-and-img-outside-the-www-folder.113780/