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

[BUG] Current Windows release does not replace textures #15

Open
Skyluker4 opened this issue Mar 18, 2022 · 2 comments · May be fixed by #27
Open

[BUG] Current Windows release does not replace textures #15

Skyluker4 opened this issue Mar 18, 2022 · 2 comments · May be fixed by #27
Assignees
Labels
bug Something isn't working

Comments

@Skyluker4
Copy link
Owner

Description

Can't replace textures on the Windows releases found on this page.

Steps to Reproduce

  1. Run 'UnityAssetReplacer' with options ./UnityAssetReplacer -b assetbundle -t -i input_folder -o output_assetbundle

Expected Behavior

Expected program to replace textures successfully.

Output

Unhandled exception. System.DllNotFoundException: Unable to load DLL 'textoolwrap' or one of its dependencies: The specified module could not be found. (0x8007007E)
   at TexturePlugin.PInvoke.EncodeByPVRTexLib(IntPtr data, IntPtr buf, Int32 mode, Int32 level, UInt32 width, UInt32 height)
   at TexturePlugin.TextureEncoderDecoder.EncodePVRTexLib(Byte[] data, Int32 width, Int32 height, TextureFormat format, Int32 quality)
   at TexturePlugin.TextureEncoderDecoder.Encode(Byte[] data, Int32 width, Int32 height, TextureFormat format, Int32 quality)
   at TexturePlugin.TextureImportExport.ImportPng(String file, TextureFormat format, Int32& width, Int32& height)
   at UnityAssetReplacer.TextureAsset.<Replace>b__4_0(List`1 assetReplacers, String inputFileName, String inputFilePath)
   at UnityAssetReplacer.Asset.ReplaceAll(String& inputDirectory, String& outputAssetBundlePath, Action`3 operation)
   at UnityAssetReplacer.TextureAsset.Replace(String& inputDirectory, String& outputAssetBundlePath)
   at UnityAssetReplacer.Program.RunOperation(Asset uar, Boolean dump, Boolean replace)
   at UnityAssetReplacer.Program.Main(String[] args)

Platform

  • Operating System: Windows
  • Architecture: x64, x86
  • Program Version: 3.0.1
@Skyluker4 Skyluker4 added the bug Something isn't working label Mar 18, 2022
@Skyluker4 Skyluker4 self-assigned this Mar 18, 2022
@Skyluker4
Copy link
Owner Author

Need to fix Build workflow for Windows. Building on ubuntu-latest does not include TexToolWrap on Windows only for some reason.

@Skyluker4
Copy link
Owner Author

For now, build from source on Windows if you need to replace textures.

@Skyluker4 Skyluker4 linked a pull request Nov 13, 2023 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant