enenra / space-engineers-utilities

A Blender 4.0+ addon to streamline working on assets for Space Engineers.
https://spaceengineers.wiki.gg/wiki/Modding/Tools/Space_Engineers_Utilities
GNU General Public License v3.0
47 stars 12 forks source link

Game Directory in preferences should check for exe #320

Closed enenra closed 2 years ago

enenra commented 2 years ago
Python: Traceback (most recent call last):
  File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\space-engineers-utilities\materials\seut_ot_texture_conversion.py", line 137, in execute
    result = mass_convert_textures(self, context, dirs_to_convert, target_dir, 'tif', skip_list=skip_list, log_to_file=True, can_report=True)
  File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\space-engineers-utilities\materials\seut_ot_texture_conversion.py", line 153, in mass_convert_textures
    for file in os.listdir(tex_dir):
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Owner\\AppData\\Roaming\\SpaceEngineers\\Content\\Textures\\Models\\Cubes'

location: <unknown location>:-1

Game Directory also is valid when you select the appdata folder. It should check for the textures folder existing within it in the validity check when setting it.

enenra commented 2 years ago

Works.