carriontrooper / Alpha-Frontier

An Unciv total conversion mod, taking inspiration from Alpha Centauri and Beyond Earth. Uses FantasyHex tileset.
86 stars 16 forks source link

Error on next turn #84

Open Merkest1 opened 1 month ago

Merkest1 commented 1 month ago

I was playing the Alpha version with below mods. And it was going well up to turn 400ish but now when I press next turn it bugs out with below. Had to cut out a lot of the bug report due to length

Platform: Android Version: 4.13.11 (Build 1,053) Rulesets: [Civ V - Vanilla, Latin American_Civs, RekMOD, Brave New World, Civ V - Gods & Kings, 5Hex Tileset, Alpha Frontier] Last Screen: com.unciv.ui.screens.worldscreen.WorldScreen


Device Model: SM-G991B API Level: 34 System Memory: 7201 MB Available (used by Kernel): 1999 MB System Low Memory state: false Java heap limit: 512 MB Java heap free: 17 MB


Message:


java.lang.NullPointerException
    at com.unciv.ui.screens.worldscreen.unit.actions.UnitActionsFromUniques.getRepairTurns$core(UnitActionsFromUniques.kt:436)
    at com.unciv.logic.automation.unit.WorkerAutomation.getImprovementPriority(WorkerAutomation.kt:280)
    at com.unciv.logic.automation.unit.WorkerAutomation.tileHasWorkToDo(WorkerAutomation.kt:308)
    at com.unciv.logic.automation.unit.WorkerAutomation.findTileToWork(WorkerAutomation.kt:206)
    at com.unciv.logic.automation.unit.WorkerAutomation.automateWorkerAction(WorkerAutomation.kt:83)
    at com.unciv.logic.automation.unit.WorkerAutomation.automateWorkerAction$default(WorkerAutomation.kt:74)
    at com.unciv.logic.automation.unit.CivilianUnitAutomation.automateCivilianUnit(CivilianUnitAutomation.kt:38)
    at com.unciv.logic.automation.unit.UnitAutomation.automateUnitMoves(UnitAutomation.kt:178)
    at com.unciv.logic.automation.civilization.NextTurnAutomation.automateUnits(NextTurnAutomation.kt:435)
    at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves(NextTurnAutomation.kt:76)
    at com.unciv.logic.automation.civilization.NextTurnAutomation.automateCivMoves$default(NextTurnAutomation.kt:38)
    at com.unciv.logic.civilization.managers.TurnManager.automateTurn(TurnManager.kt:344)
    at com.unciv.logic.GameInfo.nextTurn(GameInfo.kt:397)
    at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invokeSuspend(WorldScreen.kt:585)
    at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(Unknown Source:8)
    at com.unciv.ui.screens.worldscreen.WorldScreen$nextTurn$1.invoke(Unknown Source:4)
    at com.unciv.utils.ConcurrencyKt$launchCrashHandling$1.invokeSuspend(Concurrency.kt:89)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
    at com.unciv.utils.Dispatchers$CrashHandlingDispatcher$dispatch$1.invoke(Concurrency.kt:190)
    at com.unciv.utils.Dispatchers$CrashHandlingDispa