Thanks!
Where in a project's folders can I find the scripts I've written from within the editor?
RPG Maker MV SupportWhat scripts are you writing from within the editor?
You need an external editor to write plugins.
If you mean anything you add via the Script event command, they are in the data folder in the individual Map###.json file, the CommonEvents.json file, or the Troops.json file, which you can open in a text editor, but they are not a very good format for editing.
You need an external editor to write plugins.
If you mean anything you add via the Script event command, they are in the data folder in the individual Map###.json file, the CommonEvents.json file, or the Troops.json file, which you can open in a text editor, but they are not a very good format for editing.
Thanks. What program do you like to use to write scripts?
I use Sublime Text. Anything that will let you have scripts open in multiple windows will be fine, and anything with a "search in multiple files" is good too.
Thanks. I downloaded it but it seems hard to edit the scripts in it, like you said. I think I'll use the built-in MV editor, unless you want to point me to something else. Thanks again.
There is no script editor built into MV. There is only the plugin manager, which lets you add scripts that were created through another means.
What do you find hard about Sublime Text? I think I've seen some mention an editor called Atom. Notepad++ would do it too. You just need a plain text editor that keeps things as text (unlike Word, which adds heaps of non-text stuff).
What do you find hard about Sublime Text? I think I've seen some mention an editor called Atom. Notepad++ would do it too. You just need a plain text editor that keeps things as text (unlike Word, which adds heaps of non-text stuff).
I was trying to talk about the Event Editor in MV.
You can't make scripts in the event editor.
Let's clarify - are you asking about scripts you've put into events, or the events themselves? They are two VERY different things, and your thread title is asking about scripts.
If you're talking about events, they are also all in the Map###.json files, but they are even worse to read, because what you see as command buttons with names in the editor are just numbers in the json files.
Why do you want to look at them outside of the editor?
Let's clarify - are you asking about scripts you've put into events, or the events themselves? They are two VERY different things, and your thread title is asking about scripts.
If you're talking about events, they are also all in the Map###.json files, but they are even worse to read, because what you see as command buttons with names in the editor are just numbers in the json files.
Why do you want to look at them outside of the editor?
Scripts I've put into events. Sorry I used the wrong terminology as I am new to RPG Maker. Yes I know now that they are hard to read outside of RPG Maker. I wanted to know where they are located in the folders because I don't want to backup 200 megabytes of data every time I want to make a backup. Also, I thought there might be a better editor for the scripts put into events. Thanks for your help.
I still think you might be using the wrong terminology. When you create an event, you have 3 tabs of commands. EVERYTHING on those tabs are event commands. Not scripts. On the third tab, right column, second from the bottom is the Script event command. That is how you put scripts into events. If you are only new to RPG Maker, I suspect that is not what you are doing. Be careful to call events events, and scripts scripts (ie plugins). They are VERY different things, and as you can see from this whole conversation, if you use the wrong term, it's going to take a very long time to get something that you didn't really want.
The data folder contains the whole database as well as all maps (including events). You want to back that whole folder up.
If you've added any images, you'll want to back up the img folder, or the subfolders you've added images to.
If you've added any audio, you'll want to back up the audio folder. However, this is the folder that takes up the most disk space, so maybe you only want to keep a copy of anything you add, and back up that copy.
If you've added any plugins, you'll want to back up your /js/plugins.js file as well as the /js/plugins folder.
The data folder contains the whole database as well as all maps (including events). You want to back that whole folder up.
If you've added any images, you'll want to back up the img folder, or the subfolders you've added images to.
If you've added any audio, you'll want to back up the audio folder. However, this is the folder that takes up the most disk space, so maybe you only want to keep a copy of anything you add, and back up that copy.
If you've added any plugins, you'll want to back up your /js/plugins.js file as well as the /js/plugins folder.
I found doing partwise backups manually is a lot to keep track of and tedious to troubleshoot.
I do something advised against but it works just fine for me:
Have a desktop cloud drive like sync or opendrive --> put game folder in the drive* --> turn off synchronization while working on the game and back on after --> new changes gets updated --> if anything goes wrong revert the changes --> do regular backups of the whole game folder on other storage mediums!
* Known cause of corrupt game files
I do something advised against but it works just fine for me:
Have a desktop cloud drive like sync or opendrive --> put game folder in the drive* --> turn off synchronization while working on the game and back on after --> new changes gets updated --> if anything goes wrong revert the changes --> do regular backups of the whole game folder on other storage mediums!
* Known cause of corrupt game files
I'd be very careful if you're going to do that. It's advised against because people have lost large parts of their project by doing that.
Doing a workaround that's known to be risky in order to save time backing up seems questionable to me. Kind of inviting the thing to happen that you're trying to protect yourself against.
Once you turn on sync, you have to sit there and wait for it to sync. If you shut down the computer before it's done, you could be in real trouble, as that's one of the supposed causes of the data loss that others have had.
I honestly don't find it takes that much time to copy/paste the project folder. If it's that much of a bother, you could go through and remove most of the resources (audio/image) and just leave in there the ones that are used. That'll make backing up much faster.
Doing a workaround that's known to be risky in order to save time backing up seems questionable to me. Kind of inviting the thing to happen that you're trying to protect yourself against.
Once you turn on sync, you have to sit there and wait for it to sync. If you shut down the computer before it's done, you could be in real trouble, as that's one of the supposed causes of the data loss that others have had.
I honestly don't find it takes that much time to copy/paste the project folder. If it's that much of a bother, you could go through and remove most of the resources (audio/image) and just leave in there the ones that are used. That'll make backing up much faster.
Yes, it's super ill-advised but I haven't personally had a single problem for years, numerous stress tests accounted for.
Sync is very keen on their process not corrupting files. I don't know the specifics but hypothetically the method seems to be solid. I assume it's declaring the first sent byte as an update, so if it gets abrupted, the uncorrupted local file is read as being newer and keeps updating the cloud file until they match. Meaning it won't backwards-update a working file into an abrupted/corrupted one.
It's a time and workload saver for me, and if I ever screw up I have a whole history tree to restore from. I'm only turning off syncing while working in the game project as an extra security measure but actually I'm not convinced I'd even need to. In fact I'll be real hubristic and stop from now on and you'll hear from me if and when I come back with my tail between my legs. (((famous last words)))
I do very regular backups anyways so if the worst should happen, and Sync suddenly just turned off their servers for good just as I had a major corruption - that's still just a minor setback. I find that hardware crashes more often than my preferred solution disadvantaged me, which is none so far. Not a single cloud drive problem since I started but two major hardware crashes.
This being said, known cause for file corruption, stay away, warning, achtung. But also, totally worth it for me. I quasi-recommend it. Don't!!! but also it's great!
Sync is very keen on their process not corrupting files. I don't know the specifics but hypothetically the method seems to be solid. I assume it's declaring the first sent byte as an update, so if it gets abrupted, the uncorrupted local file is read as being newer and keeps updating the cloud file until they match. Meaning it won't backwards-update a working file into an abrupted/corrupted one.
It's a time and workload saver for me, and if I ever screw up I have a whole history tree to restore from. I'm only turning off syncing while working in the game project as an extra security measure but actually I'm not convinced I'd even need to. In fact I'll be real hubristic and stop from now on and you'll hear from me if and when I come back with my tail between my legs. (((famous last words)))
I do very regular backups anyways so if the worst should happen, and Sync suddenly just turned off their servers for good just as I had a major corruption - that's still just a minor setback. I find that hardware crashes more often than my preferred solution disadvantaged me, which is none so far. Not a single cloud drive problem since I started but two major hardware crashes.
This being said, known cause for file corruption, stay away, warning, achtung. But also, totally worth it for me. I quasi-recommend it. Don't!!! but also it's great!
Thank you for clarifying. Yes I have been mostly working on Event Commands, and one Script command to try to open a webpage. Thanks for your help with how to back them up.
Original thread: https://forums.rpgmakerweb.com/threads/where-in-a-projects-folders-can-i-find-the-scripts-ive-written-from-within-the-editor.120640/