NathanVaughn / msfs-mod-manager

An external mod manager for the new Microsoft Flight Simulator
GNU General Public License v3.0
98 stars 4 forks source link

pointed mods folder to app, proceeded to delete every zip I had in the folder. #60

Closed Stramondroid closed 3 years ago

Stramondroid commented 3 years ago

Expected Behavior

Add mods folder to application for easy mod install.

Actual Behavior

DELTED every file in the folder.

Steps to Reproduce the Problem

  1. INSTALL app,
  2. point to mods folder
  3. try and find your mods. Cant, they are hard deleted. Cant they go into recycle? Hard delete? Really?

Specifications

Debug Log Contents (only if reporting a bug)

2021-02-26 16:59:22.583 | INFO     | __main__:<module>:26 - -----------------------
2021-02-26 16:59:22.583 | INFO     | __main__:<module>:27 - Launching application
2021-02-26 16:59:22.583 | DEBUG    | lib.version:get_version:32 - Attemping to determine current application version
2021-02-26 16:59:22.583 | DEBUG    | lib.version:get_version:34 - Parsing C:\Program Files (x86)\MSFS Mod Manager\base.json
2021-02-26 16:59:22.584 | DEBUG    | lib.version:get_version:38 - Version found: v1.0.1
2021-02-26 16:59:22.754 | DEBUG    | lib.theme:get_theme:10 - Getting application theme from config file
2021-02-26 16:59:22.754 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'theme' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:22.754 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'theme' in config file
2021-02-26 16:59:22.754 | DEBUG    | lib.theme:get_theme:13 - FS theme is selected: False
2021-02-26 16:59:22.755 | DEBUG    | lib.theme:set_theme:19 - Writing theme selection to config file
2021-02-26 16:59:22.756 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'theme' and value 'None' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:22.756 | DEBUG    | lib.config:set_key_value:69 - Section key 'settings' not found in config file, adding it
2021-02-26 16:59:22.756 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 16:59:22.760 | DEBUG    | lib.theme:set_theme:34 - Clearing application stylesheet
2021-02-26 16:59:22.762 | DEBUG    | lib.flight_sim:find_sim_packages_folder:177 - Attempting to automatically locate simulator path
2021-02-26 16:59:22.763 | DEBUG    | lib.flight_sim:find_sim_packages_folder:180 - Trying to find simulator path from config file
2021-02-26 16:59:22.763 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'sim_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:22.763 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 16:59:22.764 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'sim_folder' in config file
2021-02-26 16:59:22.764 | DEBUG    | lib.flight_sim:find_sim_packages_folder:187 - Trying to find simulator path from default Steam install
2021-02-26 16:59:22.764 | DEBUG    | lib.flight_sim:is_sim_folder:148 - Testing if C:\Users\iamda_frog811\AppData\Roaming\Microsoft Flight Simulator is main MSFS folder
2021-02-26 16:59:22.764 | DEBUG    | lib.flight_sim:is_sim_folder:151 - Folder C:\Users\iamda_frog811\AppData\Roaming\Microsoft Flight Simulator is main MSFS folder: False
2021-02-26 16:59:22.764 | DEBUG    | lib.flight_sim:find_sim_packages_folder:198 - Trying to find simulator path from default MS Store install
2021-02-26 16:59:22.765 | DEBUG    | lib.flight_sim:is_sim_folder:148 - Testing if C:\Users\iamda_frog811\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache is main MSFS folder
2021-02-26 16:59:22.765 | DEBUG    | lib.flight_sim:is_sim_folder:151 - Folder C:\Users\iamda_frog811\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache is main MSFS folder: True
2021-02-26 16:59:22.765 | DEBUG    | lib.flight_sim:parse_user_cfg:121 - Parsing UserCfg.opt file
2021-02-26 16:59:22.769 | DEBUG    | lib.flight_sim:parse_user_cfg:131 - Found InstalledPackagesPath line: InstalledPackagesPath "C:\Games\FS2020"

2021-02-26 16:59:22.769 | DEBUG    | lib.flight_sim:parse_user_cfg:141 - Path parsed: C:\Games\FS2020
2021-02-26 16:59:22.770 | DEBUG    | lib.flight_sim:is_sim_packages_folder:161 - Testing if C:\Games\FS2020 is MSFS sim packages folder
2021-02-26 16:59:22.771 | DEBUG    | lib.flight_sim:is_sim_packages_folder:166 - Folder C:\Games\FS2020 is MSFS sim packages folder: True
2021-02-26 16:59:22.771 | DEBUG    | lib.flight_sim:find_sim_packages_folder:210 - MS Store sim path found and valid
2021-02-26 16:59:22.771 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'sim_folder' and value 'C:\Games\FS2020' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:22.772 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 16:59:33.519 | DEBUG    | lib.version:check_version:92 - Checking if a new version is available
2021-02-26 16:59:33.519 | DEBUG    | lib.version:check_version_config:53 - Trying to read never version check from config file
2021-02-26 16:59:33.519 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'never_version_check' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:33.520 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 16:59:33.520 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'never_version_check' in config file
2021-02-26 16:59:33.520 | DEBUG    | lib.version:check_version_config:59 - Trying to read last version check from config file
2021-02-26 16:59:33.520 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'last_version_check' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:33.521 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 16:59:33.521 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'last_version_check' in config file
2021-02-26 16:59:33.521 | DEBUG    | lib.version:check_version_config:84 - Unable to read last version check from config file
2021-02-26 16:59:33.522 | DEBUG    | lib.version:check_version:102 - Attempting to open url https://api.github.com/repos/NathanVaughn/msfs-mod-manager/releases/latest
2021-02-26 16:59:34.247 | DEBUG    | lib.version:check_version:110 - Reading page contents
2021-02-26 16:59:34.248 | DEBUG    | lib.version:check_version:116 - Attemping to parse page contents
2021-02-26 16:59:34.248 | DEBUG    | lib.version:check_version:123 - Remote version found is: v1.0.1
2021-02-26 16:59:34.249 | DEBUG    | lib.version:check_version:126 - Writing out last version check time to config file
2021-02-26 16:59:34.249 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'last_version_check' and value '2021-02-26 16:59:34' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:34.249 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 16:59:34.253 | DEBUG    | lib.version:get_version:32 - Attemping to determine current application version
2021-02-26 16:59:34.254 | DEBUG    | lib.version:get_version:34 - Parsing C:\Program Files (x86)\MSFS Mod Manager\base.json
2021-02-26 16:59:34.254 | DEBUG    | lib.version:get_version:38 - Version found: v1.0.1
2021-02-26 16:59:34.254 | DEBUG    | lib.version:check_version:151 - Remote version is not newer than local version
2021-02-26 16:59:34.270 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'mod_cache_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:34.271 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 16:59:34.271 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'mod_cache_folder' in config file
2021-02-26 16:59:34.271 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'mod_cache_folder' and value 'C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:34.272 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 16:59:34.276 | DEBUG    | lib.files:get_mod_install_folder:375 - Creating mod install folder \\?\C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache
2021-02-26 16:59:34.294 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 16:59:34.294 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 16:59:34.297 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\aerosoft-st-tropez
2021-02-26 16:59:34.302 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\lvfr-kmia
2021-02-26 16:59:34.306 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\navigraph-navdata
2021-02-26 16:59:34.312 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\virtualcol-aircraft-b99
2021-02-26 16:59:59.500 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'last_open_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:59.500 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 16:59:59.501 | DEBUG    | lib.config:get_key_value:50 - Unable to find key 'last_open_folder' in config file
2021-02-26 16:59:59.501 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'last_open_folder' and value 'C:\Users\iamda_frog811\Downloads' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 16:59:59.501 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 17:00:16.300 | DEBUG    | lib.flight_sim:__init__:38 - Initialzing mod installer thread
2021-02-26 17:00:16.300 | DEBUG    | lib.thread:run:22 - Running thread
2021-02-26 17:00:16.301 | DEBUG    | lib.flight_sim:install_mods:529 - Installing mod C:/Games/FS2020/mods
2021-02-26 17:00:16.301 | DEBUG    | lib.flight_sim:determine_mod_folders:503 - Locating mod folders inside C:/Games/FS2020/mods
2021-02-26 17:00:16.301 | ERROR    | lib.flight_sim:determine_mod_folders:522 - No mods found
2021-02-26 17:00:16.302 | DEBUG    | lib.thread:run:28 - Thread completed
2021-02-26 17:00:17.514 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'mod_cache_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:00:17.515 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:00:17.515 | DEBUG    | lib.config:get_key_value:45 - Key 'mod_cache_folder' found in section
2021-02-26 17:00:17.515 | DEBUG    | lib.config:get_key_value:46 - Key 'mod_cache_folder' value: C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache
2021-02-26 17:00:17.520 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 17:00:17.520 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 17:01:38.875 | DEBUG    | lib.theme:set_theme:19 - Writing theme selection to config file
2021-02-26 17:01:38.875 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'theme' and value 'fs' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:01:38.875 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 17:01:38.880 | DEBUG    | lib.theme:set_theme:26 - Applying application stylesheet C:\Program Files (x86)\MSFS Mod Manager\fs_style.qss
2021-02-26 17:01:44.381 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'last_open_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:01:44.382 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:01:44.382 | DEBUG    | lib.config:get_key_value:45 - Key 'last_open_folder' found in section
2021-02-26 17:01:44.382 | DEBUG    | lib.config:get_key_value:46 - Key 'last_open_folder' value: C:\Users\iamda_frog811\Downloads
2021-02-26 17:01:44.382 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'last_open_folder' and value 'C:\Users\iamda_frog811\Downloads' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:01:44.383 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 17:01:51.430 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'mod_cache_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:01:51.431 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:01:51.431 | DEBUG    | lib.config:get_key_value:45 - Key 'mod_cache_folder' found in section
2021-02-26 17:01:51.431 | DEBUG    | lib.config:get_key_value:46 - Key 'mod_cache_folder' value: C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache
2021-02-26 17:02:29.122 | DEBUG    | lib.files:__init__:46 - Initialzing folder mover thread
2021-02-26 17:02:29.122 | DEBUG    | lib.thread:run:22 - Running thread
2021-02-26 17:02:29.123 | DEBUG    | lib.files:move_folder:332 - Moving folder \\?\C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache to \\?\C:\Games\FS2020\mods
2021-02-26 17:02:29.123 | DEBUG    | lib.files:copy_folder:295 - Copying folder \\?\C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache to \\?\C:\Games\FS2020\mods
2021-02-26 17:02:29.124 | DEBUG    | lib.files:delete_folder:267 - Attempting to delete folder \\?\C:\Games\FS2020\mods
2021-02-26 17:02:29.371 | DEBUG    | lib.files:copy_folder:317 - Attempting to copy folder \\?\C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache to \\?\C:\Games\FS2020\mods
2021-02-26 17:02:29.372 | DEBUG    | lib.files:delete_folder:267 - Attempting to delete folder \\?\C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\modCache
2021-02-26 17:02:29.373 | DEBUG    | lib.thread:run:28 - Thread completed
2021-02-26 17:02:29.375 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'mod_cache_folder' and value 'C:/Games/FS2020/mods' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:02:29.376 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 17:02:40.052 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'mod_cache_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:02:40.052 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:02:40.053 | DEBUG    | lib.config:get_key_value:45 - Key 'mod_cache_folder' found in section
2021-02-26 17:02:40.053 | DEBUG    | lib.config:get_key_value:46 - Key 'mod_cache_folder' value: C:\Games\FS2020\mods
2021-02-26 17:02:40.061 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 17:02:40.061 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 17:02:51.130 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 17:02:51.131 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 17:02:51.140 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\aerosoft-st-tropez
2021-02-26 17:02:51.141 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\lvfr-kmia
2021-02-26 17:02:51.143 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\navigraph-navdata
2021-02-26 17:02:51.144 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\virtualcol-aircraft-b99
2021-02-26 17:03:47.650 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 17:03:47.650 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 17:03:47.659 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\aerosoft-st-tropez
2021-02-26 17:03:47.660 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\lvfr-kmia
2021-02-26 17:03:47.662 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\navigraph-navdata
2021-02-26 17:03:47.663 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\virtualcol-aircraft-b99
2021-02-26 17:04:04.475 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\747-livery-ateamV2
2021-02-26 17:04:04.476 | ERROR    | lib.flight_sim:parse_mod_manifest:353 - No manifest.json found
2021-02-26 17:04:04.485 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\aerosoft-st-tropez
2021-02-26 17:04:04.486 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\lvfr-kmia
2021-02-26 17:04:04.487 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\navigraph-navdata
2021-02-26 17:04:04.488 | DEBUG    | lib.flight_sim:parse_mod_manifest:347 - Parsing manifest for \\?\C:\Games\FS2020\Community\virtualcol-aircraft-b99
2021-02-26 17:04:08.692 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'last_open_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:04:08.693 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:04:08.693 | DEBUG    | lib.config:get_key_value:45 - Key 'last_open_folder' found in section
2021-02-26 17:04:08.693 | DEBUG    | lib.config:get_key_value:46 - Key 'last_open_folder' value: C:\Users\iamda_frog811\Downloads
2021-02-26 17:04:08.694 | DEBUG    | lib.config:set_key_value:60 - Attempting to write key 'last_open_folder' and value 'C:\Users\iamda_frog811\Downloads' to the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:04:08.694 | DEBUG    | lib.config:set_key_value:78 - Writing out config file
2021-02-26 17:10:38.160 | DEBUG    | lib.config:get_key_value:30 - Attempting to read key 'mod_cache_folder' from the main config file C:\Users\iamda_frog811\AppData\Roaming\MSFS Mod Manager\config.ini
2021-02-26 17:10:38.161 | DEBUG    | lib.config:get_key_value:39 - Section key 'settings' found in config file
2021-02-26 17:10:38.161 | DEBUG    | lib.config:get_key_value:45 - Key 'mod_cache_folder' found in section
2021-02-26 17:10:38.161 | DEBUG    | lib.config:get_key_value:46 - Key 'mod_cache_folder' value: C:\Games\FS2020\mods
NathanVaughn commented 3 years ago

I will spend more time on this tomorrow, but from a cursory look at the logs, I think this is expected behavior. Don't get me wrong, the program shouldn't let you do this, or give a big warning, but I think this worked correctly.

See, how the program works is that whenever you "install" a mod, it's really copying the contents to the mod install folder (previously known as the mod cache folder). By default, this is %APPDATA%\MSFS Mod Manager\modCache. After the contents are copied there, it then creates a symlink to the MSFS2020 Packages\Community folder. This way, whenever you disable/enable a mod, a symlink only has to be deleted or created and is far faster than copying the folders back and forth.

When you changed the mod install (mod cache) directory to the Community folder, the program helpfully moved this folder and its existing contents for you. When it does this, it deletes the contents of the destination (Community) folder before copying anything over. If you had any mods installed via symlinks there, this likely followed the symlinks and deleted them in the source (mod cache) directory as well, before copying whatever was left over.

The program really shouldn't let you do this, and adding a warning/confirmation before moving the mod install folder seems apt.

NathanVaughn commented 3 years ago

Also, as to why stuff isn't in the recycling bin, that's just generally how programmatically deleting files works. I can look into making file deletions not get deleted immediately, but no guarantees.

To fix this mess, I would delete your config.ini file before re-running the program. That will rebuild it with default settings. Then, I would avoid moving the mod install directory. Unfortunately there is no simple way to recover your deleted files. you could try a data recovery tool like Recuva if it's really important.

Stramondroid commented 3 years ago

Thank you for the detailed explanation. I will re-download the mods, except the custom liveries. I can ask the artist to send them over. Again, appreciate the detailed explanation, and great work on the app in other respects.