Closed Julu2711 closed 1 year ago
Do you need/ want to see the error report?
Thanks for reporting the issue. Could you send the error report?
I just tried to replicate the error, but I can build the encampment and the Macedonian Barracks replacement like normal. Did you build the District1, District2 etc. buildings in your cities?
Platform: Android
Version: 4.3.20 (Build 794)
Rulesets: [The Undead, Civ V - Vanilla, Ancient Civilizations, Civ V - Gods & Kings, Medieval Civilizations, Civ6 mod, 5Hex Tileset]
Last Screen: com.unciv.ui.cityscreen.CityScreen
Device Model: SM-A715F API Level: 30
Message:
java.lang.NullPointerException
at com.unciv.ui.cityscreen.CityScreen.updateTileGroups$isExistingImprovementValuable(CityScreen.kt:200)
at com.unciv.ui.cityscreen.CityScreen.updateTileGroups$getPickImprovementColor(CityScreen.kt:219)
at com.unciv.ui.cityscreen.CityScreen.updateTileGroups(CityScreen.kt:237)
at com.unciv.ui.cityscreen.CityScreen.startPickTileForCreatesOneImprovement(CityScreen.kt:397)
at com.unciv.ui.cityscreen.CityConstructionsTable.addConstructionToQueue(CityConstructionsTable.kt:447)
at com.unciv.ui.cityscreen.CityConstructionsTable.access$addConstructionToQueue(CityConstructionsTable.kt:58)
at com.unciv.ui.cityscreen.CityConstructionsTable$getConstructionButton$3.invoke(CityConstructionsTable.kt:386)
at com.unciv.ui.cityscreen.CityConstructionsTable$getConstructionButton$3.invoke(CityConstructionsTable.kt:384)
at com.unciv.ui.utils.extensions.Scene2dExtensionsKt$onClick$1.invoke(Scene2dExtensions.kt:293)
at com.unciv.ui.utils.extensions.Scene2dExtensionsKt$onClick$1.invoke(Scene2dExtensions.kt:293)
at com.unciv.ui.utils.extensions.OnClickListener.clicked(Scene2dExtensions.kt:282)
at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:88)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:71)
at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:355)
at com.unciv.ui.UncivStage.access$touchUp$s80204510(UncivStage.kt:15)
at com.unciv.ui.UncivStage$touchUp$1.invoke(UncivStage.kt:72)
at com.unciv.ui.UncivStage$touchUp$1.invoke(UncivStage.kt:72)
at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
at com.unciv.ui.UncivStage.touchUp(UncivStage.kt:72)
at com.badlogic.gdx.backends.android.DefaultAndroidInput.processEvents(DefaultAndroidInput.java:426)
at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:472)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1591)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1286)
Save Mods:
[Civ6 mod]
Save Data:
I dont know why it happend
Sorry I clicked on the wrong botton
I loaded the save game in the same Unciv version as you have, and I can replicate the same error. It's not only trying to build an encampment that causes trouble, also the Commercial hub crashes the game. I don't know exactly why, I'm not a coder. I'm going to ask in the Discord if someone knows why. Could you update the game to a newer version and try again (maybe that works)?
I will try that
So I now reinstaled the game and it seems to work just fine now, so thank you for your help it was probalby an very minor uptaded data missing on my phone I guess
Ok, that's good to hear, thank you.
I used your mod, and while didnt meet any big issues once I tried to build a Encampment district it just showed me an error report. I cannot build it and can't build the special barracks of the Macedonians.