Page 1 of 1

Mobile Crash report can't play

PostPosted: 06 Jul 2018, 07:15
by discodingle
Description: Playing Quest with custom deck, beat first opponent. Changed theme to see what the others looked like. On loading next opponent game crashed and won't reload without giving error and crash report . UI disappeared. Tried uninstalling/reinstalling and deleting game data to no avail. Android platform latest (1.6) update.

edit: Using Google Pixel 2 Android 8.1. I can't open the app without getting the error, after the initial loading process. I'd rather not have to factory reset my phone but I could if I need to. Thanks!

NullPointerException | Open
Code: Select all
Forge Version:    1.6.11.001
Operating System: Linux 4.4.88-g1b72a7fee7bf armv8l
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:1571)
   at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)

Re: Mobile Crash report can't play

PostPosted: 06 Jul 2018, 21:39
by timmermac
You are getting this error because the Android version only comes with the files necessary to load the default theme. If you use a file manager and compare the default skin folder to the other skin folders, you'll see that the others are missing ~10 files. Copying the missing files from the default folder to the folder for the skin you want to use will let you use that skin.

Re: Mobile Crash report can't play

PostPosted: 06 Jul 2018, 21:55
by discodingle
Thanks! I didn't realise those files were missing.

I got into my DCIM and deleted the forge file and redownloaded it and it's now working.