[Update: Solved!] Mission Lab Error leading to buggy security glitch that makes game unplayable

Hey everyone!

So I’m clearing out a mansion and on the surface this error popped up:

DEBUG : Unable to find and assign mission target lab_CORE_2x1_EC_ground.

FUNCTION : cata::optional<coords::coord_point<tripoint, (coords::origin)1, (coords::scale)2> > find_or_create_om_terrain(const tripoint_abs_omt&, const mission_target_params&)
FILE : src/mission_util.cpp
LINE : 251
VERSION : a7d487b

After this the message “Remain in place, unauthorized person. Security has been activated.” plays many times each round, making moving even a step take forever. I will try to change to an older version of the game to see if that fixes it. Please let me know if you need more information and I will send it. :smiley:

[Update:] I confirmed this error does not pop up with the experimental version 6 days ago (2021-08-20-2255). I will keep playing with this version.

There is a bug on that, currently open: Updating to experimental 2021-08-21-2314 causes many errors every move in recent experimental world/saves, but not world/save from 0.F stable · Issue #50977 · CleverRaven/Cataclysm-DDA · GitHub

1 Like

The save edit solution listed in the PR will work to fix your save game as well.

2 Likes

Thanks for mentioning the fix, I thought I’d lost another world to the Experimental beast. Op made me aware it was a glitch and not a mod problem like I thought.

1 Like

I tried the fix mentioned here and it worked. I will outline more specifically what I did so that it’s easier for others to understand:

Follow the link (Updating to experimental 2021-08-21-2314 causes many errors every move in recent experimental world/saves, but not world/save from 0.F stable · Issue #50977 · CleverRaven/Cataclysm-DDA · GitHub) and scroll down to post mentioning the deleting of “‘queued_effect_on_conditions’ entries”. Then go into your CDDA save folder and look for the .sav file that has a long/weird name. I edited it with Visual Code Studio, but any text editor should work. Then delete the entries mentioned, save the file, and then load your game.

I made a backup of the file before I edited it, but there were no issues and everything works great again! :smiley:

Specifically, this linked comment (Updating to experimental 2021-08-21-2314 causes many errors every move in recent experimental world/saves, but not world/save from 0.F stable · Issue #50977 · CleverRaven/Cataclysm-DDA · GitHub) from the issue shows which elements to delete.

Unfortunately, all the bad entries are going to be somewhere in the “queued_effect_on_conditions” line of your affected .sav file, which is just one super long line. (I edited the line before posting the version you see in the issue by separating the elements on different lines.)

Fortunately, they are likely all lumped together at the front, before the stuff you want to keep.

Be careful and make a backup before editing!