Closed hackedpassword closed 5 months ago
Forgot to mention that this is with the Z2 mod. Btw, screenshot is a bit of a red herring. Not meant to sound too berating, but, could you screenshot the part that's looping if you do decide to screenshot it?
Switched over to PC, was able to copy the error report. Behavior from the save was identical.
Bad news. Reverted each changed file to pre-yesterday, tested each, every iteration resulted in the same crash.
Back to the drawing board.
Platform: Desktop
Version: 4.10.21 (Build 981)
Rulesets: [Policy mod, Civ V - Vanilla, No Fog Of War, Resource Recyclers, Nextgen Maps, Raze anything, All units can be automated, NextgenMaps Labs, AFX, Z2 - pre-4.10.21, Civ V - Gods & Kings, Z2, Antiyoy maps]
Last Screen: com.unciv.ui.screens.worldscreen.WorldScreen
OS: Windows 10 Windows 10 Pro Version 22H2 (Build 19045) Java: Oracle Corporation 20.0.1+9-29 Max Memory: 4056 MB System default encoding: UTF-8
Thread update - #11352 should fix the issue. "Boulder" is both a feature and improvement, confusing the AI having duplicate names.
I found the offending worker:
He's removing an improvement boulder.
In the save game, you can do the following to gain complete map access:
In-mod dev ability! Reopening to test SeventhM's fix next Unciv release.
In-mod dev ability
Neat. Though I'll let you in on a "secret": I have tools that let's me see this a bit easier. Android Studio let's me pause the entire game at a certain line of code and see everything the code sees at that moment, including whether or not it's an improvement or a terrain feature (it's an improvement here). Faster to debug for stuff like this. For other stuff I gotta stop at that same line of code, like, 20 times before I actually reach the conditions that lead to a crash. Tedious stuff
Also, it's not quite removing the boulder. It's thinking about whether or not it should remove the boulder. The AI asks itself "if I'm removing this boulder, what an I doing afterwards?" It got stuck checking what'll happen if it removed the terrain feature of the boulder and not the improvement version
Feel free to leave this issue open. The PR will close it automatically for you
Is there an existing issue for this?
Game Version
4.10.21
Describe the bug
Testing out 4.10.21. Began making updates, appears I triggered a glitch at some point. Hitting Next turn goes until about 2/3, grinds, crashes.
Steps to Reproduce
Will have to step backwards to see if it was a mod update that triggered the crash. Reporting for now.
Screenshots
Link to save file
England - 67 turns.txt
Operating System
Android
Additional Information
For save games, not copy-pastes - Friendly reminder that github does not accept extension-less files which do not appear in Androids' upload selection. Finding the original save file requires Total Commander app to gain access to Unciv data storage.