Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map editor crash placing any improvement #11739

Closed
1 task done
Randombot777 opened this issue Jun 11, 2024 · 1 comment · Fixed by #11743
Closed
1 task done

Map editor crash placing any improvement #11739

Randombot777 opened this issue Jun 11, 2024 · 1 comment · Fixed by #11743
Assignees
Labels

Comments

@Randombot777
Copy link

Randombot777 commented Jun 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4.11.18-patch1 (build 1004 )

Describe the bug

In map editor when i want to put an improvement, any of them, an unrecoverable error occurs and the editor closes.
I erased the game and reinstalled but the issue remains.
No mods installed, just Gods & Kings.

Steps to Reproduce

1.Enter map editor
2.Generate a map
3.Put an improvement, ancient ruins, farm, any of them.
4.An unrecoverable error has ocurred.

Screenshots

Platform: Android
Version: 4.11.18-patch1 (Build 1004)
Rulesets: [Civ V - Vanilla, Civ V - Gods & Kings]
Last Screen: com.unciv.ui.screens.mapeditorscreen.MapEditorScreen


Device Model: SM-A235M
API Level: 34
System Memory: 3589 MB
Available (used by Kernel): 931 MB
System Low Memory state: false
Java heap limit: 512 MB
Java heap free: 16 MB


Message:

kotlin.UninitializedPropertyAccessException: lateinit property gameInfo has not been initialized
	at com.unciv.logic.map.TileMap.getGameInfo(TileMap.kt:71)
	at com.unciv.logic.map.tile.TileImprovementFunctions.changeImprovement(TileImprovementFunctions.kt:221)
	at com.unciv.logic.map.tile.Tile.changeImprovement(Tile.kt:831)
	at com.unciv.logic.map.tile.Tile.changeImprovement$default(Tile.kt:830)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditImprovementsTab$addImprovements$2$2.invoke(MapEditorEditSubTabs.kt:235)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditImprovementsTab$addImprovements$2$2.invoke(MapEditorEditSubTabs.kt:234)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab.paintTile(MapEditorEditTab.kt:303)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab.paintTilesWithBrush$core(MapEditorEditTab.kt:265)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab.tileClickHandler(MapEditorEditTab.kt:216)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab.access$tileClickHandler(MapEditorEditTab.kt:33)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab$activated$1.invoke(MapEditorEditTab.kt:196)
	at com.unciv.ui.screens.mapeditorscreen.tabs.MapEditorEditTab$activated$1.invoke(MapEditorEditTab.kt:196)
	at com.unciv.ui.screens.mapeditorscreen.MapEditorScreen$newMapHolder$newHolder$1.invoke(MapEditorScreen.kt:186)
	at com.unciv.ui.screens.mapeditorscreen.MapEditorScreen$newMapHolder$newHolder$1.invoke(MapEditorScreen.kt:185)
	at com.unciv.ui.screens.mapeditorscreen.EditorMapHolder$addTiles$1.invoke(EditorMapHolder.kt:99)
	at com.unciv.ui.screens.mapeditorscreen.EditorMapHolder$addTiles$1.invoke(EditorMapHolder.kt:99)
	at com.unciv.ui.components.input.ActivationActionMap.activate(ActivationActionMap.kt:56)
	at com.unciv.ui.components.input.ActorAttachments.activate(ActorAttachments.kt:42)
	at com.unciv.ui.components.input.ActivationExtensionsKt.activate(ActivationExtensions.kt:17)
	at com.unciv.ui.components.input.ActivationListener.tap(ActivationListener.kt:15)
	at com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener$1.tap(ActorGestureListener.java:52)
	at com.badlogic.gdx.input.GestureDetector.touchUp(GestureDetector.java:206)
	at com.badlogic.gdx.scenes.scene2d.utils.ActorGestureListener.handle(ActorGestureListener.java:125)
	at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:354)
	at com.unciv.ui.screens.basescreen.UncivStage.access$touchUp$s80204510(UncivStage.kt:17)
	at com.unciv.ui.screens.basescreen.UncivStage$touchUp$1.invoke(UncivStage.kt:87)
	at com.unciv.ui.screens.basescreen.UncivStage$touchUp$1.invoke(UncivStage.kt:87)
	at com.unciv.ui.crashhandling.CrashHandlingExtensionsKt$wrapCrashHandling$1.invoke(CrashHandlingExtensions.kt:17)
	at com.unciv.ui.screens.basescreen.UncivStage.touchUp(UncivStage.kt:87)
	at com.badlogic.gdx.backends.android.DefaultAndroidInput.processEvents(DefaultAndroidInput.java:423)
	at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:503)
	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1584)
	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1283)

Link to save file

No response

Operating System

Android

Additional Information

No response

@SomeTroglodyte SomeTroglodyte self-assigned this Jun 12, 2024
@SomeTroglodyte SomeTroglodyte changed the title Map editor improvement issue Map editor crash placing any improvement Jun 12, 2024
@SomeTroglodyte SomeTroglodyte linked a pull request Jun 13, 2024 that will close this issue
@Satavahana
Copy link

İ have the same issue i using unciv potato (2nd unciv) to solve problems temporary i download it from itch. İo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants