Jump to content
Age of History 3
New guy whos lost

(SOLVED) When loading Custom map it Crashes "StackOverflowError"

Recommended Posts

I NEED HELP!!!
I've done everything i needed to do, and the "how to create map" topic has been dead for 4 years and this is a unique problem to me...
so with a debug or smth i was able to find this... 

Caused by: java.lang.StackOverflowError
at java.base/java.lang.Exception.<init>(Exception.java:67)
at java.base/java.util.zip.DataFormatException.<init>(DataFormatException.java:51)
at java.base/java.util.zip.Inflater.inflateBytesBytes(Native Method) at java.base/java.util.zip.Inflater.inflate(Inflater.java:376) at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:177)
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:123)
at java.base/java.io.DataInputStream.readInt(DataInputStream.java:381)
at com.badlogic.gdx.graphics.PixmapIO$CIM.read(PixmapIO.java:125)
at com.badlogic.gdx.graphics.PixmapIO.readCIM(PixmapIO.java:55)

at age.of.civilizations2.jakowski.lukasz.Province.loadProvinceBG(Province.java:399) at age.of.civilizations2.jakowski.lukasz.Province.loadProvinceBG(Province.java:406)
age.of.civilizations2.jakowski.lukasz.Province.loadProvinceBG(Province.java:406) 
(age.of.civilizations2.jakowski.lukasz.Province.loadProvinceBG(Province.java:406) repeats so on and so forth)


So bro what is happening? any help? is it because of the low amount of provinces (edit: now 113 provinces.13 prvs i am adding more i just wanna test)? does it have to do with the Background (BG I don't really think so as i already have a bg)? does it have to do with the .jar file the AoC2.jar ? edit:it doesn't have to do with the .jar file, i think. i have so many questions... ANY HELP if so thx 🙂.

Edit: The maps i've downloaded worked but my map doesn't. It doesn't make sense to me how my map won't load even if everything is exactly the same except the province count and all that other stuff...

AEVNOTFIXED.zip

Edited by New guy whos lost
SOLVED

Share this post


Link to post
Share on other sites

2 hours ago, 7terr said:

no regions and no scenarios

 

Wait can i ask, how exactly?
bc i added new provinces and it comes back. And once again thx for your help.

edit: i'm sorry i believe it happens if i use "J" to delete a province in the map editor it only removes the text in "mapAoC_v2" to remove the visual stuff smth, but not the file so that means i should delete the file too... I'm wrong

 

Edited by New guy whos lost
might be the problem

Share this post


Link to post
Share on other sites

7 hours ago, New guy whos lost said:

Wait can i ask, how exactly?
bc i added new provinces and it comes back. And once again thx for your help.

edit: i'm sorry i believe it happens if i use "J" to delete a province in the map editor it only removes the text in "mapAoC_v2" to remove the visual stuff smth, but not the file so that means i should delete the file too... I'm wrong

 

i created a java program that converts the mapAoC2_v2 file into province files and you would need to use it if you want to use the j key 

 

meftpf.exe

Share this post


Link to post
Share on other sites

On 6/28/2023 at 12:08 AM, 7terr said:

did you read the readme.txt file

I read the reamde.txt file and i did what was needed, but it still doesn't work and yeah the J key problem was solved but not the StackOverflowError...

Edited by New guy whos lost
''

Share this post


Link to post
Share on other sites

Don't put the province files generated by the map editor in the data/scales/provinces/1 folder (the province files in the data/scales/provinces/1 folder should say something like  image.png.0456736050b0da4219cbeada152d9faf.png after launching the AoC2.jar file, not

image.png.db02b82fc83f8609c95fd7fa782f117a.png)

Edited by 7terr

Share this post


Link to post
Share on other sites

14 hours ago, 7terr said:

Don't put the province files generated by the map editor in the data/scales/provinces/1 folder (the province files in the data/scales/provinces/1 folder should say something like  image.png.0456736050b0da4219cbeada152d9faf.png after launching the AoC2.jar file, not

image.png.db02b82fc83f8609c95fd7fa782f117a.png)

THX! I'M SO STUPID. how did i not know thx! again thx! again thx! again thx! again thx! again thx!again thx! again thx! again thx! again thx! again thx! again thx! again thx! i didn't have to be so annoying! bro thx again. 😅

Share this post


Link to post
Share on other sites

On 7/1/2023 at 12:17 AM, 7terr said:

Don't put the province files generated by the map editor in the data/scales/provinces/1 folder (the province files in the data/scales/provinces/1 folder should say something like  image.png.0456736050b0da4219cbeada152d9faf.png after launching the AoC2.jar file, not

image.png.db02b82fc83f8609c95fd7fa782f117a.png)

I have a problem with making maps and after looking through these forums I'm confused by everything

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.




  • Our picks

    • Age of History 3 - October 23rd, 2024 - Official release date
      Age of History 3 - Official release date

       

      Steam: October 23rd, 2024

      Android: When it's ready

      iOS: When it's ready

      Epic: When it's ready

       
      • 0 replies
    • Campaign: Small Scenarios
      In this topic, share your ideas for Campaign scenarios.

      These scenarios focus on a small part of the map, with the rest designated as wasteland.

       

      For example, a scenario of the Reconquista in 1054, where gameplay takes place only on the Iberian Peninsula.

      What are your ideas for small historical scenarios?

       


       
      • 105 replies
    • Events - Common events for every civilization in the game
      Hi,
      in this topic, I am interested in your ideas for events that can happen for every Civilization in the game.
      I'm also interested in Missions for every Civilization.

      Here is some example, have more than 10k army, have more than 5000 gold, build 10 buildings, recruit an Advisor, increase tax efficiency 20 times, be largest  producer of some resource in the world, unlock 5 Civilization legacies etc.
      • 196 replies
    • First preview of the Alpha version of Age of History 3
      First preview of the Alpha version of Age of History 3, YouTube.
      Release date: When it's ready 😛 Subscribe for more!



       





       
      • 204 replies
    • Land units - Ideas AoH3
      AoH3 will have different types of land units.

      In this topic we will write ideas for new land units. 

       

      So the AoH 3 will have new battle system.


      Representation of the battlefield in the game.


      Land units will be grouped into 3 types. Each unit will have a different recruitment cost, attack, defense, movement speed and upkeep.

      Groups determine the placement of units on the battlefield.


       

      Each unit can be unlocked by researching technology and then upgraded.

       

      Here is the current list of units with upgrades:

      First line:

      Warrior -> Light Footmen -> Heavy Infantry -> Infantry -> Line Infantry -> Modern Infantry

      Hoplites -> Spearmen -> Pikeman -> Elite Pikeman -> Musketeer -> Riflemen -> Mechanized Infantry -> Modern Mechanized Infantry

      First line side:

      Horseman -> Elite Horseman -> Cavalry -> Tank -> Modern Tank

      Second line:

      Archer -> Bowmen -> Crossbowman -> Elite Crossbowman

      Canon -> Field Cannon -> Artillery -> Modern Artillery

      Early Airplane -> Airplane -> Modern Airplane

       

      This is a very early version, so maybe something should be changed?

      Or maybe an idea for a new type of unit with upgrades? I'm waiting for your suggestions.

       
      • 227 replies
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Age of History Games