# \[RESOLVED/NOT-A-BUG\] Previous save doesn't load properly after 43804bf

**URL:** <https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353>\
**Category:** The Garage\
**Created:** [April 27, 2018, 10:56am UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353 "2018-04-27T10:56:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ivan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ivan/32/2165_2.png) [@ivan](https://discourse.cataclysmdda.org/u/ivan)\
**Post date:** [April 27, 2018, 10:56am UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/1 "2018-04-27T10:56:33Z")

</div>

_TL;DR All is well, the save folder got messed up by the user and the game handled it the best it could._

Hi everyone, first timer here

**The problem:** Since the commit [43804bf](https://github.com/CleverRaven/Cataclysm-DDA/pull/23416/commits/43804bf996324a2d3ec183532d1847ee23ba4490) When I load the world, my character and the world are reset. That means, same world, names and dispositions of stuff on overmap are the same. But my char is in a different location, has different stuff on him, overmap is undiscovered – so basically looks like something fails while loading and loads some starting scenario instead.

If I load the same file using any of the previous revisions - everything loads as it should.

I used `git bisect` to figure out the commit, and this merged PR seems to be it [https://github.com/CleverRaven/Cataclysm-DDA/pull/23416](https://github.com/CleverRaven/Cataclysm-DDA/pull/23416) (43804bf)

Here are the screenshots:  
 ![scr](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/3/32c654772c2be0a404a359c16d75a5eeaf2b8d8d.png)

I’ve read through the PR a bit but I’m not a C++ guy nor do I know enough about CDDA’s guts to figure what might be the cause. So, attempting to summon @Zhilkin or anyone else who can shed some light on this

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 27, 2018, 11:39am UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/2 "2018-04-27T11:39:19Z")

</div>

Which OS are you on?

Also archive of `save` folder will be helpful.

---

<div class="post-metadata">

**Author:** ![ivan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ivan/32/2165_2.png) [@ivan](https://discourse.cataclysmdda.org/u/ivan)\
**Post date:** [April 27, 2018, 1:06pm UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/3 "2018-04-27T13:06:49Z")

</div>

Oh hey, Serg.

Yeah, duuh, I should’ve provided the save.  
I’m on Arch Linux, here’s the zipped save folder [https://expirebox.com/download/58b97de6f6a533ea396d7fbb724710f9.html](https://expirebox.com/download/58b97de6f6a533ea396d7fbb724710f9.html)  
Also, for all it’s worth, I’m building with `gcc` [`clang`'s been failing with some virtual method complaints for a couple of months]

Now that I’m looking, I finally found where the log file is 🙂  
There are some weird warnings in the log:

```auto
17:35:18.909 WARNING : opendir [/home/ivan/.cataclysm-dda/mods/] failed with "No such file or directory".
17:35:18.941 SDL : src/sdltiles.cpp:1990: Failed to load audio file data/sound/Basic/Dark_Days_Ahead_demo_2.wav: Couldn't open 'data/sound/Basic/Dark_Days_Ahead_demo_2.wav'
17:35:22.27 : couldn't parse color: c_black_light_red
17:35:22.27 : couldn't parse color: c_magenta_light_cyan
17:35:22.115 : couldn't parse color: c_yellow   
17:35:22.289 WARNING : opendir [/home/ivan/.cataclysm-dda/save//save/save_bck/save/The Village of Indian Hill/mods] failed with "No such file or directory".

```

And yes, the save folder does contain the weird recursive-looking `./save/save_bck/save/...` path in it. Is it supposed to or did I somehow get it recursed-up? (I may have issued a wrong cp command or something at some point. In case you’re wondering - none of the folders are symlinks)

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 27, 2018, 2:45pm UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/4 "2018-04-27T14:45:52Z")

</div>

Please try removing all but top `The Village of Indian Hill` folder from top `save` folder. I am not sure it is the cause of the issue, but save files are not supposed to be located like this.

---

<div class="post-metadata">

**Author:** ![ivan](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ivan/32/2165_2.png) [@ivan](https://discourse.cataclysmdda.org/u/ivan)\
**Post date:** [April 27, 2018, 4:14pm UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/5 "2018-04-27T16:14:47Z")

</div>

Yeah that did it, thanks ) This is kind of embarassing, I probably just cp’ed a backup save with a slash at the end or something…

The “after” save that I deemed broken was the top-level one (folder structure-wise). The one inside it was the right one.

This must be what changed in that changeset with `folder_path()` consolidation. Before it would load the save from `save/save/..` for whatever reason, which was my current save for all this time. After the commit it actually did the right thing and used the top-level save, which is way earlier.

So yeah, thanks for helping me, this was fun 👍

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [April 27, 2018, 4:48pm UTC](https://discourse.cataclysmdda.org/t/resolved-not-a-bug-previous-save-doesnt-load-properly-after-43804bf/15353/6 "2018-04-27T16:48:33Z")

</div>

Good to know the issue is resolved.
