.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

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old May 25th, 2008, 08:33 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Annotated maps + tool

Nice idea! In a game I am playing in, somebody renamed ALL his commanders / spies to carry the province number in the name so that he could determine exactly WHERE somebody got mindhunted. The messages window clearly could use an improvement there.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #3  
Old May 25th, 2008, 11:29 AM

Jagdpanther Jagdpanther is offline
Corporal
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Jagdpanther is on a distinguished road
Default Re: Annotated maps + tool

Excellent Idea. Having to search for a province IS annoying.

Unfortunately, about half of my play is on random maps which don't have "#landname" lines.

I guess I'll try modifying your code:
For each #terrain line that does NOT have a corresponding #landname line: add a #landname line (with your province number fix)

I can get names from the dom executable ('strings dom3_x86')
The only issue is I can't find a <terrain type> list in docs or un-official mod guide. Anyone have a <terrain type> list? (I don't want to randomly give a mountain range the name of an ocean.)
Reply With Quote
  #4  
Old May 25th, 2008, 11:40 AM

Jagdpanther Jagdpanther is offline
Corporal
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Jagdpanther is on a distinguished road
Default Re: Annotated maps + tool

Never mind. This post shows the different terrain types:

http://www.shrapnelcommunity.com/thr...&Number=487342
Reply With Quote
  #5  
Old May 26th, 2008, 02:32 AM

Jagdpanther Jagdpanther is offline
Corporal
 
Join Date: Mar 2004
Location: Los Angeles, CA
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Jagdpanther is on a distinguished road
Default Re: Annotated maps + tool

Attached is a zip with a modified version of MaxWilson's mapfix.py, that I call addProvinceNo. The big difference is that if the .map file doesn't have #landname lines, this script will add those names.
Attached Files
File Type: zip 609522-addProvinceNo.zip (6.1 KB, 129 views)
Reply With Quote
  #6  
Old May 26th, 2008, 05:51 PM

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 Re: Annotated maps + tool

Thanks!
__________________
Bauchelain - "Qwik Ben iz uzin wallhax! HAX!"
Quick Ben - "lol pwned"

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

Bookmarks


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 11:47 AM.


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