Jump to content
Age of History Games

[Tool] Image to Province Converter

Recommended Posts

1 hour ago, Alkanores said:

doesn't work :classic_mellow:

Run the program with cmd.

Your picture shouldn't contain provinces, or a blob of a single color, which are a single pixel big. You shouldn't have a province, which enclaves another province comlete. Most probably, you have to split your ocean into two provinces.

Share this post

Link to post
Share on other sites
25 minutes ago, Alkanores said:

"Could not find or load main class Main", if I run .jar, zero reaction.

Are you really sure, that you inputted the command right?

java -cp AoC2_Conv_0.2.jar Main "Path to image" 1


Share this post

Link to post
Share on other sites


(generating takes a few minutes, depending on number of provinces, mine took about three)



Gives me this error with the following image:image.thumb.png.ac6f66c477a63a78c09f25a947d53391.png

Edited by Asmo

Share this post

Link to post
Share on other sites


I try to use this app to make a map of Iberian Peninsula with over 1400 provinces (water and some tiny islands not finished), but I got this error in log:

Start Comapre #586
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
        at java.util.LinkedList.checkElementIndex(Unknown Source)
        at java.util.LinkedList.get(Unknown Source)
        at Main.returnEdgeByDirection(Main.java:647)
        at Main.returnEdgeByDirection(Main.java:622)
        at Main.start(Main.java:69)
        at Main.main(Main.java:21)

Anyone know how to fix it? Previously I've made a map with Catalonia and it worked just fine...



Edited by mumia

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.

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.

  • Similar Content

    • By Dosen512
      Does anyone know how to add new provinces? I've tried learning it but I just can't do it right...I just want to add a few provinces in the ''Europe'' map so if anyone who knows how and is willing to add them I would appreciate it. 

    • By Hons
      AOH2 Province Exporter
      I made this program because i had to make it lol and i made it in JavaScript.
      This program exports provinces you have made with the Map Editor, so instead of using the Map Editor to export provinces and having to rename the provinces (which isn't the case for Map Editor 2.0) or deleting and remaking the province files with the Map Editor, which is very time consuming. You could use this to export the provinces that are displayed in the Map Editor
      The way it works is by using the Map Editor data / mapAoC2_v2.txt file and exporting it to generate provinces.
      The Instructions of how to use it is in the program.
      GitHub Download/Releases : https://github.com/honsda/AOH2-ProvinceExporter/releases
      Report bugs here : https://github.com/honsda/AOH2-ProvinceExporter/issues
      Exporting with the Website Version

      1. Upload the Map Editor data. ( or mapAoC2_v2.txt file, which is located in editor_data folder in your Map Editor folder.)
      Website Version of the Exporter: https://honsda.github.io/AOH2-ProvinceExporter/web
      Running the program in Windows
      1. Download the Zip file from releases in GitHub. or download from here (v1.0.3) 
      2. Extract the Zip file.
      3. Run it and do what it says.
      Also i only made an executable version of the program for Windows, you'll have to download the repository and run it by yourself.
      Running the program for Non-Windows users
      1. Download NodeJS for your OS.
      2. Download the repository in GitHub. (Press "Code" and click "Download ZIP")
      3. Extract the Zip file.
      4. Open cmd prompt and redirect to the extracted folder using `cd <your-path-here>`.
      5. Type `npm install` and wait for it to finish.
      6. Run the program by typing `node update.js` on the cmd prompt.
    • By Cameroon (saint) Emperor
      I've been trying but I don't know if it's even possible
      could someone tell me how and if it's possible in the first place ?
    • By SGamer
      Guys i remember few months ago i saw a topic on forum about and Mod Maker or whatever you call it
      in which the guy said that this tool can help to simplify modding such ass
      Easy GUI modification Palette Changer Civilization/Country creator etc. guys if you help me find that tool i will be thankful 🙏
      (btw sorry for being too much emotional xddddddd)
  • Our picks

  • Tell a friend

    Love Age of History Games? Tell a friend!

  • Posts

  • Create New...