Jump to content
Age of Civilizations
rudolfv

img2map tool

Recommended Posts

Hi everybody, i made tool that can convert your image to map for aoc2. Image must have colored provincies, provincies must have no holes, no exclaves. Example is attached below.

Manual: you must open with programm img2map your image(on Windows you can drag your image and drop on programm). Wait some time, then in folder provs you will get your provintion files.

In file conf.txt type + opposite line "must_simplifi" if you want smooth border path. Number opposit line "simplify_rate" means how much will be simplified border path.

Source codes also attached. Programm write in C++ with using SFML library.

Recent map of France made with my tool)

a.png

img2map1.2.zip source1.2.zip

Share this post


Link to post
Share on other sites
On 6/20/2019 at 11:43 PM, rudolfv said:

Hi everybody, i made tool that can convert your image to map for aoc2. Image must have colored provincies, provincies must have no holes, no exclaves. Example is attached below.

Manual: you must open with programm img2map your image(on Windows you can drag your image and drop on programm). Wait some time, then in folder provs you will get your provintion files.

In file conf.txt type + opposite line "must_simplifi" if you want smooth border path. Number opposit line "simplify_rate" means how much will be simplified border path.

Source codes also attached. Programm write in C++ with using SFML library.

Recent map of France made with my tool)

a.png

img2map1.2.zip 1.41 MB · 7 downloads source1.2.zip 3.68 kB · 1 download

Really? Doing this after I delete the game?☹

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...