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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old August 5th, 2009, 11:06 AM

Kojusoki Kojusoki is offline
Sergeant
 
Join Date: Oct 2006
Posts: 290
Thanks: 4
Thanked 0 Times in 0 Posts
Kojusoki is on a distinguished road
Default a noob map modder question

Hi guys
For a long time I have been thinking about creating my own map, an ancient europe. I was searching the forum and there are a lot of tutorials, hints etc but for nation modding/creating - almost nothing about map making. Is it so easy or so sophisticated?

So far, I understand that it works this way:
-I have a jpg file (like map of europe)
-I convert it to a tga format file (why!?)
-I place borders, extra graphics etc, just for HUMANs (I mean Dominions software doesnt care about borders etc)
- I place A SINGLE PIXEL which is completly white (RGB 255,255,255) in each province. (how do I do this?)
Question: how a computer knows which pixel is which and in which province?
How do I number the provinces? According to raws? Columns?
-I create a txt file, in which I use command like neighbours etc, so the Ai will now where are the connections
-I change this file from txt extension to .map (why?)
-I am removing bugs

The "adventure" map:
when the previous one is working, I am adding special sites, starting positions etc

So it seems pretty easy - question is how to make those extra white pixels, how to give them numbers etc
Reply With Quote
  #2  
Old August 5th, 2009, 12:15 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: a noob map modder question

They're numbered sequentially from top left to bottom right iirc. This is a rule and you can't change them afterward, so you have to get them right to start with.

You make them with a graphic/paint app, basically.
Reply With Quote
  #3  
Old August 5th, 2009, 01:19 PM

Kojusoki Kojusoki is offline
Sergeant
 
Join Date: Oct 2006
Posts: 290
Thanks: 4
Thanked 0 Times in 0 Posts
Kojusoki is on a distinguished road
Default Re: a noob map modder question

one more thing - how to make a map wraparound?

Sombre: are you sure if it is not starting from the left bottom, then it goes to the right, move one pixel up, comes back from right to left, go up one line and now from left to right until the very top line?
Reply With Quote
  #4  
Old August 5th, 2009, 02:22 PM

Kojusoki Kojusoki is offline
Sergeant
 
Join Date: Oct 2006
Posts: 290
Thanks: 4
Thanked 0 Times in 0 Posts
Kojusoki is on a distinguished road
Default Re: a noob map modder question

shame on me..there is a map modder manual in the game directory....
Reply With Quote
  #5  
Old August 5th, 2009, 02:58 PM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: a noob map modder question

-I have a jpg file (like map of europe)
-I convert it to a tga format file (why!?)
TGA & RGB are the image formats recognized by the game engine. Different image file types store the image data in different structures. To put it another way if one is working with square holes, you need square pegs, not round ones.

-I place borders, extra graphics etc, just for HUMANs (I mean Dominions software doesnt care about borders etc)
Correct. The game doesn't care about borders, but it makes life easier for us humans. Drawing borders is not a requirement. It is worth noting that making the borders red (255,0,0) will help the map editor guess borders a little better. Still not 100% accurate, but better. I could go into a more technical explanation of why, but I will just leave it at that.

- I place A SINGLE PIXEL which is completly white (RGB 255,255,255) in each province. (how do I do this?)
Depends on which graphics editing software you use. I use GIMP. Generally, you can use a brush or pen with a size of 1 pixel and draw the pixel in the center of the province.

-Question: how a computer knows which pixel is which and in which province?
The game reads the map (pixel by pixel) starting in the lower right hand corner. Right to left from bottom to top. Each pixel is tested for color. The first white pixel becomes province number 1, the next province number 2, etc. The coordinates of those provinces is likely stored with the province data.

-How do I number the provinces? According to raws? Columns?
Let the map editor worry about numbering the provinces. Load the map image into the editor then save the map. It will create a ".map" file with whatever terrains and neighbors you have set for the appropriate provinces. See the explanation of how the computer knows which pixel is what province for more information.

-I create a txt file, in which I use command like neighbours etc, so the Ai will now where are the connections
Again, use the map editor for setting neighbors and creating your base .map file.

-I change this file from txt extension to .map (why?)
-I am removing bugs
The file type and contents are still text, but the game looks for files with the extension .map in the map folder. If it looked for .txt then you might inadvertently have a map listed in game creation called something like "ReadMe" which would likely crash the game since it was not a file intended to be seen as a map.


The "adventure" map:
when the previous one is working, I am adding special sites, starting positions etc
Yes. But it is worth noting that you do not want to load a scenario/adventure map back into the map editor and then overwrite your hard work as the map editor will not retain the added commanders, sites and other unsupported map commands. If you need to use the map editor again on a heavily modified map, I highly recommend making a backup before loading it into the editor, and then after saving any changes, go to your backup and copy/paste the additional content back into the resulting editor file.

So it seems pretty easy - question is how to make those extra white pixels, how to give them numbers etc
It is pretty easy. Easier than it sounds once you get the hang of it. It can also be tedious setting neighbors and such. I am currently working on an alternative to the in game map editor which I hope will make it even easier, but that is a subject for another thread and another time.
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #6  
Old August 5th, 2009, 04:28 PM

Kojusoki Kojusoki is offline
Sergeant
 
Join Date: Oct 2006
Posts: 290
Thanks: 4
Thanked 0 Times in 0 Posts
Kojusoki is on a distinguished road
Default Re: a noob map modder question

thank you very much Ballbarian!
I also read the manual - it seems creating maps is not so bad. The biggest problem is to draw a nice looking and interesting map...
Reply With Quote
  #7  
Old August 5th, 2009, 04:30 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: a noob map modder question

See I had things reversed. Bottom right to top left, not t'other way around. Comes from not making maps.
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 06:07 PM.


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