TWTECV: TW Text Editor, Cleaner & Validator v1.20
M2TW/Kingdoms
Requires: Java 6 (1.6) or later.
This tool provides functions to edit and clean up (restructure and reformat) various M2TW text files and to validate some aspects of them. The files are:
- export_buildings.txt (EB)
- export_units.txt (EU)
- export_vnvs.txt (VNV)
- export_ancillaries.txt (EA)
- historic_events.txt (HE)
..and also, optionally, their associated enum files (e.g. export_descr_buildings_enums.txt).
PLUS: some image tools.
NOTE: it is not an EDB/EDU/EDCT/EDA editor. It does provide some special validation but not of these files themselves.
Features:
- A graphical user interface for viewing and editing text entries. For buildings: the ability to copy entries from one culture to another or remove them from a culture.
- Orphan text: text entries that are not associated with buildings/units/traits/ancillaries. The tool lets you select which ones to delete.
- Filtering options to display only problem entries: missing names, descriptions & incorrect effects descriptions.
- Usage check (validation): search various files (commands, conditions, etc.) for usages of buildings/units/traits/ancillaries/HEs that do not exist, plus report any unused units/traits/ancillaries/HEs: ones that have no usage in those files. HE also reports missing images (culture aware) and videos.
- Reformatting options to help reduce text file size and increase readability.
- Buildings: auto-reduce function to restructure a building's culture entries to reduce duplication of text.
- Traits/Ancillaries: effects description auto-builder.
- HEs: useful functions for adding, renaming & removing entries, duplicating entries and copying images.
- Effects Description Config: define the text, format and other parameters of each Effect type to facilitate effects description auto-build and checking for descriptions that do not match the trait's/anc's actual effects.
- Image Tools
- Portrait Viewer/Replicator: view portraits, duplicate to extend pool counts, create dead portraits.
- Building Image Replicator: quickly duplicate, name and position in the folder tree building image(s) for one or multiple cultures.
- Missing Shadows: find and optionally autofix images that have a missing shadow effect in their alpha channel.
Details are in the manual which may be downloaded separately if you wish to read it without downloading the tool. (The manual is also included in the tool.)
For example, using this tool to cleanup EB/EU on TATW 3.2 the line counts went from...
EB: 15,777...to...
EU: 6,271
EB: 3,039
EU: 1,419
That cleanup included: all keys/values on same line, remove all blank lines and duplicated comments, Auto-Reduce all buildings, remove all orphan EB/EU entries. The result is much shorter, consistently formatted and, therefore, easier to work with.
Download:
EXE - Windows application (this is not an installer)
JAR - for other operating systems or an alternative to using the EXE for Windows
Manual
Installation:
Just unzip. Into the mod's folder is most convenient...
Originally Posted by The Manual
![]()
![]()
![]()
![]()
![]()
![]()




Reply With Quote










































