#Trying to add a Conquest location (Duskmourn), crashing on plane selection

8 messages · Page 1 of 1 (latest)

hollow shoal
#

I made the following placed in conquest/planes and edited planes.txt to add Name:Duskmourn|RegionSize:4|https://drive.google.com/drive/folders/16wXK9LS0SFeX3lLzwSNyuzkFe3QifRaw?usp=sharing
As soon as the plane would appear in the plane selector on new game, it crashes and the following is displayed:

java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.get(ArrayList.java:434)
at forge.util.collect.FCollection.get(FCollection.java:399)
at forge.screens.planarconquest.ConquestPlaneSelector.setSelectedIndex(ConquestPlaneSelector.java:89)
at forge.screens.planarconquest.ConquestPlaneSelector.incrementSelectedIndex(ConquestPlaneSelector.java:114)
at forge.screens.planarconquest.ConquestPlaneSelector.tap(ConquestPlaneSelector.java:124)
at forge.Forge$MainInputProcessor.tap(Forge.java:1347)
at forge.toolbox.FGestureAdapter.touchUp(FGestureAdapter.java:245)
at forge.toolbox.FGestureAdapter.touchUp(FGestureAdapter.java:177)
at com.badlogic.gdx.backends.android.DefaultAndroidInput.processEvents(DefaultAndroidInput.java:450)
at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:499)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1584)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1283)

Any idea why?

timid iris
#

Looks like the way it's coded assumes the Art parameter in the regions file will be a Planechase plane.

#

Wait may be wrong about that

#

Your plane_cards file just says Bant, not Bant Panorama

hollow shoal
#

thanks for the help 🙂
I copied it from the Alara plane which has the same. I'm no sure where they're used, but just "Bant" seems to work for it

timid iris
#

Hm, I may be wrong; there actually is a plane card called Bant which should be where it's actually getting art from.I haven't worked in this area of the code before.

#

Is there an error above this exception saying anything like <something> does not correspond to a valid Plane card or standard Magic card!?

hollow shoal
#

No I posted the whole crash report