Current Version: Version 0.6.1 (July 08 2015)
Required: .Net Framework v4.0 or better
Download: http://www.twcenter.net/forums/downl...o=file&id=3285
What does TW Script Editor do?
TW Script Editor is a program which can be used to both edit and validate scripts for Rome: Total War, Barbarian Invasions, Alexander: Total War, Medieval II Total War and Kingdoms. The program is a text editor that provides syntax highlighting for scripts as well as the ability to validate the currently loaded script.
As this is still very much not a full release only certain items are checked. All events & conditions are checked, the same as for ATVTW, this includes all monitor_event, monitor_condition, if and while blocks. Other things that are at least partially checked include spawn_army blocks (unit lines), add_event blocks, and valid names for all script and console commands. Exact syntax for other script commands and all console commands have not been completed yet.
How to use TW Script Editor:
When you first launch TW Script Editor you will be asked to select a mod setting. These settings are the same as those used by ATVTW and any changes made in one program to the settings will affect the other. When the settings are selected, as long as all required files are present, the files will parsed into the program and will be ready to use for validation of the script. At this point an empty script is on screen to create an entirely new script from. To work on an existing script simply open the script and it will appear in the main window. To validate the script press the validate script button. Any errors or warnings will be displayed in error box below the editing window or a message indicating no errors were found will be displayed. Double click on an error or warning to go to that point in the script.
The colors used for syntax highlighting are controlled by the SyntaxHighlightingColors.xml file. Change any of the colors either to an html color (i.e. blue, black, red, etc) or a hexadecimal color code and restart the program for the changes to take affect.
Required Files:
data/export_descr_character_traits.txt
data/export_descr_ancillaries.txt
data/descr_cultures.txt
data/descr_names.txt
data/descr_sm_factions.txt
data/export_descr_buildings.txt
data/export_descr_units.txt
data/export_descr_advice.txt
data/text/historic_events.txt
descr_regions.txt in either maps/base/ or maps/campaign/imperial_campaign/ or maps/campaign/barbarian_invasion/
data/text/barbarian_invasion_regions_and_settlement_names.txt or data/text/imperial_campaign_regions_and_settlement_names.txt
Required M2TW Files:
data/descr_missions.txt
data/descr_religions.txt
Optional RTW File:
data/descr_beliefs.txt
Change log for version 0.6.1
View Previous Change Logs
Spoiler Alert, click show to read:
Credits:
This program makes use of two items not of my creation. The first is the AvalonEdit text editor (the main window) and the second is the find/replace dialog. The first is released under the GNU LGPL and the second under the Code Project Open License (CPOL). Source and object code is available at the first pair of link, the licenses at the second pair of links.