Cataclysm-dda: Auto-notes overwrite player notes

Created on 21 Aug 2019  路  5Comments  路  Source: CleverRaven/Cataclysm-DDA

Describe the bug

Auto-notes overrides custom notes

Steps To Reproduce

Steps to reproduce the behavior:

Turn on Auto-notes
Allow auto-note to place a note (house basement)
Edit auto-note to include additional information (Such as labeling house basement as a spider basement)

Expected behavior

Auto-notes shouldn't override player placed notes.

(S2 - Confirmed) <Bug> Map / Mapgen Z-levels

All 5 comments

I am not following your steps. Did you place note on an unexplored tile?

Steps to reproduce this (Build 9519 on Windows 7):

  1. Enter a new basement with "auto notes (stairs)" enabled, and exit it.
  2. Change "AUTO: goes down" to something else.
  3. Enter and exit the basement again. Observe that the note was changed again, the player-made note discarded.

This has been happening for a while, I turned of auto notes for stairs because of it.

This does not happen with auto notes for map extras.

I'm observing this behavior as well, built locally at commit 367f3a8960 (https://github.com/CleverRaven/Cataclysm-DDA/commit/367f3a8960). It looks like there is a check at game.cpp:10555 that should prevent this, but as observed it doesn't. I haven't checked the behavior of map extras, but it looks like that is in a completely different function

A small update: It looks like placing a note on both levels (so, for a basement, both the basement tile at z-1 and the house at z0) prevents the auto-note from overwriting the surface one. That makes me suspect that the check to avoid overwriting player notes isn't correctly checking z-levels before it overwrites.

That's fine update.

Was this page helpful?
0 / 5 - 0 ratings