- Joined
- Oct 29, 2016
- Messages
- 103
- Reaction score
- 21
- Primarily Uses
***Make sure you do not use the original map files or you can risk losing data. Run this script in a different location that's not your game folder.***
Have you ever wanted to extract all the dialogue from your game to give it a once over?
Did you ever want to bulk edit existing dialogue in your project?
Well now you can, thanks to a handy program I whipped up while working on my game Banbard(check it out on steam).
This is not a plugin for MV but rather a stand alone program in C++ (I couldn't find a good topic to post this on.)
Library Required: JsonCpp
The program is pretty straight forward where you can select your file(s) and then tell it to either generate a txt file, or have the dialogue from a txt file overwrite json file. This works by looking at the json file and pulling anything that has the parameter code of 401.
Limitation: when editing multiple files at a time you cannot skip files(i.e do map files 1-5 and 7-10 at the same time).
You also must not edit the total number of lines of the text file since the script is expecting the total amount of dialogue to match up. (i.e if the json file has 100 lines of a dialogue and the txt file has 101 lines the script will generate an error.).
Finally some errors might cause your json or txt file to save as empty. But as long as you don't divert from instructions you'll be fine.
Instructions.
1. Set up your folder that has the Dialogue Extractor and injector script with the jsonCPP library as stated above.
2. Copy and paste any map files you want to use for this script into the same folder.
3. Run the file, select the starting and ending numbers of the files you want to work with (ascending order). The numbers you give must be three digits long (nothing over 999 maps and set any digits lower than 100 with the appropriate 0's. Such as 005 or 050).
4. When asked if you want to generate a text file or inject txt file dialogue into a json enter '1'.
5. Wait for the program to finish and check that your txt file was generated correctly.
6. Make any dialogue changes needed without changing the total amount of lines in the txt file.
7. Once you are ready run the program again, and when it asks you if you want to generate a text file or inject txt file dialogue into a json enter '2' this time.
8. Done! Your json file has been updated with new Dialogue.
9. To test this out BACKUP YOUR ORIGINAL JSON MAPS and insert your new one's into your game folder and run your project.
Download
Have you ever wanted to extract all the dialogue from your game to give it a once over?
Did you ever want to bulk edit existing dialogue in your project?
Well now you can, thanks to a handy program I whipped up while working on my game Banbard(check it out on steam).
This is not a plugin for MV but rather a stand alone program in C++ (I couldn't find a good topic to post this on.)
Library Required: JsonCpp
The program is pretty straight forward where you can select your file(s) and then tell it to either generate a txt file, or have the dialogue from a txt file overwrite json file. This works by looking at the json file and pulling anything that has the parameter code of 401.
Limitation: when editing multiple files at a time you cannot skip files(i.e do map files 1-5 and 7-10 at the same time).
You also must not edit the total number of lines of the text file since the script is expecting the total amount of dialogue to match up. (i.e if the json file has 100 lines of a dialogue and the txt file has 101 lines the script will generate an error.).
Finally some errors might cause your json or txt file to save as empty. But as long as you don't divert from instructions you'll be fine.
Instructions.
1. Set up your folder that has the Dialogue Extractor and injector script with the jsonCPP library as stated above.
2. Copy and paste any map files you want to use for this script into the same folder.
3. Run the file, select the starting and ending numbers of the files you want to work with (ascending order). The numbers you give must be three digits long (nothing over 999 maps and set any digits lower than 100 with the appropriate 0's. Such as 005 or 050).
4. When asked if you want to generate a text file or inject txt file dialogue into a json enter '1'.
5. Wait for the program to finish and check that your txt file was generated correctly.
6. Make any dialogue changes needed without changing the total amount of lines in the txt file.
7. Once you are ready run the program again, and when it asks you if you want to generate a text file or inject txt file dialogue into a json enter '2' this time.
8. Done! Your json file has been updated with new Dialogue.
9. To test this out BACKUP YOUR ORIGINAL JSON MAPS and insert your new one's into your game folder and run your project.
Download
Attachments
Last edited: