Automatic Placement Finder Doesn't Work
-
I try to use it but it just doesn't work. The program asks for the folder name but after that nothing happens. I put my map in the downloadedMaps, didn't work. I created a new folder called maps and put my map in there, didn't work. Centers.txt and polygons.txt are both included in my map. I checked the console and the error is this;
Setting memory for new triplea process to: 1G
Setting memory for new triplea process to: 1037959168
AutoPlacementFinder LogUnit Zoom Percent to use: 0.75
Unit Width to use: 48
Unit Height to use: 48
Place Dimensions to use: 36x36
Exception in thread "main" java.lang.IllegalStateException: ClientSetting framework has not been initialized. Did you forget to call ClientSetting#initialize() in production code or ClientSetting#setPreferences() in test code?
at games.strategy.triplea.settings.ClientSetting.getPreferences(ClientSetting.java:172)
at games.strategy.triplea.settings.ClientSetting.value(ClientSetting.java:227)
at games.strategy.triplea.settings.ClientSetting.isSet(ClientSetting.java:204)
at games.strategy.engine.ClientFileSystemHelper.getUserMapsFolderPath(ClientFileSystemHelper.java:149)
at games.strategy.engine.ClientFileSystemHelper.getUserMapsFolder(ClientFileSystemHelper.java:130)
at tools.image.AutoPlacementFinder.getMapPropertiesFileForCurrentFolderStructure(AutoPlacementFinder.java:266)
at tools.image.AutoPlacementFinder.getMapPropertiesFile(AutoPlacementFinder.java:257)
at tools.image.AutoPlacementFinder.calculate(AutoPlacementFinder.java:86)
at tools.image.AutoPlacementFinder.main(AutoPlacementFinder.java:69)Is there anything I can do?
-
@stalolympus Can you post what TripleA version you are using?
-
Engine Version: 1.9.0.0.7621
-
@stalolympus Ok, I believe this was actually already fixed. Can you try downloading the latest pre-release and use that to see if that avoids the error: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.9687
-
@redrum Didn't work again
-
@stalolympus Ok, can you upload your map folder so I can try to reproduce the error.
-
@redrum I am trying this with a pre-made map that I downloaded from the game that actually works but i deleted the places.txt to see if it's going to work, the map is middle_earth-master. I unzipped it, deleted the places.txt and put the folder in the downloadedMaps. Also I created a new folder called maps on C:\Users\xz\triplea\ and copied the folder there as well. I also tried to run the game as an administrator, nothing happens after the name phase.
The map is; https://files.fm/f/g329ne42
-
@stalolympus Alright. I was able to reproduce the error. Looking into now. I think there is actually a bug here that I'm testing a fix for now.
-
You say that you deleted places.txt file. If you mean completely that might be your issue. I seem to recall that you need that file name, even if there's no information in it. To be in the maps folder.
-
@general_zod No, there is actually a bug in the map creator right now. No user error in this case as I was able to reproduce it and fix it
-
@redrum ok nice.
-
@stalolympus The issue should be resolved with this latest pre-release now: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.9725
-
@redrum Yeah it's working now. Thanks for replying so quickly and fixing it, really