EnderWiggin wrote:There should not be any real restriction - they scale down to fit 20x20 rectangle. Can you post full error stack?mvgulik wrote:Is there any info on image restriction (mainly image size in my case) for radar images ?
I keep running in a "Index <N> out of bounds for length <N>" error that seem to be related to the image size tests I did. But its a bit unclear what actually triggers this error.
I mean, sometimes it works ok with a 32x32 (or a 32x20) image, but other times it don't.
Sure. Here is one.
(Also saw one with "... bounds for length 1", but did not save(put aside) that one.)
- Code: Select all
java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3
at java.desktop/sun.awt.image.ByteInterleavedRaster.getSamples(ByteInterleavedRaster.java:898)
at haven.PUtils.copyband(PUtils.java:242)
at haven.PUtils.copyband(PUtils.java:247)
at haven.PUtils.blurmask(PUtils.java:256)
at haven.PUtils.blurmask2(PUtils.java:260)
at haven.GobIcon$Image.<init>(GobIcon.java:58)
at haven.GobIcon.img(GobIcon.java:112)
at haven.MiniMap$DisplayIcon.<init>(MiniMap.java:256)
at haven.MiniMap.findicons(MiniMap.java:634)
at haven.MiniMap.tick(MiniMap.java:221)
at haven.Widget.tick(Widget.java:760)
at haven.Widget.tick(Widget.java:760)
at haven.GameUI.tick(GameUI.java:1378)
at haven.Widget.tick(Widget.java:760)
at haven.UI.tick(UI.java:223)
at haven.JOGLPanel.run(JOGLPanel.java:536)
at java.base/java.lang.Thread.run(Thread.java:829)
In case it might matter (probebly not). I used stripped png's that only contain the main image chunks. (ie: IHDR + IDAT (+IEND))
---
Keep forgetting: Using Beta.