Jump to content
Age of History Games
Timm638

[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

EDIT: SOLVED. MAKE SURE YOUR IMAGE IS IN 32 BIT, OTHERWISE IT WON'T WORK.

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

 

image.png.138fc84556fa01d610a1a252bc14c450.png

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

Edited by Asmo
fixed

Share this post


Link to post
Share on other sites

Hi!

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
[2349,1121],[2350,1121],[2349,1122],[2351,1122],[2348,1123],[2352,1122],[2347,1123],[2353,1123],[2346,1124],[2354,1123],[2345,1124],[2344,1124],[2355,1124],[2343,1124],[2355,1125],[2353,1127],[2352,1128],[2355,1126],[2354,1127],[2352,1129],[2342,1123],[2356,1126],[2352,1130],[2341,1123],[2356,1127],[2352,1131],[2340,1123],[2352,1132],[2339,1123],[2352,1133],[2338,1123],[2336,1124],[2337,1123],[2353,1134],[2353,1135],[2335,1125],[2335,1126],[2354,1136],[2334,1127],[2355,1137],[2334,1128],[2355,1138],[2333,1129],[2356,1139],[2333,1130],[2357,1140],[2332,1131],[2331,1131],[2358,1141],[2357,1142],[2356,1143],[2330,1131],[2358,1142],[2356,1144],[2356,1145],[2355,1146],[2329,1130],[2355,1147],[2328,1130],[2355,1148],[2327,1130],[2355,1149],[2326,1130],[2355,1150],[2325,1130],[2349,1156],[2350,1156],[2324,1130],[2356,1151],[2351,1156],[2323,1130],[2348,1157],[2356,1152],[2356,1153],[2352,1157],[2322,1129],[2347,1158],[2356,1154],[2321,1129],[2346,1158],[2353,1158],[2357,1155],[2354,1158],[2320,1128],[2345,1159],[2319,1128],[2358,1156],[2355,1159],[2318,1128],[2344,1160],[2359,1156],[2317,1128],[2343,1160],[2360,1156],[2356,1160],[2316,1128],[2338,1156],[2339,1157],[2340,1158],[2341,1159],[2342,1160],[2361,1156],[2356,1161],[2314,1129],[2315,1128],[2336,1155],[2337,1156],[2313,1129],[2335,1155],[2362,1157],[2357,1162],[2312,1129],[2334,1155],[2358,1162],[2363,1158],[2359,1162],[2311,1128],[2333,1156],[2363,1159],[2360,1162],[2310,1128],[2363,1160],[2306,1131],[2332,1157],[2363,1161],[2361,1163],[2306,1130],[2309,1127],[2363,1162],[2361,1164],[2306,1129],[2305,1132],[2308,1127],[2331,1158],[2363,1163],[2306,1128],[2304,1132],[2307,1127],[2363,1164],[2362,1165],[2305,1128],[2303,1132],[2307,1126],[2330,1159],[2363,1165],[2305,1127],[2302,1132],[2306,1126],[2330,1160],[2305,1126],[2301,1132],[2330,1161],[2330,1162],[2300,1133],[2331,1163],[2299,1134],[2299,1135],[2332,1164],[2298,1136],[2333,1165],[2298,1137],[2334,1166],[2297,1138],[2297,1139],[2335,1167],[2335,1168],[2296,1140],[2296,1141],[2336,1169],[2334,1172],[2333,1173],[2332,1174],[2331,1175],[2330,1176],[2295,1142],[2337,1170],[2336,1171],[2335,1172],[2330,1177],[2295,1143],[2337,1171],[2329,1178],[2294,1144],[2329,1179],[2293,1144],[2292,1144],[2328,1180],[2290,1144],[2291,1143],[2327,1181],[2290,1143],[2290,1145],[2326,1182],[2289,1146],[2289,1147],[2325,1183],[2289,1148],[2324,1184],[2288,1149],[2323,1184],[2288,1150],[2289,1151],[2289,1152],[2322,1185],[2289,1153],[2321,1185],[2289,1154],[2289,1155],[2320,1186],[2289,1156],[2289,1157],[2319,1187],[2289,1158],[2319,1188],[2289,1159],[2319,1189],[2289,1160],[2319,1190],[2289,1161],[2319,1191],[2289,1162],[2319,1192],[2289,1163],[2319,1193],[2289,1164],[2319,1194],[2289,1165],[2319,1195],[2289,1166],[2289,1167],[2320,1196],[2288,1168],[2321,1197],[2299,1180],[2300,1181],[2321,1198],[2287,1169],[2298,1180],[2300,1182],[2287,1170],[2297,1180],[2300,1183],[2308,1191],[2309,1192],[2322,1199],[2287,1171],[2296,1180],[2300,1184],[2307,1191],[2309,1193],[2318,1202],[2322,1200],[2319,1203],[2287,1172],[2295,1180],[2300,1185],[2306,1191],[2309,1194],[2317,1202],[2287,1173],[2288,1174],[2289,1175],[2290,1176],[2291,1177],[2292,1178],[2293,1179],[2294,1180],[2309,1195],[2310,1196],[2311,1197],[2313,1199],[2314,1200],[2315,1201],[2316,1202],[2323,1201],[2320,1204],[2299,1186],[2305,1192],[2311,1198],[2312,1199],[2323,1202],[2321,1204],[2304,1192],[2311,1199],[2323,1203],[2322,1204],[2298,1187],[2323,1204],[2303,1193],[2297,1188],[2302,1193],[2296,1189],[2301,1194],[2295,1190],[2300,1195],[2299,1195],[2294,1191],[2294,1192],[2295,1193],[2296,1194],[2297,1195],[2298,1196],
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...

https://ibb.co/PYvYL2K

 

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.

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.


  • 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) 
      AOH2-ProvinceUpdater-v1.0.3.rar
      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...