View Single Post
  #1  
Old May 25th, 2008, 03:09 AM

MaxWilson MaxWilson is offline
Major General
 
Join Date: Mar 2007
Location: Seattle
Posts: 2,497
Thanks: 165
Thanked 105 Times in 73 Posts
MaxWilson is on a distinguished road
Default Annotated maps + tool

Sometimes I get tired of chasing down provinces for events and site-searching spells. "Bob has cast Arcane Probing. 1 new magic site was found in Anaphale. Goto commander." But of course, the commander isn't in Anaphale, so I have to scroll through the province list until I find it.

So, the logical thing to do was to annotate the map files so that Anaphale gets renamed with its province number. "1 new magic site was found in Anaphale 20." Then I can just hit "#" on the map, type in 20, and voila! it jumps to Anaphale. And of course I took one look at Glory of the Gods and decided I didn't want to annotate it by hand, so I did it with a quick Python script. And I share this script, and a couple of sample output files, with you.

Usage: mapfix.py <filename>

(Outputs new mapfile to screen, so I usually redirect it. "mapfix.py silentseas.map > silentseas_annotated.map" makes a file called silentseas_annotated.map. I didn't make the script do the writing because I didn't want to mess with the file permissions headache/security vuln.)

Hope it's useful to someone.

-Max

Edit: minor typo correction.
Attached Files
File Type: zip 609271-mapfix.zip (9.2 KB, 162 views)
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

["Memories of Ice", by Steven Erikson. Retranslated into l33t.]
Reply With Quote