Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Map Tool

Map Tool 5 years, 4 months ago #1

  • Garnier
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 1258
Download MapTool

After downloading, extract the MapTool folder, and then run MapTool.exe to update it.

This tool has all of my mapmaking utilities, with options for running them from a batch file.

It includes my random map generator, minimap generator, and as of today a tool for checking terrain bmp files for road errors.

The batch files are in the Work folder.

I have two example uses included:


Road Check Example

Run road_check_example.bat. This will run MapTool.exe from the command line and check the antietam bmp found in the road_check_example folder, and print out the locations where road errors were found. For me it finds errors in these places:

1772, 1768
3490, 2767
2236, 1175
2197, 807
2338, 1618
2529, 1730
2258, 1466

If you use it on another map that has a different csv file, you might need to update the roads.txt file which specifies what grayscale values are used for the centers of roads, since these are what the tool looks at to find errors.

Hopefully this will help mapmakers catch road errors in the future, and maybe to fix antietam.



Random Map Example

Run randommap_example.bat. This will generate a random map terrain bmp and minimap in the randommap_example folder.

There are a lot of random map settings that can be tweaked in the randommap_example.ini file.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
The following user(s) said Thank You: Blaugrana

Re: Map Tool 5 years, 4 months ago #2

  • Martin James
  • ( User )
  • OFFLINE
  • Brigade Commander
  • Posts: 517
Your random maps are excellent.

Thanks very much for this tool Garnier. And for all your other efforts to support the game.

Martin

Re: Map Tool 5 years, 4 months ago #3

  • Crikey
  • ( User )
  • OFFLINE
  • Regimental Commander
  • Posts: 379
Thanks Garnier.

An innovative & quality product.

Hope to use these soon.

Re: Map Tool 5 years, 4 months ago #4

  • rudy
  • ( User )
  • OFFLINE
  • Grunt
  • Posts: 193
How does it work?

I've clicked on the map tool icon, it updates and then I can choose to click on two buttons; create random map and create minimap. But neither button is clickable.

It doesn't seem to be usable by an idiot.

Re: Map Tool 5 years, 4 months ago #5

  • Garnier
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 1258
It doesn't seem to be usable by an idiot.

It's not, you need to know something about how the maps work, and I gave instructions in the original post.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign

Re: Map Tool 5 years, 4 months ago #6

Nice job Garnier! It is good to see a few more maps released to the community.
Hancock the Superb

Re: Map Tool 5 years, 4 months ago #7

  • Garnier
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 1258
Have added a little GUI for the road checker. Run MapTool.exe, click Check Roads for map, and you'll see this.

Enter the road grayscale values from the csv file, and then drag the map bmp into the gray box. It will show you where the roads and road disconnects are, like so:





Then you can go into the bmp file and fix the road errors.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign
The following user(s) said Thank You: Jack ONeill, Blaugrana

Re: Map Tool 5 years, 4 months ago #8

The road checking tool is very nice. It found a spot I had missed by searching for the errors manually. This new gui interface makes it even better. Great job, Garnier!
I can make this march and I will make Georgia howl.

Re: Map Tool 5 years, 4 months ago #9

  • Saddletank
  • ( User )
  • OFFLINE
  • Division Commander
  • Posts: 2134
Fantastic stuff!

Thank you very much.
HITS & Couriers - a different and realistic way to play SoW MP.

Re: Map Tool 5 years, 4 months ago #10

  • Garnier
  • ( User )
  • OFFLINE
  • Moderator
  • Posts: 1258
@MTG

If you've fixed the antietam bmps, could you post them?

If not I'll eventually do them myself, but I also have to figure out what colors the roads use since the csv files aren't available, and they don't appear to be consistent.
Play Scourge of War Multiplayer! www.sowmp.com
Also try the singleplayer carryover campaign

Re: Map Tool 5 years, 4 months ago #11

Garnier wrote:
If you've fixed the antietam bmps, could you post them?

Yes, I'm going to update the Couriers & Maps mod and include these. It took a bit of time to find the correspondence between the gray scale and map features. They added/changed a few. For the road system just change 135 to 130, (new sunken road), in the example you posted and add 146 for fords. I kept all the other values such as movement, fatigue, etc. the same as the Gettysburg values. It all seems to work.
I can make this march and I will make Georgia howl.

Re: Map Tool 5 years, 4 months ago #12

  • Davinci
  • ( User )
  • OFFLINE
  • Corps Commander
  • Posts: 2690
Garnier - I would say that as long as you use the greyscale color of 100 for the center road to fix the errors, you should be fine.

This colour will show road even if the color is used on a trail.

Considering that you are only fixing a certain amount of pixels, it would probably go un-noticed when switching the names between road \ trail.
.........................................
EDIT Post
MTG - answered before I noticed - dis-regard this post!

davinci
The only true logic is that, there is no true logic!

Re: Map Tool 1 month, 1 week ago #13

  • noonanda
  • ( User )
  • OFFLINE
  • Cannon Fodder
  • Posts: 7
Figured it out

Re: Map Tool 1 month, 1 week ago #14

  • noonanda
  • ( User )
  • OFFLINE
  • Cannon Fodder
  • Posts: 7
Disregard, fixed it
  • Page:
  • 1
Moderators: Shirkon, Chamberlain, Flanyboy
Time to create page: 0.75 seconds