I already shared this on the Discord but I thought it'd be prudent to put here as well. I've created a tool to help with creation and maintaining of XSTR IDs for mods called Etemenanki.
The application scans an entire directory recursively using provided Regular Expressions to find translatable strings and will verify the string ID is valid and doesn't conflict with another ID. It will provide new IDs if necessary and it will make sure all matching strings use the same ID.
It will then modify the IDs in the mod files and print out a valid tstrings.tbl for you.
--Version 1.1--
*Bugfixes
*Regex checkboxes for easy toggling
--Version 1.2--
*Adds output file sorting options
*Comprehensive scanning (scan first, then edit files making sure to not cause ID conflicts when generating new IDs)
*Ability to fill in numerical ID gaps
*Read only mode that prints the output file with all IDs exactly as they are
*Ability to ignore files and directories
--Version 1.3--
*Adds ability to handle new lines in regex searches
*Adds ability to specify ID numbers to skip during ID generation
You can read more about it on the
Github Repo.
Download