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

Texture editor crashes when importing non-DX10 DDS images #373

Open
E11NTM opened this issue Jul 21, 2024 · 6 comments
Open

Texture editor crashes when importing non-DX10 DDS images #373

E11NTM opened this issue Jul 21, 2024 · 6 comments
Labels
bug Something which causes issues when using the tools. fixed in staging branch This bug has been fixed in the staging branch of OpenCAGE. [TOOL] Asset Editor This issue applies to the asset editor within OpenCAGE.

Comments

@E11NTM
Copy link

E11NTM commented Jul 21, 2024

I've been trying to replace a texture in the asset editor, but when trying to replace it, it gives me the following error.

System.NullReferenceException: Reference to object not established as an instance of an object. In AlienPAK.CathodeLibExtensions.ToTEX4Part(Bytecontent, TextureFormat& format, Part part) in AlienPAK.Explorer.ReplaceSelectedFile()

This happens with any texture I try to replace which makes the texture editor unusable.

@MattFiler
Copy link
Owner

Hey, please could you give some more detailed information regarding the level you're editing, if you have made any edits previously, specifically what texture you're trying to modify, and include the file you're trying to replace it with?

Thanks :)

@MattFiler MattFiler added bug Something which causes issues when using the tools. [TOOL] Asset Editor This issue applies to the asset editor within OpenCAGE. labels Jul 22, 2024
@E11NTM
Copy link
Author

E11NTM commented Jul 22, 2024

Sure! I was trying to change in DLC_SalvageMode1 the fx_flame_thrower_ribbon to this file:
fx_flame_thrower_ribbon
By the way I used an online conversor to transform it into DDS here's the conversor: https://convertio.co/es/dds-png/
If you need the DDS file because it might be a problem of the conversion or something I could send it to you in Discord, but GitHub doesn't allow me to send DDS here.

@MattFiler
Copy link
Owner

Ah, so this is an issue with the tools not giving a good enough error message. You're converting to DDS but not the right DDS format.

You'll want to be using DX10 DDS images for Isolation. I would recommend converting your image using something like Nvidia's Texture Tools Exporter.

@MattFiler MattFiler changed the title Replace Texture Bug Texture editor crashes when importing non-DX10 DDS images Jul 25, 2024
@MattFiler
Copy link
Owner

Just pushed a fix to warn about non-DX10 headers. It will be in OpenCAGE within the next update 👍
OpenCAGE/AssetEditor@4279027

@E11NTM
Copy link
Author

E11NTM commented Jul 25, 2024

Ohhh Alright thank you very much!

@E11NTM E11NTM closed this as completed Jul 25, 2024
@MattFiler MattFiler reopened this Jul 25, 2024
@MattFiler
Copy link
Owner

Will close when the update is pushed out :)

@MattFiler MattFiler added queued Fixed, will go live on Staging shortly. fixed in staging branch This bug has been fixed in the staging branch of OpenCAGE. and removed queued Fixed, will go live on Staging shortly. labels Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something which causes issues when using the tools. fixed in staging branch This bug has been fixed in the staging branch of OpenCAGE. [TOOL] Asset Editor This issue applies to the asset editor within OpenCAGE.
Projects
None yet
Development

No branches or pull requests

2 participants