CleverRaven / CleverRaven/Cataclysm-DDA

Switching windows cause some issues in game

Open
#53,645 14 comments 0 reactions 0 assignees View on GitHub
(S2 - Confirmed) <Bug> Map / Mapgen OS: Windows
Dominant language
C++
Stars
13.2k
Forks
4.6k
Avg merge
2d 1h
Merged PRs (30d)
205

Description

### Describe the bug

Sometimes, when i switch CDDA window to another one, and turn back, it causes several problems:

- Each switch reset the minimap window, like its in complete dark:

normally working map:
![image](https://user-images.githubusercontent.com/67688115/146974154-36606534-56f1-442c-b638-0874102c8c73.png)
map after switch
![image](https://user-images.githubusercontent.com/67688115/146974217-9e0f3af2-3a7a-4dca-bd2c-c82ca5d7e133.png)
map when i walked few tiles after switch
![image](https://user-images.githubusercontent.com/67688115/146974286-a69168c3-e530-4de3-8bde-dcea3d6f0c4c.png)

- Sometimes it also causes a black screen for the whole game window, without the way to fix it

- Once ive got the second bug on the map menu, and all map was visually corrupted

Map without a bug
![image](https://user-images.githubusercontent.com/67688115/146974826-c79cc2b1-5db3-4403-a51b-63c385696f3e.png)
Map with a bug
![image](https://user-images.githubusercontent.com/67688115/146974684-8d19395f-8353-44ca-8392-2be2409bedc9.png)
Map, if you move the camera to a few tiles
![image](https://user-images.githubusercontent.com/67688115/146974812-3ea24a51-3cfb-44ff-a425-aeedc4fc9a08.png)

### Steps to reproduce

1. Play game
2. Switch your game sometimes
3. Bug
(I cant find any another reasons, it feels pretty random)

### Expected behavior

not having a bug

### Screenshots

_No response_

### Versions and configuration

- OS: Windows
- OS Version: 10.0 2009
- Game Version: 9da956a [32-bit]
- Graphics Version: Tiles
- Game Language: Russian []
- Mods loaded: [
[dda],
[no_fungal_growth],
[no_npc_food],
[speedydex],
[StatsThroughSkills],
[stats_through_kills],
[blazeindustries],
[package_bionic_professions],
[magiclysm],
[crt_expansion],
[crazy_cataclysm],
[MMA],
[extra_mut_scens]
]

### Additional context

It can be related to some stuff with my system, i think, i played cdda while before but never has any of this issues

UPD: looks like second issue also can be fixed by making some stuff that reupdate the window, like open minimap if bug happened in main screen and vice versa

UPDD: Second issue provides when the error occur, and can be fixed by pressing `I`

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on Windows 10 with the 32-bit Tiles configuration while switching away from and back to the game window. Observe the minimap, main screen, and map menu, including whether pressing I or moving a few tiles refreshes them. Done means window switching no longer leaves these views black or visually corrupted.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.