poly-hammer / BlenderTools

Blender addons that improve the game development workflow between Blender and Unreal.
https://poly-hammer.github.io/BlenderTools/
MIT License
234 stars 15 forks source link

Send 2 Unreal - Runtime Error Image is not Editable #86

Open Dprasni opened 1 month ago

Dprasni commented 1 month ago

Bug

cannot import name 'make_remote' from 'send2ue.dependencies.rpc.factory' (C:\Users\Dragosh\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\send2ue\dependencies\rpc\factory.py)

When trying to turn on the addon.

Blender 4.2.1 - MS Store version

jack-yao91 commented 1 month ago

This sounds like an issue with python modules not reloading after installing new addon code. Can you:

  1. Deactivate and remove send2ue addon
  2. Shutdown blender
  3. Start blender
  4. Install send2ue addon and activate it

Let me know if that works thanks

Dprasni commented 1 month ago

Yeah, seems it worked now for some reason after doing it on and off like 3 times, weird.

However now a different issue arose. After trying to push assets I get this: Python: RuntimeError: Error: Image is not editable

JoshQuake commented 1 month ago

TIL blender is on the MS store. I will see if I can replicate the issue

EDIT: Unable to replicate in my own test with a textured cube. Can you please attach your blend?

Dprasni commented 1 month ago

light_collection_test_1.zip Here

JoshQuake commented 1 month ago

Hmm okay I'm not getting that error still. Can you please try again and screenshot/paste contents of the console? image

I wonder if it's a file permissions issue?

Dprasni commented 1 month ago

image

Just tried opening my "main" file, which is 400 megs big, pushing assets from that gives me reliably the said error. Here's a drive link to it. https://drive.google.com/file/d/11RlWohtDnvO5f9Z7tOC2CLV97Op9WadW/view?usp=drive_link

JoshQuake commented 1 month ago

Hmm ye still not getting any issues aside from a couple empty objects. I'm thinking it could be happening when trying to load Blender's FBX module. Since you are using the Microsoft Store version, I'm thinking there are permission issues with the install location.

My current suggestions are to find where the MS store version gets installed and change the permissions to allow full access, or you can try getting Blender from blender.org (or Steam if you still want the easier updates)

jack-yao91 commented 1 month ago

I think this is related to the unpacking of textures to disk so that FBX can read them correctly on export. https://github.com/poly-hammer/BlenderTools/blob/eb00c749664ee794b4c6918c05884157926f30c9/src/addons/send2ue/core/utilities.py#L1625

My guess is since this is only happening with this certain file, you might just try unpacking and see if that gives the same permission error about the image texture. image

I would check the folder permission where the .blend file is located

Dprasni commented 2 weeks ago

Tried unpacking, still the same error occurs

JoshQuake commented 1 week ago

Could be permissions issue with either textures location, blender install, or project folder

Dprasni commented 1 week ago

Well i use a Blender UWA from the MS store because i really dislike the normal install version. The UWA apps are sandboxed and heavily walled up from the rest of the system and some other access restriction, so it could be that. This might be something a Windows developer could know more about.