Page 1 of 1

1.04 editor problems

Posted: Fri Aug 29, 2008 1:29 pm
by AlvaroSousa
made a new ww2.map. Loads fine with standard 1939 scen and the game works. I modded some cities for production. I did not change the map itself.

I then modded the 1939.scn file simply to add more units to the game.

It loads but when I click the check mark to run the game it locks up.

In the error.log I get this.
---------
Exception in thread "Thread-8" java.lang.ArrayIndexOutOfBoundsException: -1
at game.Game.getHex(Game.java:8041)
at game.Country.allGroundUnitsOnTarget(Country.java:412)
at game.Game.setUpGame(Game.java:9788)
at game.Game.run(Game.java:10238)
---------
Did yall set a limit on # of units per country and the array went beyond its limits?
Or is this a map position error?

Posted: Fri Aug 29, 2008 1:48 pm
by firepowerjohan
Did you add any ground units starting in water?
According to code they should then start in a transport. In latest patch we removed garrison ability to be transported, you sure you did not add any garrison starting on a boat?

In other cases, only was for you to track down it is to use the normal 1939.scn and run and then the new one and run. While it still crashes, try to remove say half of the new units and then half of what is left until you can trace down what unit caused the crash.

Posted: Fri Aug 29, 2008 2:49 pm
by Redpossum
Question/Suggestion -

You said you created both a scenario and new map file, a new ww2.map? Did you move that new .map file into the appropriate game directory, where the game can find it when it goes to load your new scenario?

What about the new ww2_city_eng.txt file that was auto-created to go with that new map?

Oh, and those two files go in slightly different directories...

Posted: Fri Aug 29, 2008 3:48 pm
by AlvaroSousa
I put the ww2.map and the associated file in the right spot.

I looked over the map SEVERAL times yesterday. But I will look at coastal units to see if there is some impact on water.

Thanks for the help. Had to up date my 1939 historical mod to 1.06.