It's been sitting in the download section for quite a while, but I haven't gotten around to creating a thread for it here till now... so here we go:
Download link: http://www.twcenter.net/forums/downl...o=file&id=2429
Rome: Total War Settlement Locator v126.96.36.199
- What does it do?
Tells you strategy map coordinates of all settlements. It works for both RTW-and BI-based mods. Probably works for Alexander-based mods, too, but I don't have it so I can't be sure.
- How does it work?
It loads in information from descr_regions.txt, then uses it to locate
settlements on map_regions.tga (well, map_regions.bmp, actually).
- What programming language is this written in? Do I need anything to run it?
It's an AutoIt v3 script. The .exe file is a compiled version of the source code in the .au3 file. The .exe should be able to run on any Windows box without any additional run-time libraries.
- How do I use it?
1. First, you need to convert your map_regions.tga into map_regions.bmp. Leave it in the same folder. There are plenty of free programs you can use for this, so it should be easy. I used XnView.
You only need to do this once per mod. That is, unless you modify
map_regions.tga, then you'll need to generate a new map_regions.bmp, too.
2. Once map_regions.bmp has been created, just run this script/program, select the folder your mod lives in, and click ok. It takes 15-20 seconds to process everything (on my box), then it'll give you the results in a nice, compact table. Settlement coordinates will be in the right-most column.
Here is the window you'll see while it's scanning the map:
When it's done, it'll pop up another window like this:
- My anti-virus scanner says the .exe file is infected!
Some anti-virus products freak out when they see compiled AutoIt scripts. AutoIt uses the UPX packer to make the .exe files it generates smaller. Nothing wrong with using a packer, but some anti-virus program don't like them (probably because they don't know how to unpack it) so they get all paranoid and throw a feat. Feel free to ignore them.
If you're still concerned, I've attached the source file so you can download
AutoIt v3 and compile it yourself, or even run the script directly, without
compiling. You can download AutoIt here: http://www.autoitscript.com/
More info about UPX (Ultimate Packer for eXecutables) can be found here:
- "It doesn't find settlements that are on the map's edges!"
Nope, and it's not going to. AI never attacks such settlements, so you shouldn't be putting them there in the first place.
- "It doesn't work!" or "It gives wrong numbers!"
Well, it's a pretty simple script. It took 1 weekend of coding and testing to
make and there isn't a whole lot of "sanity" checks, so if your
descr_regions.txt is a mess, or colors don't match between descr_regions.txt and map_regions.tga, it's possible something might not work. If you run into a problem, you can send me (HouseOfHam) a PM on http://www.twcenter.net/forums
I've tested it on Vanilla RTW/BI and several mods (RTR VII:TIC, RTR VII:FOE beta, ExRM, and RS2 beta). It seemed to work for me, so I hope it works for you, too.
Have fun modding!
v188.8.131.52: Also added headers to the result output window that appears after re-sorting.
v184.108.40.206: Added headers to the result output windows. Added a new column to show settlement coordinates in the map_regions.tga/bmp file.
v220.127.116.11: Fixed a descr_regions.txt parsing bug that caused the last settlement configured in the file to be missed
for vanilla RTW-based mods, which then caused the settlement to be reported as missing from descr_regions.txt.
v18.104.22.168: Ability to sort output by any of settlement name, region name, faction, or rebel tribe has been added.
Also, improved detection of multiple settlements per region (now the program will give a warning and continue, rather than abort)
and settlements marked on the map but not configured in descr_regions.txt.
v22.214.171.124: The output window is now alphabetically sorted by settlement name.
v126.96.36.199: Tweaks to RGB color parsing code to make it work when the numbers are separated by more than one space/tab in descr_regions.txt.
v188.8.131.52: Fixed the code for parsing RGB values in descr_regions.txt so it now works properly when tabs are used as separators. Previously only worked with spaces.
v184.108.40.206: The original release