# Updating lost executable commands

**URL:** <https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349>\
**Category:** Bugs\
**Created:** [August 10, 2018, 12:27am UTC](https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349 "2018-08-10T00:27:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ron1987](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ron1987/32/1650_2.png) [@Ron1987](https://discourse.mapeditor.org/u/Ron1987)\
**Post date:** [August 10, 2018, 12:27am UTC](https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349/1 "2018-08-10T00:27:06Z")

</div>

I updated to snapshot Version 2018.08.06 (Mac) and I lost all my executable commands. If I bring up the settings window, there is space for them, but no text.

I tried to find where they are stored without luck. I looked in the ~/Library/Tiled folder and while other stuff is there, I can’t see my executable commands.

![ScreenShot](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/2X/3/3d8c47f1920c59f4580804a22ad2f75ccfd0e994.png)

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [August 14, 2018, 4:00pm UTC](https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349/2 "2018-08-14T16:00:06Z")

</div>

This seems to be a compatibility issues between Qt 5.5.1 and newer versions of Qt, in how a `QVariant` storing a `QHash<QString, QVariant>` is serialised by `QSettings`.

Due to bugs in more recent Qt versions I had downgraded the Qt version used for the snapshots to Qt 5.5.1, but that version seems to not be able to read these particular settings when they were saved by more recent versions of Qt.

I’m afraid your settings are already lost. If you were to set up your commands again while using your current build, at least upcoming snapshots using more recent versions of Qt should be able to read those settings. The next snapshot is probably going to use Qt 5.6.3 (though I’m considering upgrading to Qt 5.9 soon).

---

<div class="post-metadata">

**Author:** ![Ron1987](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/ron1987/32/1650_2.png) [@Ron1987](https://discourse.mapeditor.org/u/Ron1987)\
**Post date:** [August 14, 2018, 11:32pm UTC](https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349/3 "2018-08-14T23:32:08Z")

</div>

Where are the settings stored? Is it a text-ish file?

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [August 15, 2018, 9:38am UTC](https://discourse.mapeditor.org/t/updating-lost-executable-commands/3349/4 "2018-08-15T09:38:26Z")

</div>

The preferences are stored in `~/Library/Preferences/org.mapeditor.Tiled.plist` as [documented here](http://doc.mapeditor.org/en/stable/manual/preferences/). However, there is unfortunately no way to see the actual commands using a plist-editor, since the properties of each command are stored together in a binary blob:

![02](https://cdck-file-uploads-canada1.s3.dualstack.ca-central-1.amazonaws.com/flex035/uploads/mapeditor/original/2X/e/e9bd2751a55b0ac39eb20fc2cb8a2ff44be8895e.png)

And the compatibility is due to a change in the format of this binary serialised data, which seems to have caused Qt 5.5 to not be able to deserialise commands that were serialised by Qt 5.6 or later.

If you still have a backup of the settings file, then you could restore from there and make sure to use Tiled 1.1.6 at least until the next snapshot build is out.
