Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in Next2UAF #12

Open
AHGAMING opened this issue Jun 18, 2024 · 1 comment
Open

KeyError in Next2UAF #12

AHGAMING opened this issue Jun 18, 2024 · 1 comment

Comments

@AHGAMING
Copy link

When I try to convert my map package from jd+ with option 3, it gives me this error:

Traceback (most recent call last):
File "C:\Users\ahard\Downloads\TML_Next2UAF\next2uaf.py", line 1518, in
Local2UAF(mapPackageBundle)
File "C:\Users\ahard\Downloads\TML_Next2UAF\next2uaf.py", line 1132, in Local2UAF
img = data.image
^^^^^^^^^^
File "C:\Users\ahard\AppData\Local\Programs\Python\Python312\Lib\site-packages\UnityPy\classes\Sprite.py", line 14, in image
return SpriteHelper.get_image_from_sprite(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ahard\AppData\Local\Programs\Python\Python312\Lib\site-packages\UnityPy\export\SpriteHelper.py", line 55, in get_image_from_sprite
original_image = get_image(m_Sprite, m_Texture2D, alpha_texture)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ahard\AppData\Local\Programs\Python\Python312\Lib\site-packages\UnityPy\export\SpriteHelper.py", line 27, in get_image
original_image = get_image_from_texture2d(texture.read(), False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\ahard\AppData\Local\Programs\Python\Python312\Lib\site-packages\UnityPy\export\Texture2DConverter.py", line 105, in get_image_from_texture2d
return parse_image_data(
^^^^^^^^^^^^^^^^^
File "C:\Users\ahard\AppData\Local\Programs\Python\Python312\Lib\site-packages\UnityPy\export\Texture2DConverter.py", line 157, in parse_image_data
blockSize = TextureSwizzler.TEXTUREFORMAT_BLOCK_SIZE_MAP[texture_format]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: <TextureFormat.DXT5Crunched: 29>

it happens when I try to convert after I put in the codename and select the file.

@WodsonKun
Copy link
Owner

Which version of Python and UnityPy are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@WodsonKun @AHGAMING and others