-
Notifications
You must be signed in to change notification settings - Fork 101
Java exception error #783
Comments
what version are you using? |
The gfx folder was dowloaded form Die Siedler 3 - Multiplayer Demo (https://www.siedler-maps.de/downloads.php?action=download&downloadid=42), unzipped and recognized by the JSettlers when launching. JSettlers is Release v0.4.0-alpha from official page (https://www.settlers-android-clone.com/download/) Running on Mac osX Catalina 10.5.2 with Java installed |
Official releases are completely outdated. |
what is the output of JSettlers when run with --console-output ? |
java -jar JSettlers.jar --console-output |
Hi, I tried to run the jar under Mac osX Catalina 10.5.2. using Terminal command
java -jar JSettlers.jar
I got the following exception:
jsettlers alex$ java -jar JSettlers.jar
No default command line options file found.
Options loaded: {}
Source: (file:/Users/alex/Documents/Games/Settlers/JSettlers/JSettlers.jar )
java.lang.ArrayIndexOutOfBoundsException: Index 232 out of bounds for length 232
at jsettlers.graphics.reader.AdvancedDatFileReader.getSettlerPointers(AdvancedDatFileReader.java:614)
at jsettlers.graphics.image.MultiImageMap.addSequences(MultiImageMap.java:104)
at jsettlers.graphics.reader.AdvancedDatFileReader.generateImageMap(AdvancedDatFileReader.java:646)
at jsettlers.graphics.map.draw.ImagePreloadTask.run(ImagePreloadTask.java:121)
at java.base/java.lang.Thread.run(Thread.java:830)
Exception in thread "main" java.lang.ExceptionInInitializerError
at jsettlers.main.swing.lookandfeel.JSettlersLookAndFeel.install(JSettlersLookAndFeel.java:69)
at jsettlers.main.swing.SwingManagedJSettlers.createJSettlersFrame(SwingManagedJSettlers.java:204)
at jsettlers.main.swing.SwingManagedJSettlers.main(SwingManagedJSettlers.java:65)
Caused by: java.awt.image.RasterFormatException: (x + width) is outside raster
at java.desktop/sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInterleavedRaster.java:463)
at java.desktop/java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1202)
at jsettlers.main.swing.lookandfeel.ui.SettlersLabelUi.(SettlersLabelUi.java:61)
at jsettlers.main.swing.lookandfeel.factory.LabelUiFactory.(LabelUiFactory.java:40)
... 3 more
The text was updated successfully, but these errors were encountered: