BeamNG / Blender-JBeam-Editor

Blender plugin to import, modify, and export JBeam.
MIT License
60 stars 4 forks source link

JBEAM DONT EXPORT !!! #22

Closed FADONES closed 1 month ago

FADONES commented 1 month ago

Why when I change the Jbeam in blender and export it it does not change in the files and in the game???

angelo234 commented 1 month ago

Did you run Blender as an administrator? Any error messages in the "System Console" (https://blender.stackexchange.com/a/145891)?

FADONES commented 1 month ago

I run it with administrator rights, this may be an error in the console.

_pickle.UnpicklingError: pickle data was truncated Error in bpy.app.handlers.depsgraph_update_post[0]: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor__init.py", line 1011, in depsgraph_callback refresh_curr_vdata() File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 622, in refresh_curr_vdata curr_vdata = pickle.loads(obj_data[constants.MESH_SINGLE_JBEAM_PART_DATA]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: pickle data was truncated Error in bpy.app.handlers.depsgraph_update_post[0]: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 1011, in depsgraph_callback refresh_curr_vdata() File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 622, in refresh_curr_vdata curr_vdata = pickle.loads(obj_data[constants.MESH_SINGLE_JBEAM_PART_DATA]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: pickle data was truncated Error in bpy.app.handlers.depsgraph_update_post[0]: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 1011, in depsgraph_callback refresh_curr_vdata() File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 622, in refresh_curr_vdata curr_vdata = pickle.loads(obj_data[constants.MESH_SINGLE_JBEAM_PART_DATA]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: pickle data was truncated Error in bpy.app.handlers.depsgraph_update_post[0]: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init.py", line 1011, in depsgraph_callback refresh_curr_vdata() File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor\init__.py", line 622, in refresh_curr_vdata curr_vdata = pickle.loads(obj_data[constants.MESH_SINGLE_JBEAM_PART_DATA]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _pickle.UnpicklingError: pickle data was truncated Exported to disk: vector_taillight_R, vector_taillight_L, vector_taillight_L_white, vector_taillight_R_white Exporting Time 0.14 s

angelo234 commented 1 month ago

What plugin version are you on? The latest version should fix this.

FADONES commented 1 month ago

latest version of the plugin, reinstalled today

FADONES commented 1 month ago

there is also a bug in that it is still exported, but not in the place where I did it in blender

angelo234 commented 1 month ago

Hmm, so when you reinstalled, the first bug is fixed? Try starting a new Blender project because that previous version could have messed up the project.

FADONES commented 1 month ago

No, either nothing changes for me after export, or there is a bug described by me above, I don’t know how to fix it, please help

angelo234 commented 1 month ago

Try removing the installed plugin and install the new version, because I've seen issues with updating the plugin if you don't remove the previous version before installing the new one

FADONES commented 1 month ago

I tried to reinstall the plugin and now I can't install the plugin with this error

Traceback (most recent call last): File "C:\Games\Steam\steamapps\common\Blender\4.2\scripts\startup\bl_operators\userpref.py", line 732, in execute file_to_extract.extractall(path_addons) File "C:\Games\Steam\steamapps\common\Blender\4.2\python\Lib\zipfile.py", line 1681, in extractall self._extract_member(zipinfo, path, pwd) File "C:\Games\Steam\steamapps\common\Blender\4.2\python\Lib\zipfile.py", line 1735, in _extract_member open(targetpath, "wb") as target: ^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\Blender-JBeam-Editor-main\tests\vehicle_import_modify_export\delete_beams\test_1\expected\vehicles\agenty_legocar\jbeam\lights\headlights\facelift_housing\legocar_headlight_L_facelift.jbeam'

FADONES commented 1 month ago

I reinstalled blender but nothing changed

angelo234 commented 1 month ago

Hmm thats a pretty bizarre error and seems to be related specifically to Blender

angelo234 commented 1 month ago

Can you try to delete the addon from C:\Users\your_username\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\jbeam_editor

angelo234 commented 1 month ago

And try installing the plugin again

angelo234 commented 1 month ago

Wait did you download the "blender_jbeam_editor_0.2.5.zip" file from https://github.com/BeamNG/Blender-JBeam-Editor/releases/tag/v0.2.5

FADONES commented 1 month ago

No, I'll download it now

angelo234 commented 1 month ago

It looks like you might have downloaded the zip file containing the entire Github repository which is not correct

FADONES commented 1 month ago

Everything worked and now the jbeam changes when exporting

FADONES commented 1 month ago

thank you !

angelo234 commented 1 month ago

cool no problem!