Bug #1098

Unlocked evidence chests should get locked after new evidence is put into them

Added by Thomas Staudinger about 3 years ago. Updated almost 3 years ago.

Game Mechanics
Target version:
Start date:
% Done:


Spent time:
Operating system:


In OpenMW unlocked evidence chests stay unlocked after a guard takes stolen goods from you and the items get placed in the chest. In Vanilla Morrowind the chest gets locked again.

Steps to reproduce:

1. Start a new game, go through the instructions until you reach the first room of the Census and Excise Office
2. Unlock the evidence chest
3. Steal something, talk to the guard (cheat yourself some money first so you have the option to pay instead of going to jail)
4. The evidence chest is still unlocked

Associated revisions

Revision b3ffd5b8 (diff)
Added by Thomas almost 3 years ago

Fix for bug Bug #1098


#1 Updated by Thomas Staudinger about 3 years ago

Actually you don't have to start a new game, just coc "Seyda Neen, Census and Excise Office". I was using an older Nightly (without crime) by mistake while writing the instructions.

#2 Updated by Jannik Heller about 3 years ago

  • Target version set to openmw-future

There is actually a more serious issue here: We can not simply "lock" it again, as unlocking currently discards the lock level information. We'd have to use an arbitrary lock level.
Vanilla seems to store lock level and unlocked state separately. And after you unlock something, it also says "Lock: Unlocked" in the tooltip, whereas OpenMW has no way of knowing that there was a lock at some point.

#3 Updated by Thomas Luppi almost 3 years ago

I'm working on this right now, seems easy enough (Store the locklevel as a negative number in the esm to indicate it's unlocked; not sure if this is acceptable)

#4 Updated by Marc Zinnschlag almost 3 years ago

If with "ESM" you mean the CellRef struct, then yes, that sounds like a reasonable solution.

#5 Updated by Thomas Luppi almost 3 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Whatever the save file is, it's in that. It's late and I forgot that it's not called esm.

#6 Updated by Thomas Luppi almost 3 years ago

  • Status changed from In Progress to Resolved
  • Target version changed from openmw-future to openmw-0.30
  • % Done changed from 50 to 100

#7 Updated by Thomas Luppi almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF