Introduction
Spellchecking text in your game is a bit of a pain, isn't it? There's no simple way to just find every typo in the whole project, or at least to look at all the text at once... or at least there wasn't until now 😉
This plugin will take the contents of every message in your project and put it all into a single file, organised by maps and events. You'll then by able to read through it in a text editor of your choice and easily spot any typos. Or even paste it into ChatGPT to help spot mistakes which are valid words that are used wrong.
How to use it
Download the attached file, add it as a plugin, run the game, open devtools (F12), select the console tab, type
Optionally you can add a
If you're trying to find typos, I'd recommend adding "EV" to your personal dictionary, so that event names don't register as one. Same with "Event", "Common", "Map", "Choice" and "Troop" if your game's language isn't English.
When it comes to fixing any mistakes you find, there are two ways. You can use the editor, open the map where the mistake is from, and then use Ctrl+F to search for the event's name.
Alternatively, open the corresponding map json file (in the data folder in your project), search for the mistake, and correct it there. Just make sure you have those files backed up first.
If you're using an LLM to spot further mistakes, I recommend only pasting small fragments of the file at a time, e.g. a single map, or even a part of a map if it's particularly large. It tends to work reasonably well.
Terms
This plugin is available under the MIT Licence. You're free to use it in any games, commercial or not, or use the code in your own plugins. Credit is appreciated if you find it useful, but not required.
Spellchecking text in your game is a bit of a pain, isn't it? There's no simple way to just find every typo in the whole project, or at least to look at all the text at once... or at least there wasn't until now 😉
This plugin will take the contents of every message in your project and put it all into a single file, organised by maps and events. You'll then by able to read through it in a text editor of your choice and easily spot any typos. Or even paste it into ChatGPT to help spot mistakes which are valid words that are used wrong.
How to use it
Download the attached file, add it as a plugin, run the game, open devtools (F12), select the console tab, type
runExtractor() and press Enter. This will create an extractedText.txt file in your project's folder. What you do with that file is completely up to you. Optionally, you can change a plugin parameter to instead create a folder called extractedText, with separate files for each map.Optionally you can add a
<NoExtraction> notetag to events or maps - those will be skipped in extraction.If you're trying to find typos, I'd recommend adding "EV" to your personal dictionary, so that event names don't register as one. Same with "Event", "Common", "Map", "Choice" and "Troop" if your game's language isn't English.
When it comes to fixing any mistakes you find, there are two ways. You can use the editor, open the map where the mistake is from, and then use Ctrl+F to search for the event's name.
Alternatively, open the corresponding map json file (in the data folder in your project), search for the mistake, and correct it there. Just make sure you have those files backed up first.
If you're using an LLM to spot further mistakes, I recommend only pasting small fragments of the file at a time, e.g. a single map, or even a part of a map if it's particularly large. It tends to work reasonably well.
Terms
This plugin is available under the MIT Licence. You're free to use it in any games, commercial or not, or use the code in your own plugins. Credit is appreciated if you find it useful, but not required.