Page 1 of 1

Game crashes on boot

PostPosted: 04 Apr 2018, 11:04
by NovemberMagnus
I've been playing for 2 days now without issue, but today, I try changing the theme for the first time and a few taps later this happens
Screenshot_2018-04-04-03-45-19.png

On restarting the game, then restarting the tablet, I get this screen every time, though sometimes it's a different color/other minor changes.

After tapping around on this screen at random, it saved this to my clipboard

Description: [describe what you were doing when the crash occurred]

NullPointerException | Open
Code: Select all
Forge Version:    1.6.8.001
Operating System: Linux 3.4.0 armv7l
Java Version:     0 The Android Project

java.lang.NullPointerException: Attempt to invoke virtual method 'int com.badlogic.gdx.graphics.g2d.TextureRegion.getRegionWidth()' on a null object reference
   at forge.assets.FTextureRegionImage.getWidth(FTextureRegionImage.java:17)
   at forge.toolbox.FLabel.drawContent(FLabel.java:325)
   at forge.toolbox.FLabel.drawContent(FLabel.java:319)
   at forge.toolbox.FLabel.draw(FLabel.java:301)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.toolbox.FContainer.draw(FContainer.java:64)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.toolbox.FContainer.draw(FContainer.java:64)
   at forge.toolbox.FScrollPane.draw(FScrollPane.java:312)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.toolbox.FContainer.draw(FContainer.java:64)
   at forge.screens.FScreen.draw(FScreen.java:164)
   at forge.Graphics.draw(Graphics.java:147)
   at forge.screens.FScreen.draw(FScreen.java:159)
   at forge.Forge.render(Forge.java:321)
   at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:422)
   at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
I don't know what to do, should I reinstall?

Re: Game crashes on boot

PostPosted: 04 Apr 2018, 11:20
by NovemberMagnus
Well re-installing did nothing, which is the first time I've ever seen that happen. What the hell am I supposed to do now, format the tablet?

Re: Game crashes on boot

PostPosted: 05 Apr 2018, 08:46
by austinio7116
It should be possible to switch back to the default theme by manually editing your forge.properties file - reinstalling I don't think affects that file.

UI_SKIN=Default

is the line you want

Re: Game crashes on boot

PostPosted: 06 Apr 2018, 11:14
by timmermac
Android Forge does not install all of the files necessary to use a skin other than the default. To use any other skin, there are a bunch of files that you have to copy from the default skin folder and paste into the folder for the skin that you want to use.

Re: Game crashes on boot

PostPosted: 07 Apr 2018, 12:16
by NovemberMagnus
I wound up just deleting the file of the theme I'd switched it too and that seems to have worked. :)