.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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, 137 views)
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

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

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:43 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.