ILoveAGoodCrisp / Foundry

A Blender addon supporting asset creation for Halo Reach, Halo 4, and Halo 2 Anniversary Multiplayer
https://c20.reclaimers.net/
GNU General Public License v3.0
37 stars 0 forks source link

Crash using 4.2.1 LTS #8

Closed Autarch-Katherlyn closed 1 month ago

Autarch-Katherlyn commented 2 months ago

I don't know if pasting this wall of text would help but let me know if there's a way i can better help

ERROR:root:Traceback (most recent call last): File "E:\Program Files\Blender Foundation\Blender 4.2\4.2\extensions\system\io_scene_foundry\export__init.py", line 460, in execute prep_results, process_results = export_asset(context, sidecar_path_full, self.asset_name, self.asset_path, scene_nwo, scene_nwo_export, is_corinth(context)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program Files\Blender Foundation\Blender 4.2\4.2\extensions\system\io_scene_foundry\export__init__.py", line 650, in export_asset export_process.process_scene(context, sidecar_path, sidecar_path_full, asset_name, asset_path, asset_type, export_scene, export_settings, scene_settings) File "E:\Program Files\Blender Foundation\Blender 4.2\4.2\extensions\system\io_scene_foundry\export\process_scene.py", line 445, in process_scene sidecar = Sidecar(asset_path, asset, asset_type, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program Files\Blender Foundation\Blender 4.2\4.2\extensions\system\io_scene_foundry\export\build_sidecar.py", line 25, in init__ self.relative_blend = str(Path(bpy.data.filepath).relative_to(get_data_path())) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\pathlib.py", line 730, in relative_to raise ValueError("{!r} is not in the subpath of {!r}"

ILoveAGoodCrisp commented 1 month ago

I've updated this file so that it won't crash when encountering a blend file saved outside of your EK data directory