What do most of the .js files on the js folder do?

I had to transfer lots of files between proyect and proyect since for some reason my game didn't start when using the play button. I got the proyect to work once again and the only problem that the previous project had were the .js project aside from the plugins.

I'm looking around the project, and testing various things and nothing seems to be lost, so what are these files in charge of?

Screenshot_3143.png


I wouldn't want to be losing anything important from them
they contain all the actual code your game uses to run, but ideally you wouldnt be doing anything with them thatd make you lose anything if you need to replace them. One of the reason all changes are suggested to be made through plugins is because if you leave them untouched, they can be replaced with no issues.

Every time you make a new project, a "clean" set of those files are created and as long as you never made any changes to the .js files on your current project, if anything happens and you need to replace them you can create a new project and copy over the files from the new project into the current one (or find them in your rpg maker installation and copy them).
those, to my knowledge, are what make the game work at all. They manage things like displaying sprites, starting battles, pretty much everything the game does by default is managed by those files

Original thread: https://forums.rpgmakerweb.com/threads/what-do-most-of-the-js-files-on-the-js-folder-do.176777/